[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

David Spickett via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 16 01:11:45 PST 2023


================
@@ -0,0 +1,35 @@
+// RUN: %clang --target=arm-none-eabi -mcpu=cortex-m85 -mfloat-abi=hard -O2 -save-temps=obj -S -o - %s | FileCheck %s
+// RUN: %clang --target=arm-none-eabi -mcpu=cortex-m85 -mfloat-abi=hard -O2 -c -mthumb -save-temps=obj %s
+// RUN: %clang --target=arm-none-eabi -mcpu=cortex-m55 -mfloat-abi=hard -O2 -c -mthumb -save-temps=obj %s
----------------
DavidSpickett wrote:

I presume without this fix, this command would fail because it fails to build the object?

If so a comment here would be good, otherwise they look like mistakes as they are RUNs without CHECKs. I'd also put them first, then a blank line, then the RUN + FileCheck lines, just to make it even clearer.

https://github.com/llvm/llvm-project/pull/71545


More information about the cfe-commits mailing list