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

Anton Korobeynikov anton at korobeynikov.info
Sat Nov 22 22:15:57 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
----------------
You also need to add tests checking for negative cases (.e.g on M-only cpu, etc.)

http://reviews.llvm.org/D6339






More information about the cfe-commits mailing list