[PATCH] D27530: [builtin] for the condition for check __ARM_FEATURE_CLZ
Weiming Zhao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 7 10:50:29 PST 2016
weimingz updated this revision to Diff 80628.
weimingz added a comment.
I ran clang format, but uploaded the old version. :(
https://reviews.llvm.org/D27530
Files:
lib/builtins/assembly.h
Index: lib/builtins/assembly.h
===================================================================
--- lib/builtins/assembly.h
+++ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27530.80628.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161207/75c82828/attachment.bin>
More information about the llvm-commits
mailing list