================
@@ -0,0 +1,31 @@
+// Ensures that when targeting an ARM target with an Asm file, clang
+// collects the features from the FPU. This is critical in the
+// activation of NEON for supported targets. The Cortex-R52 will be
+// used and tested for VFP and NEON Support
+
+// RUN: %clang -target arm-none-eabi -mcpu=cortex-r52 -c %s -o /dev/null | 
count 0
----------------
mstorsjo wrote:

This requires a `// REQUIRES: arm-registered-target` (like `armv8.1.m.main.s` 
has), as this actually does try to compile the code.

Actually compiling code in Clang driver tests would ideally not be done (we 
should ideally only inspect the generated command lines), but we do seem to 
have some precedent for it already in `armv8.1.m.main.s`, and especially for 
the implicit behaviours that aren't necessarily visible in the command line, I 
guess there's no other good alternative.

So I guess this kind of test is fine, but add the `REQUIRES` line.

https://github.com/llvm/llvm-project/pull/130623
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to