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:
Jim Grosbach 2011-12-05 22:27:04 +00:00
parent 6e507c645d
commit 713c70238c
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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