1 ; RUN: llc < %s -mtriple=i686-apple-darwin9 -mattr=sse4a | FileCheck %s 2 ; RUN: llc < %s -mtriple=x86_64-unknown-linux -mattr=sse4a | FileCheck %s 3 4 define void @test1(i8* %p, <4 x float> %a) nounwind optsize ssp { 5 ; CHECK-LABEL: test1: 6 ; CHECK: movntss 7 tail call void @llvm.x86.sse4a.movnt.ss(i8* %p, <4 x float> %a) nounwind 8 ret void 9 } 10 11 declare void @llvm.x86.sse4a.movnt.ss(i8*, <4 x float>) 12 13 define void @test2(i8* %p, <2 x double> %a) nounwind optsize ssp { 14 ; CHECK-LABEL: test2: 15 ; CHECK: movntsd 16 tail call void @llvm.x86.sse4a.movnt.sd(i8* %p, <2 x double> %a) nounwind 17 ret void 18 } 19 20 declare void @llvm.x86.sse4a.movnt.sd(i8*, <2 x double>) 21 22 define <2 x i64> @test3(<2 x i64> %x) nounwind uwtable ssp { 23 ; CHECK-LABEL: test3: 24 ; CHECK: extrq 25 %1 = tail call <2 x i64> @llvm.x86.sse4a.extrqi(<2 x i64> %x, i8 3, i8 2) 26 ret <2 x i64> %1 27 } 28 29 declare <2 x i64> @llvm.x86.sse4a.extrqi(<2 x i64>, i8, i8) nounwind 30 31 define <2 x i64> @test4(<2 x i64> %x, <2 x i64> %y) nounwind uwtable ssp { 32 ; CHECK-LABEL: test4: 33 ; CHECK: extrq 34 %1 = bitcast <2 x i64> %y to <16 x i8> 35 %2 = tail call <2 x i64> @llvm.x86.sse4a.extrq(<2 x i64> %x, <16 x i8> %1) nounwind 36 ret <2 x i64> %2 37 } 38 39 declare <2 x i64> @llvm.x86.sse4a.extrq(<2 x i64>, <16 x i8>) nounwind 40 41 define <2 x i64> @test5(<2 x i64> %x, <2 x i64> %y) nounwind uwtable ssp { 42 ; CHECK-LABEL: test5: 43 ; CHECK: insertq 44 %1 = tail call <2 x i64> @llvm.x86.sse4a.insertqi(<2 x i64> %x, <2 x i64> %y, i8 5, i8 6) 45 ret <2 x i64> %1 46 } 47 48 declare <2 x i64> @llvm.x86.sse4a.insertqi(<2 x i64>, <2 x i64>, i8, i8) nounwind 49 50 define <2 x i64> @test6(<2 x i64> %x, <2 x i64> %y) nounwind uwtable ssp { 51 ; CHECK-LABEL: test6: 52 ; CHECK: insertq 53 %1 = tail call <2 x i64> @llvm.x86.sse4a.insertq(<2 x i64> %x, <2 x i64> %y) nounwind 54 ret <2 x i64> %1 55 } 56 57 declare <2 x i64> @llvm.x86.sse4a.insertq(<2 x i64>, <2 x i64>) nounwind 58