Changes in directory llvm/test/Regression/CodeGen/X86:

vec_shuffle.ll added (r1.1)
---
Log message:

Add a vector shuffle test case

---
Diffs of the changes:  (+10 -0)

 vec_shuffle.ll |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/test/Regression/CodeGen/X86/vec_shuffle.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/vec_shuffle.ll:1.1
*** /dev/null   Thu Mar 23 19:22:35 2006
--- llvm/test/Regression/CodeGen/X86/vec_shuffle.ll     Thu Mar 23 19:22:25 2006
***************
*** 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
+ }



_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to