mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +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:
parent
a930f3d8a3
commit
204aa64f30
@ -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
Block a user