projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b5e6e5
)
Make sure to emit the immediate byte for instructions like:
author
Chris Lattner
<sabre@nondot.org>
Sat, 17 Jul 2004 20:26:14 +0000
(20:26 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 17 Jul 2004 20:26:14 +0000
(20:26 +0000)
shrd [mem], reg, imm
This fixes the jit-ls failure on 186.crafty.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14914
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86CodeEmitter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86CodeEmitter.cpp
b/lib/Target/X86/X86CodeEmitter.cpp
index 522231ae04ca32a0cc49edd82130573ba2f47b23..18fe460f112c45479610844c235259d8bce7a939 100644
(file)
--- a/
lib/Target/X86/X86CodeEmitter.cpp
+++ b/
lib/Target/X86/X86CodeEmitter.cpp
@@
-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: