mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Add testcases for negated multiplies
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a27231acc0
commit
533741a764
@ -59,3 +59,16 @@ int %test9(int %A) {
|
||||
ret int %C
|
||||
}
|
||||
|
||||
int %test10(int %A, int %B) { ; -A*-B == A*B
|
||||
%C = sub int 0, %A
|
||||
%D = sub int 0, %B
|
||||
%E = mul int %C, %D
|
||||
ret int %E
|
||||
}
|
||||
|
||||
int %test10(int %A) { ; -A *c1 == A * -c1
|
||||
%C = sub int 0, %A
|
||||
%E = mul int %C, 7
|
||||
ret int %E
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user