[llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp
Misha Brukman
brukman at cs.uiuc.edu
Mon Dec 2 15:11:01 PST 2002
Changes in directory llvm/lib/Target/X86:
X86RegisterInfo.cpp updated: 1.4 -> 1.5
---
Log message:
Fix order of operands on a store from reg to [reg+offset].
---
Diffs of the changes:
Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.4 llvm/lib/Target/X86/X86RegisterInfo.cpp:1.5
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.4 Fri Nov 22 17:15:27 2002
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp Mon Dec 2 15:10:35 2002
@@ -31,8 +31,8 @@
unsigned ImmOffset, unsigned dataSize)
const
{
- MachineInstr *MI = addRegOffset(BuildMI(X86::MOVrm32, 5).addReg(SrcReg),
- DestReg, ImmOffset);
+ MachineInstr *MI = addRegOffset(BuildMI(X86::MOVrm32, 5),
+ DestReg, ImmOffset).addReg(SrcReg);
return ++(MBB->insert(MBBI, MI));
}
More information about the llvm-commits
mailing list