CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
58 lines
1.7 KiB
LLVM
58 lines
1.7 KiB
LLVM
; RUN: llc -verify-machineinstrs -mattr=+altivec < %s | FileCheck %s
|
|
|
|
; Check vector float/int conversion using altivec.
|
|
|
|
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
|
|
target triple = "powerpc64-unknown-linux-gnu"
|
|
|
|
@cte_float = global <4 x float> <float 6.5e+00, float 6.5e+00, float 6.5e+00, float 6.5e+00>, align 16
|
|
@cte_int = global <4 x i32> <i32 6, i32 6, i32 6, i32 6>, align 16
|
|
|
|
|
|
define void @v4f32_to_v4i32(<4 x float> %x, ptr nocapture %y) nounwind {
|
|
entry:
|
|
%0 = load <4 x float>, ptr @cte_float, align 16
|
|
%mul = fmul <4 x float> %0, %x
|
|
%1 = fptosi <4 x float> %mul to <4 x i32>
|
|
store <4 x i32> %1, ptr %y, align 16
|
|
ret void
|
|
}
|
|
;CHECK-LABEL: v4f32_to_v4i32:
|
|
;CHECK: vctsxs {{[0-9]+}}, {{[0-9]+}}, 0
|
|
|
|
|
|
define void @v4f32_to_v4u32(<4 x float> %x, ptr nocapture %y) nounwind {
|
|
entry:
|
|
%0 = load <4 x float>, ptr @cte_float, align 16
|
|
%mul = fmul <4 x float> %0, %x
|
|
%1 = fptoui <4 x float> %mul to <4 x i32>
|
|
store <4 x i32> %1, ptr %y, align 16
|
|
ret void
|
|
}
|
|
;CHECK-LABEL: v4f32_to_v4u32:
|
|
;CHECK: vctuxs {{[0-9]+}}, {{[0-9]+}}, 0
|
|
|
|
|
|
define void @v4i32_to_v4f32(<4 x i32> %x, ptr nocapture %y) nounwind {
|
|
entry:
|
|
%0 = load <4 x i32>, ptr @cte_int, align 16
|
|
%mul = mul <4 x i32> %0, %x
|
|
%1 = sitofp <4 x i32> %mul to <4 x float>
|
|
store <4 x float> %1, ptr %y, align 16
|
|
ret void
|
|
}
|
|
;CHECK-LABEL: v4i32_to_v4f32:
|
|
;CHECK: vcfsx {{[0-9]+}}, {{[0-9]+}}, 0
|
|
|
|
|
|
define void @v4u32_to_v4f32(<4 x i32> %x, ptr nocapture %y) nounwind {
|
|
entry:
|
|
%0 = load <4 x i32>, ptr @cte_int, align 16
|
|
%mul = mul <4 x i32> %0, %x
|
|
%1 = uitofp <4 x i32> %mul to <4 x float>
|
|
store <4 x float> %1, ptr %y, align 16
|
|
ret void
|
|
}
|
|
;CHECK-LABEL: v4u32_to_v4f32:
|
|
;CHECK: vcfux {{[0-9]+}}, {{[0-9]+}}, 0
|