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
55 lines
2.1 KiB
LLVM
55 lines
2.1 KiB
LLVM
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=-avx,+sse2 -fast-isel -fast-isel-abort=1 | FileCheck %s --check-prefix=SSE
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=-avx2,+avx -fast-isel -fast-isel-abort=1 | FileCheck %s --check-prefix=AVX
|
|
|
|
define i32 @cvt_test1(float %a) {
|
|
; SSE-LABEL: cvt_test1
|
|
; SSE: cvttss2si %xmm0, %eax
|
|
; AVX-LABEL: cvt_test1
|
|
; AVX: vcvttss2si %xmm0, %eax
|
|
%1 = insertelement <4 x float> undef, float %a, i32 0
|
|
%2 = insertelement <4 x float> %1, float 0.000000e+00, i32 1
|
|
%3 = insertelement <4 x float> %2, float 0.000000e+00, i32 2
|
|
%4 = insertelement <4 x float> %3, float 0.000000e+00, i32 3
|
|
%5 = call i32 @llvm.x86.sse.cvttss2si(<4 x float> %4)
|
|
ret i32 %5
|
|
}
|
|
declare i32 @llvm.x86.sse.cvttss2si(<4 x float>) nounwind readnone
|
|
|
|
define i64 @cvt_test2(float %a) {
|
|
; SSE-LABEL: cvt_test2
|
|
; SSE: cvttss2si %xmm0, %rax
|
|
; AVX-LABEL: cvt_test2
|
|
; AVX: vcvttss2si %xmm0, %rax
|
|
%1 = insertelement <4 x float> undef, float %a, i32 0
|
|
%2 = insertelement <4 x float> %1, float 0.000000e+00, i32 1
|
|
%3 = insertelement <4 x float> %2, float 0.000000e+00, i32 2
|
|
%4 = insertelement <4 x float> %3, float 0.000000e+00, i32 3
|
|
%5 = call i64 @llvm.x86.sse.cvttss2si64(<4 x float> %4)
|
|
ret i64 %5
|
|
}
|
|
declare i64 @llvm.x86.sse.cvttss2si64(<4 x float>) nounwind readnone
|
|
|
|
define i32 @cvt_test3(double %a) {
|
|
; SSE-LABEL: cvt_test3
|
|
; SSE: cvttsd2si %xmm0, %eax
|
|
; AVX-LABEL: cvt_test3
|
|
; AVX: vcvttsd2si %xmm0, %eax
|
|
%1 = insertelement <2 x double> undef, double %a, i32 0
|
|
%2 = insertelement <2 x double> %1, double 0.000000e+00, i32 1
|
|
%3 = call i32 @llvm.x86.sse2.cvttsd2si(<2 x double> %2)
|
|
ret i32 %3
|
|
}
|
|
declare i32 @llvm.x86.sse2.cvttsd2si(<2 x double>) nounwind readnone
|
|
|
|
define i64 @cvt_test4(double %a) {
|
|
; SSE-LABEL: cvt_test4
|
|
; SSE: cvttsd2si %xmm0, %rax
|
|
; AVX-LABEL: cvt_test4
|
|
; AVX: vcvttsd2si %xmm0, %rax
|
|
%1 = insertelement <2 x double> undef, double %a, i32 0
|
|
%2 = insertelement <2 x double> %1, double 0.000000e+00, i32 1
|
|
%3 = call i64 @llvm.x86.sse2.cvttsd2si64(<2 x double> %2)
|
|
ret i64 %3
|
|
}
|
|
declare i64 @llvm.x86.sse2.cvttsd2si64(<2 x double>) nounwind readnone
|