summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeiming Zhao <weimingz@codeaurora.org>2016-12-07 18:41:07 +0000
committerWeiming Zhao <weimingz@codeaurora.org>2016-12-07 18:41:07 +0000
commita913f7ddbe4f920b52da988cf068595510d62e3d (patch)
tree2049a1e9f25b3aac3dfe42f7e7eca9a03c86fbb2
parentcb2443e80cc9b58a8409d7b57b24ec23324a7d27 (diff)
downloadbcm5719-llvm-a913f7ddbe4f920b52da988cf068595510d62e3d.tar.gz
bcm5719-llvm-a913f7ddbe4f920b52da988cf068595510d62e3d.zip
[builtin] for the condition for check __ARM_FEATURE_CLZ
Summary: Since CLZ is not available for Thumb1, we use __ARM_ARCH_ISA_THUMB != 1 as one of the conditions. Reviewers: rnk, compnerd, rengolin Subscribers: aemerson, rengolin, llvm-commits Differential Revision: https://reviews.llvm.org/D27530 llvm-svn: 288954
-rw-r--r--compiler-rt/lib/builtins/assembly.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h
index 377b3ea0861..29d9f8844a6 100644
--- a/compiler-rt/lib/builtins/assembly.h
+++ b/compiler-rt/lib/builtins/assembly.h
@@ -70,9 +70,8 @@
#if defined(__ARM_ARCH_4T__) || __ARM_ARCH >= 5
#define ARM_HAS_BX
#endif
-#if !defined(__ARM_FEATURE_CLZ) && \
- ((__ARM_ARCH >= 6 && __ARM_ARCH_PROFILE != 'M') || \
- (__ARM_ARCH == 5 && !defined(__ARM_ARCH_5__)))
+#if !defined(__ARM_FEATURE_CLZ) && __ARM_ARCH_ISA_THUMB != 1 && \
+ (__ARM_ARCH >= 6 || (__ARM_ARCH == 5 && !defined(__ARM_ARCH_5__)))
#define __ARM_FEATURE_CLZ
#endif
OpenPOWER on IntegriCloud