From ff62819e2fdd0d3c1e11c981edfaaab33ce12d7b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 19 Oct 2006 12:45:04 +0000 Subject: [PATCH] implement extloadi8 and extloadi16 llvm-svn: 31047 --- llvm/lib/Target/ARM/ARMInstrInfo.td | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.td b/llvm/lib/Target/ARM/ARMInstrInfo.td index 349c358b89ea..c16e3e85cd4b 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.td +++ b/llvm/lib/Target/ARM/ARMInstrInfo.td @@ -160,6 +160,10 @@ 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))]>; @@ -168,6 +172,10 @@ 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))]>;