llvm-6502/test/CodeGen/X86/vec_insertps-1.ll
Eric Christopher 1e5cdea9d7 Support insertps via the intrinsic and add a couple of simple
testcases to make sure it's being generated.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76843 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-23 02:22:41 +00:00

13 lines
547 B
LLVM

; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 | grep insertps | count 2
define <4 x float> @t1(<4 x float> %t1, <4 x float> %t2) nounwind {
%tmp1 = call <4 x float> @llvm.x86.sse41.insertps(<4 x float> %t1, <4 x float> %t2, i32 1) nounwind readnone
ret <4 x float> %tmp1
}
declare <4 x float> @llvm.x86.sse41.insertps(<4 x float>, <4 x float>, i32) nounwind readnone
define <4 x float> @t2(<4 x float> %t1, float %t2) nounwind {
%tmp1 = insertelement <4 x float> %t1, float %t2, i32 0
ret <4 x float> %tmp1
}