[llvm-commits] CVS: llvm/lib/Target/X86/MachineCodeEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Dec 12 23:06:01 PST 2002
Changes in directory llvm/lib/Target/X86:
MachineCodeEmitter.cpp updated: 1.9 -> 1.10
---
Log message:
Emit the right form of mod/rm mod field
---
Diffs of the changes:
Index: llvm/lib/Target/X86/MachineCodeEmitter.cpp
diff -u llvm/lib/Target/X86/MachineCodeEmitter.cpp:1.9 llvm/lib/Target/X86/MachineCodeEmitter.cpp:1.10
--- llvm/lib/Target/X86/MachineCodeEmitter.cpp:1.9 Thu Dec 12 21:51:55 2002
+++ llvm/lib/Target/X86/MachineCodeEmitter.cpp Thu Dec 12 23:05:05 2002
@@ -148,7 +148,7 @@
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);
}
}
More information about the llvm-commits
mailing list