Emit the right form of mod/rm mod field

llvm-svn: 4986
This commit is contained in:
Chris Lattner 2002-12-13 05:05:05 +00:00
parent 7ec625a157
commit 62454d83f0
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}