mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Update Thumb1 storeRegToStackSlot() and loadRegFromStackSlot() to properly
handle physical registers R0-R7 when described as having a non-tGPR register class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93564 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5ad7de227b
commit
98793b9468
@ -105,7 +105,9 @@ storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
|
||||
(TargetRegisterInfo::isPhysicalRegister(SrcReg) &&
|
||||
isARMLowRegister(SrcReg))) && "Unknown regclass!");
|
||||
|
||||
if (RC == ARM::tGPRRegisterClass) {
|
||||
if (RC == ARM::tGPRRegisterClass ||
|
||||
(TargetRegisterInfo::isPhysicalRegister(SrcReg) &&
|
||||
isARMLowRegister(SrcReg))) {
|
||||
MachineFunction &MF = *MBB.getParent();
|
||||
MachineFrameInfo &MFI = *MF.getFrameInfo();
|
||||
MachineMemOperand *MMO =
|
||||
@ -130,7 +132,9 @@ loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
|
||||
(TargetRegisterInfo::isPhysicalRegister(DestReg) &&
|
||||
isARMLowRegister(DestReg))) && "Unknown regclass!");
|
||||
|
||||
if (RC == ARM::tGPRRegisterClass) {
|
||||
if (RC == ARM::tGPRRegisterClass ||
|
||||
(TargetRegisterInfo::isPhysicalRegister(DestReg) &&
|
||||
isARMLowRegister(DestReg))) {
|
||||
MachineFunction &MF = *MBB.getParent();
|
||||
MachineFrameInfo &MFI = *MF.getFrameInfo();
|
||||
MachineMemOperand *MMO =
|
||||
|
Loading…
Reference in New Issue
Block a user