mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Emit the right form of mod/rm mod field
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4986 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
276867de18
commit
2067184b42
@ -148,7 +148,7 @@ void Emitter::emitMemModRMByte(const MachineInstr &MI,
|
|||||||
emitConstant(Disp.getImmedValue(), 1);
|
emitConstant(Disp.getImmedValue(), 1);
|
||||||
} else {
|
} else {
|
||||||
// Emit the most general non-SIB encoding: [REG+disp32]
|
// Emit the most general non-SIB encoding: [REG+disp32]
|
||||||
MCE.emitByte(ModRMByte(1, RegOpcodeField, BaseRegNo));
|
MCE.emitByte(ModRMByte(2, RegOpcodeField, BaseRegNo));
|
||||||
emitConstant(Disp.getImmedValue(), 4);
|
emitConstant(Disp.getImmedValue(), 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ void Emitter::emitMemModRMByte(const MachineInstr &MI,
|
|||||||
emitConstant(Disp.getImmedValue(), 1);
|
emitConstant(Disp.getImmedValue(), 1);
|
||||||
} else {
|
} else {
|
||||||
// Emit the most general non-SIB encoding: [REG+disp32]
|
// Emit the most general non-SIB encoding: [REG+disp32]
|
||||||
MCE.emitByte(ModRMByte(1, RegOpcodeField, BaseRegNo));
|
MCE.emitByte(ModRMByte(2, RegOpcodeField, BaseRegNo));
|
||||||
emitConstant(Disp.getImmedValue(), 4);
|
emitConstant(Disp.getImmedValue(), 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user