mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Reserve the correct amt of space.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14913 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
05540a75f5
commit
3b5e6e5f84
@ -100,7 +100,7 @@ static MachineInstr *MakeMRInst(unsigned Opcode, unsigned FrameIndex,
|
||||
|
||||
static MachineInstr *MakeMRIInst(unsigned Opcode, unsigned FrameIndex,
|
||||
MachineInstr *MI) {
|
||||
return addFrameReference(BuildMI(Opcode, 5), FrameIndex)
|
||||
return addFrameReference(BuildMI(Opcode, 6), FrameIndex)
|
||||
.addReg(MI->getOperand(1).getReg())
|
||||
.addZImm(MI->getOperand(2).getImmedValue());
|
||||
}
|
||||
@ -127,7 +127,7 @@ static MachineInstr *MakeRMInst(unsigned Opcode, unsigned FrameIndex,
|
||||
static MachineInstr *MakeRMIInst(unsigned Opcode, unsigned FrameIndex,
|
||||
MachineInstr *MI) {
|
||||
const MachineOperand& op = MI->getOperand(0);
|
||||
return addFrameReference(BuildMI(Opcode, 5, op.getReg(), op.getUseType()),
|
||||
return addFrameReference(BuildMI(Opcode, 6, op.getReg(), op.getUseType()),
|
||||
FrameIndex).addZImm(MI->getOperand(2).getImmedValue());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user