Add new test for inverting branches
authorChris Lattner <sabre@nondot.org>
Wed, 4 Jun 2003 04:37:46 +0000 (04:37 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 4 Jun 2003 04:37:46 +0000 (04:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6598 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/or.ll

index f4f360df72a6224f2c4ee7197a0de66e550992e2..e01bb11bf580472238a890556280c1f82bfac213 100644 (file)
@@ -105,3 +105,13 @@ ubyte %test17(ubyte %A, ubyte %B) {  ; Test that (A|c1)|(B|c2) == (A|B)|(c1|c2)
        %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
+}
+