[PATCH] [ARM] Define __ARM_FEATURE_DSP macro for CPUs that have DSP instructions

Sergey Dmitrouk sdmitrouk at accesssoftek.com
Mon Nov 24 06:07:42 PST 2014


================
Comment at: test/Preprocessor/arm-target-features.c:150
@@ -149,2 +149,3 @@
+// A5-ARM:#define __ARM_FEATURE_DSP
 
 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-a5 -x c -E -dM %s -o - | FileCheck --check-prefix=A5-THUMB %s
----------------
asl wrote:
> You also need to add tests checking for negative cases (.e.g on M-only cpu, etc.)
Actually, there already were two `NOT`-checks for `M0` and `M3`, added one more for v4 and one for v5 without such instructions.

http://reviews.llvm.org/D6339






More information about the cfe-commits mailing list