ARM encoder method needs the physical register number, not the enum.

llvm-svn: 145711
This commit is contained in:
Jim Grosbach 2011-12-02 22:01:25 +00:00
parent 282d70c410
commit 81c9003695
1 changed files with 1 additions and 1 deletions

View File

@ -1412,7 +1412,7 @@ getAddrMode6OffsetOpValue(const MCInst &MI, unsigned Op,
SmallVectorImpl<MCFixup> &Fixups) const {
const MCOperand &MO = MI.getOperand(Op);
if (MO.getReg() == 0) return 0x0D;
return MO.getReg();
return getARMRegisterNumbering(MO.getReg());
}
unsigned ARMMCCodeEmitter::