1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -march=x86-64 -mcpu=corei7 -mattr=avx | FileCheck %s
3 define i64 @test_x86_sse2_cvtsd2si64(<2 x double> %a0) {
5 %res = call i64 @llvm.x86.sse2.cvtsd2si64(<2 x double> %a0) ; <i64> [#uses=1]
8 declare i64 @llvm.x86.sse2.cvtsd2si64(<2 x double>) nounwind readnone
11 define <2 x double> @test_x86_sse2_cvtsi642sd(<2 x double> %a0, i64 %a1) {
13 %res = call <2 x double> @llvm.x86.sse2.cvtsi642sd(<2 x double> %a0, i64 %a1) ; <<2 x double>> [#uses=1]
16 declare <2 x double> @llvm.x86.sse2.cvtsi642sd(<2 x double>, i64) nounwind readnone
19 define i64 @test_x86_sse2_cvttsd2si64(<2 x double> %a0) {
21 %res = call i64 @llvm.x86.sse2.cvttsd2si64(<2 x double> %a0) ; <i64> [#uses=1]
24 declare i64 @llvm.x86.sse2.cvttsd2si64(<2 x double>) nounwind readnone
27 define i64 @test_x86_sse_cvtss2si64(<4 x float> %a0) {
29 %res = call i64 @llvm.x86.sse.cvtss2si64(<4 x float> %a0) ; <i64> [#uses=1]
32 declare i64 @llvm.x86.sse.cvtss2si64(<4 x float>) nounwind readnone
35 define <4 x float> @test_x86_sse_cvtsi642ss(<4 x float> %a0, i64 %a1) {
37 %res = call <4 x float> @llvm.x86.sse.cvtsi642ss(<4 x float> %a0, i64 %a1) ; <<4 x float>> [#uses=1]
40 declare <4 x float> @llvm.x86.sse.cvtsi642ss(<4 x float>, i64) nounwind readnone
43 define i64 @test_x86_sse_cvttss2si64(<4 x float> %a0) {
45 %res = call i64 @llvm.x86.sse.cvttss2si64(<4 x float> %a0) ; <i64> [#uses=1]
48 declare i64 @llvm.x86.sse.cvttss2si64(<4 x float>) nounwind readnone