mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
Add new testcase for arithmetic shr of -1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2e217a7d96
commit
af1b4ad24c
@ -37,3 +37,8 @@ uint %test6(uint %A) {
|
||||
%B = shl uint %A, ubyte 1 ;; convert to an add instruction
|
||||
ret uint %B
|
||||
}
|
||||
|
||||
int %test7(ubyte %A) {
|
||||
%B = shr int -1, ubyte %A ;; Always equal to -1
|
||||
ret int %B
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user