diff options
author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-11-24 20:07:35 +0000 |
---|---|---|
committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-11-24 20:07:35 +0000 |
commit | 845e93818ac5a41c43c412359cdf44c3be93efc9 (patch) | |
tree | 06e47f94e658249523fb3cfd5312413c0347742a /lib/Target/Sparc/SparcInstrInfo.td | |
parent | cf09ce3b08c8c73e60d79ab95fc2516e6e7b3d25 (diff) | |
download | llvm-845e93818ac5a41c43c412359cdf44c3be93efc9.tar.gz llvm-845e93818ac5a41c43c412359cdf44c3be93efc9.tar.bz2 llvm-845e93818ac5a41c43c412359cdf44c3be93efc9.tar.xz |
[Sparc]: Implement LEA pattern for sparcv9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcInstrInfo.td')
-rw-r--r-- | lib/Target/Sparc/SparcInstrInfo.td | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index 8dadc89fb9..ef7a114570 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.td @@ -502,10 +502,11 @@ defm SRA : F3_12<"sra", 0b100111, sra>; defm ADD : F3_12<"add", 0b000000, add>; // "LEA" forms of add (patterns to make tblgen happy) -def LEA_ADDri : F3_2<2, 0b000000, - (outs IntRegs:$dst), (ins MEMri:$addr), - "add ${addr:arith}, $dst", - [(set iPTR:$dst, ADDRri:$addr)]>; +let Predicates = [Is32Bit] in + def LEA_ADDri : F3_2<2, 0b000000, + (outs IntRegs:$dst), (ins MEMri:$addr), + "add ${addr:arith}, $dst", + [(set iPTR:$dst, ADDRri:$addr)]>; let Defs = [ICC] in defm ADDCC : F3_12<"addcc", 0b010000, addc>; |