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

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 3 23:38:01 PDT 2003


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

or.ll updated: 1.12 -> 1.13

---
Log message:

Add new test for inverting branches


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/InstCombine/or.ll
diff -u llvm/test/Regression/Transforms/InstCombine/or.ll:1.12 llvm/test/Regression/Transforms/InstCombine/or.ll:1.13
--- llvm/test/Regression/Transforms/InstCombine/or.ll:1.12	Mon Mar 10 18:10:59 2003
+++ llvm/test/Regression/Transforms/InstCombine/or.ll	Tue Jun  3 23:37:46 2003
@@ -105,3 +105,13 @@
 	%E = or ubyte %C, %D
 	ret ubyte %E
 }
+
+ubyte %test18(bool %c) {
+	%d = xor bool %c, true    ; invert the condition
+	br bool %d, label %True, label %False
+True:
+	ret ubyte 1
+False:
+	ret ubyte 3
+}
+





More information about the llvm-commits mailing list