mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Oops. Got the MOVrm and MOVmr mixed up. Fixed. We can now print out
instructions correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4830 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f88a2853c8
commit
8b938664f2
@ -31,7 +31,7 @@ X86RegisterInfo::storeReg2RegOffset(MachineBasicBlock *MBB,
|
||||
unsigned ImmOffset, unsigned dataSize)
|
||||
const
|
||||
{
|
||||
MachineInstr *MI = addRegOffset(BuildMI(X86::MOVmr32, 5).addReg(SrcReg),
|
||||
MachineInstr *MI = addRegOffset(BuildMI(X86::MOVrm32, 5).addReg(SrcReg),
|
||||
DestReg, ImmOffset);
|
||||
return ++(MBB->insert(MBBI, MI));
|
||||
}
|
||||
@ -43,7 +43,7 @@ X86RegisterInfo::loadRegOffset2Reg(MachineBasicBlock *MBB,
|
||||
unsigned ImmOffset, unsigned dataSize)
|
||||
const
|
||||
{
|
||||
MachineInstr *MI = addRegOffset(BuildMI(X86::MOVrm32, 5).addReg(DestReg),
|
||||
MachineInstr *MI = addRegOffset(BuildMI(X86::MOVmr32, 5).addReg(DestReg),
|
||||
SrcReg, ImmOffset);
|
||||
return ++(MBB->insert(MBBI, MI));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user