llvm.org GIT mirror llvm / 98793b9
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 Jim Grosbach 10 years ago
1 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
104104 (TargetRegisterInfo::isPhysicalRegister(SrcReg) &&
105105 isARMLowRegister(SrcReg))) && "Unknown regclass!");
106106
107 if (RC == ARM::tGPRRegisterClass) {
107 if (RC == ARM::tGPRRegisterClass ||
108 (TargetRegisterInfo::isPhysicalRegister(SrcReg) &&
109 isARMLowRegister(SrcReg))) {
108110 MachineFunction &MF = *MBB.getParent();
109111 MachineFrameInfo &MFI = *MF.getFrameInfo();
110112 MachineMemOperand *MMO =
129131 (TargetRegisterInfo::isPhysicalRegister(DestReg) &&
130132 isARMLowRegister(DestReg))) && "Unknown regclass!");
131133
132 if (RC == ARM::tGPRRegisterClass) {
134 if (RC == ARM::tGPRRegisterClass ||
135 (TargetRegisterInfo::isPhysicalRegister(DestReg) &&
136 isARMLowRegister(DestReg))) {
133137 MachineFunction &MF = *MBB.getParent();
134138 MachineFrameInfo &MFI = *MF.getFrameInfo();
135139 MachineMemOperand *MMO =