mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-28 14:10:55 +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);
|
||||
} else {
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ void Emitter::emitMemModRMByte(const MachineInstr &MI,
|
||||
emitConstant(Disp.getImmedValue(), 1);
|
||||
} else {
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user