From 2435786414ac5e3eccddc6dc8252421f627aee6a Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 19 Oct 2006 17:05:03 +0000 Subject: [PATCH] use Pat to implement extloadi8 and extloadi16 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31052 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrInfo.td | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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)>; -- 2.34.1