diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-03-04 17:59:18 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-03-04 17:59:18 +0000 |
commit | 911a992c33287ef3f5972ae7a64fe56afd64bd98 (patch) | |
tree | 66c9a6ab91fc5743fbfd166a220f16bff53d5f5f | |
parent | 81092dc20abe5253a5b4d48a75997baa84dde196 (diff) | |
download | external_llvm-911a992c33287ef3f5972ae7a64fe56afd64bd98.zip external_llvm-911a992c33287ef3f5972ae7a64fe56afd64bd98.tar.gz external_llvm-911a992c33287ef3f5972ae7a64fe56afd64bd98.tar.bz2 |
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
-rw-r--r-- | lib/Target/Mips/MipsInstrInfo.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.td b/lib/Target/Mips/MipsInstrInfo.td index b077d8d..65ef655 100644 --- a/lib/Target/Mips/MipsInstrInfo.td +++ b/lib/Target/Mips/MipsInstrInfo.td @@ -533,7 +533,7 @@ def : Pat<(subc CPURegs:$lhs, CPURegs:$rhs), (SUBu CPURegs:$lhs, CPURegs:$rhs)>; def : Pat<(addc 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)>; // Call |