[llvm-commits] [llvm] r148456 - /llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
Jim Grosbach
grosbach at apple.com
Wed Jan 18 18:09:38 PST 2012
Author: grosbach
Date: Wed Jan 18 20:09:38 2012
New Revision: 148456
URL: http://llvm.org/viewvc/llvm-project?rev=148456&view=rev
Log:
Thumb2 relaxation for tADR to t2ADR.
Modified:
llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
Modified: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp?rev=148456&r1=148455&r2=148456&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp Wed Jan 18 20:09:38 2012
@@ -154,6 +154,7 @@
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 @@
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.
More information about the llvm-commits
mailing list