Support insertps via the intrinsic and add a couple of simple
[oota-llvm.git] / test / CodeGen / X86 / vec_insertps-1.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 | grep insertps | count 2
2
3 define <4 x float> @t1(<4 x float> %t1, <4 x float> %t2) nounwind {
4         %tmp1 = call <4 x float> @llvm.x86.sse41.insertps(<4 x float> %t1, <4 x float> %t2, i32 1) nounwind readnone
5         ret <4 x float> %tmp1
6 }
7
8 declare <4 x float> @llvm.x86.sse41.insertps(<4 x float>, <4 x float>, i32) nounwind readnone
9
10 define <4 x float> @t2(<4 x float> %t1, float %t2) nounwind {
11         %tmp1 = insertelement <4 x float> %t1, float %t2, i32 0
12         ret <4 x float> %tmp1
13 }