[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/xor.ll

Chris Lattner lattner at cs.uiuc.edu
Tue Nov 4 17:51:01 PST 2003


Changes in directory llvm/test/Regression/Transforms/InstCombine:

xor.ll updated: 1.8 -> 1.9

---
Log message:

Since we're in the neighborhood, test for the inverse


---
Diffs of the changes:  (+6 -0)

Index: llvm/test/Regression/Transforms/InstCombine/xor.ll
diff -u llvm/test/Regression/Transforms/InstCombine/xor.ll:1.8 llvm/test/Regression/Transforms/InstCombine/xor.ll:1.9
--- llvm/test/Regression/Transforms/InstCombine/xor.ll:1.8	Tue Nov  4 17:36:50 2003
+++ llvm/test/Regression/Transforms/InstCombine/xor.ll	Tue Nov  4 17:49:53 2003
@@ -110,3 +110,9 @@
 	%C = xor uint %B, 4294967295
 	ret uint %C
 }
+
+uint %test17(uint %A) {             ; ~(c-X) == X-(c-1) == X+(-c+1)
+	%B = sub uint 123, %A
+	%C = xor uint %B, 4294967295
+	ret uint %C
+}





More information about the llvm-commits mailing list