From 6deba28c6fcca94ffebe3b8b904ab6ec074ea419 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 23 Jul 2009 17:06:46 +0000 Subject: Fix frame index elimination to correctly handle thumb-2 addressing modes that don't allow negative offsets. During frame elimination convert *i12 opcode to a *i8 when necessary due to a negative offset. llvm-svn: 76883 --- llvm/lib/Target/ARM/ARMInstrInfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/Target/ARM/ARMInstrInfo.cpp') diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.cpp b/llvm/lib/Target/ARM/ARMInstrInfo.cpp index 688dc31c139..45b77c83bee 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.cpp +++ b/llvm/lib/Target/ARM/ARMInstrInfo.cpp @@ -29,6 +29,11 @@ ARMInstrInfo::ARMInstrInfo(const ARMSubtarget &STI) : ARMBaseInstrInfo(STI), RI(*this, STI) { } +unsigned ARMInstrInfo:: +unsignedOffsetOpcodeToSigned(unsigned opcode, unsigned *NumBits) const { + return 0; +} + unsigned ARMInstrInfo:: getUnindexedOpcode(unsigned Opc) const { switch (Opc) { -- cgit v1.2.3