[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/xor.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Apr 24 00:29:07 PDT 2005
Changes in directory llvm/test/Regression/Transforms/InstCombine:
xor.ll updated: 1.12 -> 1.13
---
Log message:
Test that xor/select are folded into a select with inverted operands.
---
Diffs of the changes: (+5 -1)
xor.ll | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/test/Regression/Transforms/InstCombine/xor.ll
diff -u llvm/test/Regression/Transforms/InstCombine/xor.ll:1.12 llvm/test/Regression/Transforms/InstCombine/xor.ll:1.13
--- llvm/test/Regression/Transforms/InstCombine/xor.ll:1.12 Sun Feb 15 21:53:44 2004
+++ llvm/test/Regression/Transforms/InstCombine/xor.ll Sun Apr 24 02:28:53 2005
@@ -141,4 +141,8 @@
ret void
}
-
+int %test21(bool %C, int %A, int %B) {
+ %C2 = xor bool %C, true
+ %D = select bool %C2, int %A, int %B
+ ret int %D
+}
More information about the llvm-commits
mailing list