Add a vector shuffle test case

llvm-svn: 27027
This commit is contained in:
Evan Cheng 2006-03-24 01:22:25 +00:00
parent d27fb3e85e
commit e66be95ce2
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep shufps
void %test_v4sf(<4 x float>* %P, float %X, float %Y) {
%tmp = insertelement <4 x float> zeroinitializer, float %X, uint 0
%tmp2 = insertelement <4 x float> %tmp, float %X, uint 1
%tmp4 = insertelement <4 x float> %tmp2, float %Y, uint 2
%tmp6 = insertelement <4 x float> %tmp4, float %Y, uint 3
store <4 x float> %tmp6, <4 x float>* %P
ret void
}