summaryrefslogtreecommitdiff
path: root/lib/builtins
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
commit86a022aea9d00a64edb897b0662b8cdd3beb8f34 (patch)
treed6b819ca479ad34268b11af60f82b767c9bed6e7 /lib/builtins
parente5e7511c0f440969f5561e590147b1b1882218bf (diff)
[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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@288954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins')
-rw-r--r--lib/builtins/assembly.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/builtins/assembly.h b/lib/builtins/assembly.h
index 377b3ea08..29d9f8844 100644
--- a/lib/builtins/assembly.h
+++ b/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