]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: testsuite: avoid problems with -mfpu=auto in pacbti-m-predef-11.c
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 3 Nov 2023 15:16:43 +0000 (15:16 +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/acle/pacbti-m-predef-11.c: Add +fp to the -march
specification.

gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c

index 9f2711097ac1dc48bdf9f6c4d3d5a5ef166e9b67..6a5ae92c567f3d1c95ae6ef1dca44f0dff807846 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" "-mcpu=*" "-mfloat-abi=*" } } */
-/* { dg-options "-march=armv8.1-m.main+pacbti" } */
+/* { dg-options "-march=armv8.1-m.main+fp+pacbti" } */
 
 #if (__ARM_FEATURE_BTI != 1)
 #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined to 1."