mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Reapply r140412 (Thumb2 reg-reg loads cannot target SP or PC), with invalid testcases updated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140415 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df0caeb6ec
commit
31d485ec9a
@ -2660,7 +2660,7 @@ static DecodeStatus DecodeT2LoadShift(llvm::MCInst &Inst, unsigned Insn,
|
||||
break;
|
||||
default: {
|
||||
unsigned Rt = fieldFromInstruction32(Insn, 12, 4);
|
||||
if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder)))
|
||||
if (!Check(S, DecoderGPRRegisterClass(Inst, Rt, Address, Decoder)))
|
||||
return MCDisassembler::Fail;
|
||||
}
|
||||
}
|
||||
|
@ -649,14 +649,14 @@
|
||||
# CHECK: ldrh.w r5, [r6, #33]
|
||||
# CHECK: ldrh.w r5, [r6, #257]
|
||||
# CHECK: ldrh.w lr, [r7, #257]
|
||||
# CHECK: ldrh.w sp, [pc, #-21]
|
||||
# CHECK: ldrh.w r0, [pc, #-21]
|
||||
|
||||
0x35 0xf8 0x04 0x5c
|
||||
0x35 0x8c
|
||||
0xb6 0xf8 0x21 0x50
|
||||
0xb6 0xf8 0x01 0x51
|
||||
0xb7 0xf8 0x01 0xe1
|
||||
0x3f 0xf8 0x15 0xd0
|
||||
0x3f 0xf8 0x15 0x00
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user