aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-01-19 02:09:38 +0000
committerJim Grosbach <grosbach@apple.com>2012-01-19 02:09:38 +0000
commit9363c58dc2473a6470d3e7037afe8a215bee7e3e (patch)
tree12ed26e35a8108ff9a5580cde55d992a44f1bc23 /lib
parentd26bad079d6977309699e0bc9203451904acbd86 (diff)
downloadexternal_llvm-9363c58dc2473a6470d3e7037afe8a215bee7e3e.zip
external_llvm-9363c58dc2473a6470d3e7037afe8a215bee7e3e.tar.gz
external_llvm-9363c58dc2473a6470d3e7037afe8a215bee7e3e.tar.bz2
Thumb2 relaxation for tADR to t2ADR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp b/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
index 2a8f7c6..ed1ea21 100644
--- a/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
+++ b/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
@@ -154,6 +154,7 @@ static unsigned getRelaxedOpcode(unsigned Op) {
default: return Op;
case ARM::tBcc: return ARM::t2Bcc;
case ARM::tLDRpciASM: return ARM::t2LDRpci;
+ case ARM::tADR: return ARM::t2ADR;
}
}
@@ -179,6 +180,7 @@ bool ARMAsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup,
int64_t Offset = int64_t(Value) - 4;
return Offset > 254 || Offset < -256;
}
+ case ARM::fixup_thumb_adr_pcrel_10:
case ARM::fixup_arm_thumb_cp: {
// If the immediate is negative, greater than 1020, or not a multiple
// of four, the wide version of the instruction must be used.