implement extloadi8 and extloadi16

llvm-svn: 31047
This commit is contained in:
Rafael Espindola 2006-10-19 12:45:04 +00:00
parent 3c563c5072
commit ff62819e2f
1 changed files with 8 additions and 0 deletions

View File

@ -160,6 +160,10 @@ def LDRB : InstARM<(ops IntRegs:$dst, IntRegs:$addr),
"ldrb $dst, [$addr]", "ldrb $dst, [$addr]",
[(set IntRegs:$dst, (zextloadi8 IntRegs:$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), def LDRSB : InstARM<(ops IntRegs:$dst, IntRegs:$addr),
"ldrsb $dst, [$addr]", "ldrsb $dst, [$addr]",
[(set IntRegs:$dst, (sextloadi8 IntRegs:$addr))]>; [(set IntRegs:$dst, (sextloadi8 IntRegs:$addr))]>;
@ -168,6 +172,10 @@ def LDRH : InstARM<(ops IntRegs:$dst, IntRegs:$addr),
"ldrh $dst, [$addr]", "ldrh $dst, [$addr]",
[(set IntRegs:$dst, (zextloadi16 IntRegs:$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), def LDRSH : InstARM<(ops IntRegs:$dst, IntRegs:$addr),
"ldrsh $dst, [$addr]", "ldrsh $dst, [$addr]",
[(set IntRegs:$dst, (sextloadi16 IntRegs:$addr))]>; [(set IntRegs:$dst, (sextloadi16 IntRegs:$addr))]>;