summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2014-09-03 14:16:50 +0000
committersbruno <sbruno@FreeBSD.org>2014-09-03 14:16:50 +0000
commit23ddd9899301c962e97fb6cb3465f9f67bbcb2f4 (patch)
tree74ce5b60ec882d5c6a1f65e73a81e152c8e0f4b5 /contrib/llvm/lib/Target/ARM
parent2373443b480dc16d06c24749ff853379d09ac3d0 (diff)
downloadFreeBSD-src-23ddd9899301c962e97fb6cb3465f9f67bbcb2f4.zip
FreeBSD-src-23ddd9899301c962e97fb6cb3465f9f67bbcb2f4.tar.gz
MFV: Only emit movw on ARMv6T2
Building for the FreeBSD default target ARMv6 was emitting movw ASM on certain test cases (found building qmake4/5 for ARM). Don't do that, moreover, the AS in base doesn't understand this instruction for this target. One would need to use --integrated-as to get this to build if desired. http://llvm.org/viewvc/llvm-project?view=revision&revision=216989 Submitted by: ian Reviewed by: dim Obtained from: llvm.org MFC after: 2 days
Diffstat (limited to 'contrib/llvm/lib/Target/ARM')
-rw-r--r--contrib/llvm/lib/Target/ARM/ARMInstrInfo.td3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm/lib/Target/ARM/ARMInstrInfo.td b/contrib/llvm/lib/Target/ARM/ARMInstrInfo.td
index 2042c04..7a14b8e 100644
--- a/contrib/llvm/lib/Target/ARM/ARMInstrInfo.td
+++ b/contrib/llvm/lib/Target/ARM/ARMInstrInfo.td
@@ -3248,7 +3248,8 @@ def : ARMPat<(ARMaddc GPR:$src, imm0_65535_neg:$imm),
def : ARMPat<(ARMadde GPR:$src, so_imm_not:$imm, CPSR),
(SBCri GPR:$src, so_imm_not:$imm)>;
def : ARMPat<(ARMadde GPR:$src, imm0_65535_neg:$imm, CPSR),
- (SBCrr GPR:$src, (MOVi16 (imm_not_XFORM imm:$imm)))>;
+ (SBCrr GPR:$src, (MOVi16 (imm_not_XFORM imm:$imm)))>,
+ Requires<[IsARM, HasV6T2]>;
// Note: These are implemented in C++ code, because they have to generate
// ADD/SUBrs instructions, which use a complex pattern that a xform function
OpenPOWER on IntegriCloud