[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/buildvec_canonicalize.ll vxor-canonicalize.ll

Chris Lattner lattner at cs.uiuc.edu
Wed Apr 12 10:01:24 PDT 2006



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

buildvec_canonicalize.ll added (r1.1)
vxor-canonicalize.ll (r1.2) removed
---
Log message:

Rename this file


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

 buildvec_canonicalize.ll |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/buildvec_canonicalize.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/buildvec_canonicalize.ll:1.1
*** /dev/null	Wed Apr 12 12:01:21 2006
--- llvm/test/Regression/CodeGen/PowerPC/buildvec_canonicalize.ll	Wed Apr 12 12:01:11 2006
***************
*** 0 ****
--- 1,13 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | grep vxor | wc -l | grep 1
+ ; There should be exactly one vxor here.
+ 
+ void %test(<4 x float>* %P1, <4 x int>* %P2, <4 x float>* %P3) {
+         %tmp = load <4 x float>* %P3
+         %tmp3 = load <4 x float>* %P1
+         %tmp4 = mul <4 x float> %tmp, %tmp3
+         store <4 x float> %tmp4, <4 x float>* %P3
+         store <4 x float> zeroinitializer, <4 x float>* %P1
+         store <4 x int> zeroinitializer, <4 x int>* %P2
+         ret void
+ }
+ 






More information about the llvm-commits mailing list