mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
implement extloadi8 and extloadi16
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6495bdd8d2
commit
3692c7ac17
@ -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))]>;
|
||||
|
Loading…
Reference in New Issue
Block a user