[clang] [llvm] [ARM] Ensure FPU Selection can select mode correctly (PR #124935)

Jack Styles via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 07:55:15 PST 2025


================
@@ -1013,3 +1013,19 @@
 // CHECK-MVE1_2: #define __ARM_FEATURE_MVE 1
 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+mve.fp -x c -E -dM %s -o - | FileCheck -check-prefix=CHECK-MVE3 %s
 // CHECK-MVE3: #define __ARM_FEATURE_MVE 3
+
+// Cortex-R52 and Cortex-R52Plus correctly enable the `fpv5-sp-d16` FPU when compiling for the SP only version of the CPU.
+// RUN: %clang -target arm-none-eabi -mcpu=cortex-r52+nosimd+nofp.dp -mfloat-abi=hard -x c -E -dM -o - %s | FileCheck -check-prefix=CHECK-R52 %s
----------------
Stylie777 wrote:

I have updated the tests and added lines into each one to ensure that SIMD is disabled.

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


More information about the llvm-commits mailing list