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

Chris Lattner lattner at cs.uiuc.edu
Wed Apr 12 09:57:51 PDT 2006



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

vxor-canonicalize.ll updated: 1.1 -> 1.2
---
Log message:

Make this test more interesting by checking that the 0.0 used to implement vector fmul gets cse'd also.


---
Diffs of the changes:  (+7 -3)

 vxor-canonicalize.ll |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)


Index: llvm/test/Regression/CodeGen/PowerPC/vxor-canonicalize.ll
diff -u llvm/test/Regression/CodeGen/PowerPC/vxor-canonicalize.ll:1.1 llvm/test/Regression/CodeGen/PowerPC/vxor-canonicalize.ll:1.2
--- llvm/test/Regression/CodeGen/PowerPC/vxor-canonicalize.ll:1.1	Wed Apr 12 11:49:16 2006
+++ llvm/test/Regression/CodeGen/PowerPC/vxor-canonicalize.ll	Wed Apr 12 11:57:39 2006
@@ -1,7 +1,11 @@
-; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vxor | wc -l | grep 1
-; There should be exactly one vxor here, not two.
+; 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) {
+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