mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Add test for: (A|B)^B == A & (~B)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a66e2fa195
commit
63a9548591
@ -69,3 +69,9 @@ int %test12(int %A) { ; A | ~A == -1
|
||||
%B = or int %A, %NotA
|
||||
ret int %B
|
||||
}
|
||||
|
||||
uint %test13(uint %A) { ; (A|B)^B == A & (~B)
|
||||
%t1 = or uint %A, 123
|
||||
%r = xor uint %t1, 123
|
||||
ret uint %r
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user