mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 23:48:49 +00:00
Fixes addc pattern when immediate cannot be represented with 16-bit. Patch by Akira Hatanaka
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
81092dc20a
commit
911a992c33
@ -533,7 +533,7 @@ def : Pat<(subc CPURegs:$lhs, CPURegs:$rhs),
|
|||||||
(SUBu CPURegs:$lhs, CPURegs:$rhs)>;
|
(SUBu CPURegs:$lhs, CPURegs:$rhs)>;
|
||||||
def : Pat<(addc CPURegs:$lhs, CPURegs:$rhs),
|
def : Pat<(addc CPURegs:$lhs, CPURegs:$rhs),
|
||||||
(ADDu CPURegs:$lhs, CPURegs:$rhs)>;
|
(ADDu CPURegs:$lhs, CPURegs:$rhs)>;
|
||||||
def : Pat<(addc CPURegs:$src, imm:$imm),
|
def : Pat<(addc CPURegs:$src, immSExt16:$imm),
|
||||||
(ADDiu CPURegs:$src, imm:$imm)>;
|
(ADDiu CPURegs:$src, imm:$imm)>;
|
||||||
|
|
||||||
// Call
|
// Call
|
||||||
|
Loading…
Reference in New Issue
Block a user