mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Oh right, casts can interfere. Test this too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c2906744a
commit
eb416e85bc
@ -86,3 +86,11 @@ uint %test13(uint %A) {
|
||||
%C = sub uint 0, %B ; == sar A, 31
|
||||
ret uint %C
|
||||
}
|
||||
|
||||
int %test14(uint %A) {
|
||||
%B = shr uint %A, ubyte 31
|
||||
%C = cast uint %B to int
|
||||
%D = sub int 0, %C
|
||||
ret int %D
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user