mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Add testcase for -(-A)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45d8b917be
commit
c1bfd13c0a
@ -18,4 +18,8 @@ int "test2"(int %A) {
|
||||
ret int %B
|
||||
}
|
||||
|
||||
|
||||
int "test3"(int %A) {
|
||||
%B = sub int 0, %A ; B = -A
|
||||
%C = sub int 0, %B ; C = -B = A
|
||||
ret int %C
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user