1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

Add new test for inverting branches

llvm-svn: 6598
This commit is contained in:
Chris Lattner 2003-06-04 04:37:46 +00:00
parent 168c089a59
commit ce0e236e49

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
}