diff options
author | Weiming Zhao <weimingz@codeaurora.org> | 2016-12-07 18:41:07 +0000 |
---|---|---|
committer | Weiming Zhao <weimingz@codeaurora.org> | 2016-12-07 18:41:07 +0000 |
commit | a913f7ddbe4f920b52da988cf068595510d62e3d (patch) | |
tree | 2049a1e9f25b3aac3dfe42f7e7eca9a03c86fbb2 | |
parent | cb2443e80cc9b58a8409d7b57b24ec23324a7d27 (diff) | |
download | bcm5719-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.h | 5 |
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 |