forked from OSchip/llvm-project
Tweak ADDrr fix. Bad check for explicit .w
llvm-svn: 145863
This commit is contained in:
parent
6d694a38fd
commit
b8c719ccc6
|
@ -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