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:
Chris Lattner 2004-07-17 20:26:14 +00:00
parent 8a4039ed9a
commit c856e90d1d
1 changed files with 2 additions and 0 deletions

View File

@ -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: