]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: testsuite: avoid problems with -mfpu=auto in attr-crypto.c
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 3 Nov 2023 15:27:12 +0000 (15:27 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 13 Nov 2023 14:15:55 +0000 (14:15 +0000)
This test overrides the architecture, but fails to describe which
floating-point features are needed.  This causes problems if the ABI
requires FP for parameter passing and -mfpu=auto is selected, so ensure
that one is specified.

gcc/testsuite:

* gcc.target/arm/attr-crypto.c: Add +simd to the -march
specification.

gcc/testsuite/gcc.target/arm/attr-crypto.c

index 05e458f36b648880e8c777b8f11cf08a4ab37419..3959d0b67e72c4a34f867b5880e50221e2fbf897 100644 (file)
@@ -3,7 +3,7 @@
    pragma.  */
 /* { dg-skip-if "-mpure-code supports M-profile only" { *-*-* } { "-mpure-code" } } */
 /* { dg-require-effective-target arm_fp_ok } */
-/* { dg-options "-O2 -march=armv8-a" } */
+/* { dg-options "-O2 -march=armv8-a+simd" } */
 /* { dg-add-options arm_fp } */
 
 /* Reset fpu to a value compatible with the next pragmas.  */