[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/xor.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 4 17:38:07 PST 2003
Changes in directory llvm/test/Regression/Transforms/InstCombine:
xor.ll updated: 1.7 -> 1.8
---
Log message:
Add a generalization of the previous case
---
Diffs of the changes: (+6 -0)
Index: llvm/test/Regression/Transforms/InstCombine/xor.ll
diff -u llvm/test/Regression/Transforms/InstCombine/xor.ll:1.7 llvm/test/Regression/Transforms/InstCombine/xor.ll:1.8
--- llvm/test/Regression/Transforms/InstCombine/xor.ll:1.7 Tue Nov 4 17:21:22 2003
+++ llvm/test/Regression/Transforms/InstCombine/xor.ll Tue Nov 4 17:36:50 2003
@@ -104,3 +104,9 @@
%C = xor uint %B, 4294967295
ret uint %C
}
+
+uint %test16(uint %A) { ; ~(X+c) == (-c-1)-X
+ %B = add uint %A, 123 ; A generalization of the previous case
+ %C = xor uint %B, 4294967295
+ ret uint %C
+}
More information about the llvm-commits
mailing list