mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Add a generalization of the previous case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
f61641f7d4
commit
736cca670f
1 file changed
+6
@@ -104,3 +104,9 @@ uint %test15(uint %A) { ; ~(X-1) == -X
|
|||||||
%C = xor uint %B, 4294967295
|
%C = xor uint %B, 4294967295
|
||||||
ret uint %C
|
ret uint %C
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint %test16(uint %A) { ; ~(X+c) == (-c-1)-X
|
||||||
|
%B = add uint %A, 123 ; A generalization of the previous case
|
||||||
|
%C = xor uint %B, 4294967295
|
||||||
|
ret uint %C
|
||||||
|
}
|
||||||
Reference in new issue
Block a user