Add new test for inverting branches

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-06-04 04:37:46 +00:00
parent f5b1d3dcd4
commit 5feab1631f

View 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
}