mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Revert r141529. This is causing failures in the test-suite, like bigstack and ReedSolomon. Boo...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141716 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
395d76c5a3
commit
e575499d83
@ -1109,20 +1109,11 @@ bool ARMBaseRegisterInfo::isFrameOffsetLegal(const MachineInstr *MI,
|
|||||||
case ARMII::AddrMode3:
|
case ARMII::AddrMode3:
|
||||||
NumBits = 8;
|
NumBits = 8;
|
||||||
break;
|
break;
|
||||||
case ARMII::AddrModeT1_s: {
|
case ARMII::AddrModeT1_s:
|
||||||
const MachineBasicBlock &MBB = *MI->getParent();
|
NumBits = 5;
|
||||||
const MachineFunction &MF = *MBB.getParent();
|
|
||||||
unsigned FrameReg = ARM::SP;
|
|
||||||
if (MF.getFrameInfo()->hasVarSizedObjects())
|
|
||||||
// There are alloca()'s in this function, must reference off the frame
|
|
||||||
// pointer or base pointer instead.
|
|
||||||
FrameReg = (!hasBasePointer(MF) ?BasePtr : getFrameRegister(MF));
|
|
||||||
|
|
||||||
NumBits = (FrameReg == ARM::SP) ? 8 : 5;
|
|
||||||
Scale = 4;
|
Scale = 4;
|
||||||
isSigned = false;
|
isSigned = false;
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
llvm_unreachable("Unsupported addressing mode!");
|
llvm_unreachable("Unsupported addressing mode!");
|
||||||
break;
|
break;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
; RUN: llc < %s -march=thumb
|
; RUN: llc < %s -march=thumb
|
||||||
; RUN: llc < %s -mtriple=thumb-linux | grep pop | count 1
|
; RUN: llc < %s -mtriple=thumb-linux | grep pop | count 2
|
||||||
; RUN: llc < %s -mtriple=thumb-darwin | grep pop | count 2
|
; RUN: llc < %s -mtriple=thumb-darwin | grep pop | count 2
|
||||||
|
|
||||||
@str = internal constant [4 x i8] c"%d\0A\00" ; <[4 x i8]*> [#uses=1]
|
@str = internal constant [4 x i8] c"%d\0A\00" ; <[4 x i8]*> [#uses=1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user