[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/xor.ll sub.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 26 17:43:14 PST 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
xor.ll updated: 1.15 -> 1.16
sub.ll updated: 1.21 -> 1.22
---
Log message:
New testcases
---
Diffs of the changes: (+24 -0)
sub.ll | 13 +++++++++++++
xor.ll | 11 +++++++++++
2 files changed, 24 insertions(+)
Index: llvm/test/Regression/Transforms/InstCombine/xor.ll
diff -u llvm/test/Regression/Transforms/InstCombine/xor.ll:1.15 llvm/test/Regression/Transforms/InstCombine/xor.ll:1.16
--- llvm/test/Regression/Transforms/InstCombine/xor.ll:1.15 Sat Feb 11 19:32:58 2006
+++ llvm/test/Regression/Transforms/InstCombine/xor.ll Sun Feb 26 19:43:02 2006
@@ -155,3 +155,14 @@
ret int %Q
}
+bool %test23(int %a, int %b) {
+ %tmp.2 = xor int %b, %a
+ %tmp.4 = seteq int %tmp.2, %a
+ ret bool %tmp.4
+}
+
+bool %test24(int %c, int %d) {
+ %tmp.2 = xor int %d, %c
+ %tmp.4 = setne int %tmp.2, %c
+ ret bool %tmp.4
+}
Index: llvm/test/Regression/Transforms/InstCombine/sub.ll
diff -u llvm/test/Regression/Transforms/InstCombine/sub.ll:1.21 llvm/test/Regression/Transforms/InstCombine/sub.ll:1.22
--- llvm/test/Regression/Transforms/InstCombine/sub.ll:1.21 Thu Apr 7 11:41:45 2005
+++ llvm/test/Regression/Transforms/InstCombine/sub.ll Sun Feb 26 19:43:02 2006
@@ -124,3 +124,16 @@
%Q = add int %Z, %Y
ret int %Q
}
+
+bool %test20(int %g, int %h) {
+ %tmp.2 = sub int %g, %h
+ %tmp.4 = setne int %tmp.2, %g
+ ret bool %tmp.4
+}
+
+bool %test21(int %g, int %h) {
+ %tmp.2 = sub int %g, %h
+ %tmp.4 = setne int %tmp.2, %g
+ ret bool %tmp.4
+}
+
More information about the llvm-commits
mailing list