[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/vec_zexts2v.ll
Evan Cheng
evan.cheng at apple.com
Fri Mar 24 21:59:05 PST 2006
Changes in directory llvm/test/Regression/CodeGen/X86:
vec_zexts2v.ll added (r1.1)
---
Log message:
Added a scalar to vector with zero extension testcase
---
Diffs of the changes: (+21 -0)
vec_zexts2v.ll | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+)
Index: llvm/test/Regression/CodeGen/X86/vec_zexts2v.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/vec_zexts2v.ll:1.1
*** /dev/null Fri Mar 24 23:59:02 2006
--- llvm/test/Regression/CodeGen/X86/vec_zexts2v.ll Fri Mar 24 23:58:52 2006
***************
*** 0 ****
--- 1,21 ----
+ ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movss | wc -l | grep 2
+ ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep xorps | wc -l | grep 1
+
+ void %test1(<4 x float>* %b, float %X) {
+ %tmp = insertelement <4 x float> zeroinitializer, float %X, uint 0
+ %tmp1 = insertelement <4 x float> %tmp, float 0.000000e+00, uint 1
+ %tmp2 = insertelement <4 x float> %tmp1, float 0.000000e+00, uint 2
+ %tmp3 = insertelement <4 x float> %tmp2, float 0.000000e+00, uint 3
+ store <4 x float> %tmp3, <4 x float>* %b
+ ret void
+ }
+
+ void %test2(<4 x float>* %b, float %X, float %Y) {
+ %tmp2 = mul float %X, %Y
+ %tmp = insertelement <4 x float> zeroinitializer, float %tmp2, uint 0
+ %tmp4 = insertelement <4 x float> %tmp, float 0.000000e+00, uint 1
+ %tmp5 = insertelement <4 x float> %tmp4, float 0.000000e+00, uint 2
+ %tmp6 = insertelement <4 x float> %tmp5, float 0.000000e+00, uint 3
+ store <4 x float> %tmp6, <4 x float>* %b
+ ret void
+ }
More information about the llvm-commits
mailing list