[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/xor.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 4 17:22:01 PST 2003
Changes in directory llvm/test/Regression/Transforms/InstCombine:
xor.ll updated: 1.6 -> 1.7
---
Log message:
New testcase for masking operation that frequently occurs in the pool allocator
for converting a number that is a power of two into a mask
---
Diffs of the changes: (+6 -0)
Index: llvm/test/Regression/Transforms/InstCombine/xor.ll
diff -u llvm/test/Regression/Transforms/InstCombine/xor.ll:1.6 llvm/test/Regression/Transforms/InstCombine/xor.ll:1.7
--- llvm/test/Regression/Transforms/InstCombine/xor.ll:1.6 Tue Sep 16 10:29:34 2003
+++ llvm/test/Regression/Transforms/InstCombine/xor.ll Tue Nov 4 17:21:22 2003
@@ -98,3 +98,9 @@
%E = xor bool %C, %D ; E = true
ret bool %E
}
+
+uint %test15(uint %A) { ; ~(X-1) == -X
+ %B = add uint %A, 4294967295
+ %C = xor uint %B, 4294967295
+ ret uint %C
+}
More information about the llvm-commits
mailing list