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:
Chris Lattner 2002-12-13 05:05:05 +00:00
parent 276867de18
commit 2067184b42
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);
}
}