mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Tweak ADDrr fix. Bad check for explicit .w
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e507c645d
commit
713c70238c
@ -5245,8 +5245,8 @@ processInstruction(MCInst &Inst,
|
||||
// 'as' behaviour. Make sure the wide encoding wasn't explicit.
|
||||
if (Inst.getOperand(0).getReg() != Inst.getOperand(1).getReg() ||
|
||||
Inst.getOperand(5).getReg() != 0 ||
|
||||
(static_cast<ARMOperand*>(Operands[2])->isToken() &&
|
||||
static_cast<ARMOperand*>(Operands[2])->getToken() == ".w"))
|
||||
(static_cast<ARMOperand*>(Operands[3])->isToken() &&
|
||||
static_cast<ARMOperand*>(Operands[3])->getToken() == ".w"))
|
||||
break;
|
||||
MCInst TmpInst;
|
||||
TmpInst.setOpcode(ARM::tADDhirr);
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
.code 16
|
||||
add.w r0, r0, r1
|
||||
@ CHECK: add r0, r1 @ encoding: [0x08,0x44]
|
||||
@ CHECK: add.w r0, r0, r1 @ encoding: [0x00,0xeb,0x01,0x00]
|
||||
|
||||
.code 32
|
||||
add r0, r0, r1
|
||||
|
Loading…
Reference in New Issue
Block a user