mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Instructiosn with 1 memory operand have 4 operands in our
representation.. duh! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11554 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f41dadafae
commit
d886ed99fb
@ -89,8 +89,7 @@ int X86RegisterInfo::copyRegToReg(MachineBasicBlock &MBB,
|
|||||||
|
|
||||||
static MachineInstr *MakeMInst(unsigned Opcode, unsigned FrameIndex,
|
static MachineInstr *MakeMInst(unsigned Opcode, unsigned FrameIndex,
|
||||||
MachineInstr *MI) {
|
MachineInstr *MI) {
|
||||||
return addFrameReference(BuildMI(Opcode, 1, MI->getOperand(0).getReg()),
|
return addFrameReference(BuildMI(Opcode, 4), FrameIndex);
|
||||||
FrameIndex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static MachineInstr *MakeMRInst(unsigned Opcode, unsigned FrameIndex,
|
static MachineInstr *MakeMRInst(unsigned Opcode, unsigned FrameIndex,
|
||||||
|
Loading…
Reference in New Issue
Block a user