mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
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:
parent
f5b1d3dcd4
commit
5feab1631f
@ -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
|
%E = or ubyte %C, %D
|
||||||
ret ubyte %E
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user