diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index e2cf72765ac..37ec3603d90 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -168,10 +168,6 @@ def LDRB : InstARM<(ops IntRegs:$dst, IntRegs:$addr), "ldrb $dst, [$addr]", [(set IntRegs:$dst, (zextloadi8 IntRegs:$addr))]>; -def LDRB2 : InstARM<(ops IntRegs:$dst, IntRegs:$addr), - "ldrb $dst, [$addr]", - [(set IntRegs:$dst, (extloadi8 IntRegs:$addr))]>; - def LDRSB : InstARM<(ops IntRegs:$dst, IntRegs:$addr), "ldrsb $dst, [$addr]", [(set IntRegs:$dst, (sextloadi8 IntRegs:$addr))]>; @@ -180,10 +176,6 @@ def LDRH : InstARM<(ops IntRegs:$dst, IntRegs:$addr), "ldrh $dst, [$addr]", [(set IntRegs:$dst, (zextloadi16 IntRegs:$addr))]>; -def LDRH2 : InstARM<(ops IntRegs:$dst, IntRegs:$addr), - "ldrh $dst, [$addr]", - [(set IntRegs:$dst, (extloadi16 IntRegs:$addr))]>; - def LDRSH : InstARM<(ops IntRegs:$dst, IntRegs:$addr), "ldrsh $dst, [$addr]", [(set IntRegs:$dst, (sextloadi16 IntRegs:$addr))]>; @@ -342,3 +334,8 @@ def : Pat<(ARMcall tglobaladdr:$dst), def : Pat<(ARMcall texternalsym:$dst), (bl texternalsym:$dst)>; + +def : Pat<(extloadi8 IntRegs:$addr), + (LDRB IntRegs:$addr)>; +def : Pat<(extloadi16 IntRegs:$addr), + (LDRH IntRegs:$addr)>;