[mips][msa] Fix suboptimal FrameIndex lowering for ld.[hwd] and st.[hwd]
[oota-llvm.git] / lib / Target / Sparc / SparcInstr64Bit.td
index 51397d8fb319b8395e06562b76e73c7e4ad2620a..8656de5c8ba9e6fceb7c4d4dfe0402c025d83d5e 100644 (file)
@@ -171,6 +171,12 @@ def : Pat<(SPcmpicc i64:$a, (i64 simm13:$b)), (CMPri $a, (as_i32imm $b))>;
 
 def : Pat<(ctpop i64:$src), (POPCrr $src)>;
 
+// "LEA" form of add
+def LEAX_ADDri : F3_2<2, 0b000000,
+                     (outs I64Regs:$dst), (ins MEMri:$addr),
+                     "add ${addr:arith}, $dst",
+                     [(set iPTR:$dst, ADDRri:$addr)]>;
+
 } // Predicates = [Is64Bit]