forked from OSchip/llvm-project
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
8a4039ed9a
commit
c856e90d1d
|
@ -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