Update for feedback from Jim.

llvm-svn: 138642
This commit is contained in:
Owen Anderson 2011-08-26 19:39:26 +00:00
parent 37e94d06ba
commit 5658b49f64
1 changed files with 3 additions and 3 deletions

View File

@ -2319,13 +2319,13 @@ static DecodeStatus DecodeThumbAddSpecialReg(llvm::MCInst &Inst, uint16_t Insn,
CHECK(S, DecodetGPRRegisterClass(Inst, dst, Address, Decoder));
switch(Inst.getOpcode()) {
default:
return Fail;
case ARM::tADR:
break;
break; // tADR does not explicitly represent the PC as an oeprand.
case ARM::tADDrSPi:
Inst.addOperand(MCOperand::CreateReg(ARM::SP));
break;
default:
return Fail;
}
Inst.addOperand(MCOperand::CreateImm(imm));