[PATCH] D27530: [builtin] for the condition for check __ARM_FEATURE_CLZ

Renato Golin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 10:35:50 PST 2016


rengolin accepted this revision.
rengolin added a comment.
This revision is now accepted and ready to land.

Right, this looks correct.



================
Comment at: lib/builtins/assembly.h:74
 #if !defined(__ARM_FEATURE_CLZ) &&                                             \
-    ((__ARM_ARCH >= 6 && __ARM_ARCH_PROFILE != 'M') ||                         \
-     (__ARM_ARCH == 5 && !defined(__ARM_ARCH_5__)))
+    __ARM_ARCH_ISA_THUMB != 1 &&                                               \
+    (__ARM_ARCH >= 6  || (__ARM_ARCH == 5 && !defined(__ARM_ARCH_5__)))
----------------
just move this line up with the first one.


https://reviews.llvm.org/D27530





More information about the llvm-commits mailing list