]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: arm: Use effective-target for pr98636.c test
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Fri, 1 Nov 2024 10:11:26 +0000 (11:11 +0100)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Tue, 5 Nov 2024 18:10:30 +0000 (19:10 +0100)
The test case assumes that -mfp16-format=alternative is accepted for the
target, but not all targets support this flag. One such target is
Cortex-M85 that does support FP16, but not the alternative format.

gcc/testsuite/ChangeLog:

* gcc.target/arm/pr98636.c: Use effective-target
arm_fp16_alternative.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
gcc/testsuite/gcc.target/arm/pr98636.c

index 559f9a26c1ec3eb949ac3ab64e21e6269e2462a1..28f05322156ac08b620e00e86d980e6a95e0c6c9 100644 (file)
@@ -1,6 +1,8 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target arm_softfp_ok } */
-/* { dg-options "-mfp16-format=alternative -mfloat-abi=softfp" } */
+/* { dg-require-effective-target arm_fp16_alternative_ok } */
+/* { dg-options "-mfloat-abi=softfp" } */
+/* { dg-add-options arm_fp16_alternative } */
 
 #pragma GCC push_options
 # pragma GCC target ("arch=armv8.2-a+fp16") /* { dg-error "selected fp16 options are incompatible" } */