1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -fast-isel -mtriple=x86_64-unknown-unknown -mattr=+sse | FileCheck %s --check-prefix=X64
4 ; NOTE: This should use IR equivalent to what is generated by clang/test/CodeGen/sse-builtins.c
6 define <4 x float> @test_mm_cvtsi64_ss(<4 x float> %a0, i64 %a1) nounwind {
7 ; X64-LABEL: test_mm_cvtsi64_ss:
9 ; X64-NEXT: cvtsi2ssq %rdi, %xmm0
11 %res = call <4 x float> @llvm.x86.sse.cvtsi642ss(<4 x float> %a0, i64 %a1)
14 declare <4 x float> @llvm.x86.sse.cvtsi642ss(<4 x float>, i64) nounwind readnone
16 define i64 @test_mm_cvtss_si64(<4 x float> %a0) nounwind {
17 ; X64-LABEL: test_mm_cvtss_si64:
19 ; X64-NEXT: cvtss2si %xmm0, %rax
21 %res = call i64 @llvm.x86.sse.cvtss2si64(<4 x float> %a0)
24 declare i64 @llvm.x86.sse.cvtss2si64(<4 x float>) nounwind readnone
26 define i64 @test_mm_cvttss_si64(<4 x float> %a0) nounwind {
27 ; X64-LABEL: test_mm_cvttss_si64:
29 ; X64-NEXT: cvttss2si %xmm0, %rax
31 %res = call i64 @llvm.x86.sse.cvttss2si64(<4 x float> %a0)
34 declare i64 @llvm.x86.sse.cvttss2si64(<4 x float>) nounwind readnone