mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
ARM encoder method needs the physical register number, not the enum.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145711 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1412,7 +1412,7 @@ getAddrMode6OffsetOpValue(const MCInst &MI, unsigned Op,
|
|||||||
SmallVectorImpl<MCFixup> &Fixups) const {
|
SmallVectorImpl<MCFixup> &Fixups) const {
|
||||||
const MCOperand &MO = MI.getOperand(Op);
|
const MCOperand &MO = MI.getOperand(Op);
|
||||||
if (MO.getReg() == 0) return 0x0D;
|
if (MO.getReg() == 0) return 0x0D;
|
||||||
return MO.getReg();
|
return getARMRegisterNumbering(MO.getReg());
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned ARMMCCodeEmitter::
|
unsigned ARMMCCodeEmitter::
|
||||||
|
Reference in New Issue
Block a user