mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Make sure to emit the immediate byte for instructions like:
shrd [mem], reg, imm This fixes the jit-ls failure on 186.crafty. llvm-svn: 14914
This commit is contained in:
parent
d7905d828b
commit
9bcf258cc3
@ -577,6 +577,8 @@ void Emitter::emitInstruction(const MachineInstr &MI) {
|
||||
case X86II::MRMDestMem:
|
||||
MCE.emitByte(BaseOpcode);
|
||||
emitMemModRMByte(MI, 0, getX86RegNum(MI.getOperand(4).getReg()));
|
||||
if (MI.getNumOperands() == 6)
|
||||
emitConstant(MI.getOperand(5).getImmedValue(), sizeOfImm(Desc));
|
||||
break;
|
||||
|
||||
case X86II::MRMSrcReg:
|
||||
|
Loading…
Reference in New Issue
Block a user