mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-02 07:30:52 +00:00
Add two new patterns that instcombine should or does handle
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4874680b65
commit
d086fb20eb
@ -23,3 +23,15 @@ int "test3"(int %A) {
|
||||
%C = sub int 0, %B ; C = -B = A
|
||||
ret int %C
|
||||
}
|
||||
|
||||
int "test4"(int %A, int %x) {
|
||||
%B = sub int 0, %A
|
||||
%C = sub int %x, %B
|
||||
ret int %C
|
||||
}
|
||||
|
||||
int "test5"(int %A, int %B, int %C) {
|
||||
%D = sub int %B, %C
|
||||
%E = sub int %A, %D
|
||||
ret int %E
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user