[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/xor.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Apr 1 00:03:03 PST 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
xor.ll updated: 1.16 -> 1.17
---
Log message:
new testcases
---
Diffs of the changes: (+15 -0)
xor.ll | 15 +++++++++++++++
1 files changed, 15 insertions(+)
Index: llvm/test/Regression/Transforms/InstCombine/xor.ll
diff -u llvm/test/Regression/Transforms/InstCombine/xor.ll:1.16 llvm/test/Regression/Transforms/InstCombine/xor.ll:1.17
--- llvm/test/Regression/Transforms/InstCombine/xor.ll:1.16 Sun Feb 26 19:43:02 2006
+++ llvm/test/Regression/Transforms/InstCombine/xor.ll Sat Apr 1 02:02:51 2006
@@ -166,3 +166,18 @@
%tmp.4 = setne int %tmp.2, %c
ret bool %tmp.4
}
+
+int %test25(int %g, int %h) {
+ %h2 = xor int %h, -1
+ %tmp2 = and int %h2, %g
+ %tmp4 = xor int %tmp2, %g ; (h2&g)^g -> ~h2 & g -> h & g
+ ret int %tmp4
+}
+
+int %test26(int %a, int %b) {
+ %b2 = xor int %b, -1
+ %tmp2 = xor int %a, %b2
+ %tmp4 = and int %tmp2, %a ; (a^b2)&a -> ~b2 & a -> b & a
+ ret int %tmp4
+}
+
More information about the llvm-commits
mailing list