forked from OSchip/llvm-project
ARM encoder method needs the physical register number, not the enum.
llvm-svn: 145711
This commit is contained in:
parent
282d70c410
commit
81c9003695
|
@ -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::
|
||||
|
|
Loading…
Reference in New Issue