[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
This commit is contained in:
Weiming Zhao 2016-12-07 18:41:07 +00:00
parent cb2443e80c
commit a913f7ddbe
1 changed files with 2 additions and 3 deletions

View File

@ -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