mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Test that xor/select are folded into a select with inverted operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
64001d0a13
commit
6edb7e8c20
@ -141,4 +141,8 @@ void %test20(uint %A, uint %B) { ; The "swap idiom"
|
||||
ret void
|
||||
}
|
||||
|
||||
|
||||
int %test21(bool %C, int %A, int %B) {
|
||||
%C2 = xor bool %C, true
|
||||
%D = select bool %C2, int %A, int %B
|
||||
ret int %D
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user