mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
I must have missed these when eliminating the cast to bool cannonicalizations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7829 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa9c1f13a1
commit
eb320c69ed
@ -49,13 +49,13 @@ ubyte %test8(ubyte %A) { ; AND associates
|
||||
|
||||
bool %test9(int %A) {
|
||||
%B = and int %A, -2147483648 ; Test of sign bit, convert to setle %A, 0
|
||||
%C = cast int %B to bool
|
||||
%C = setne int %B, 0
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
bool %test9(uint %A) {
|
||||
%B = and uint %A, 2147483648 ; Test of sign bit, convert to setle %A, 0
|
||||
%C = cast uint %B to bool
|
||||
%C = setne uint %B, 0
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user