From 4602f628f723688a10c14ab20bd013ba7a825dab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Torbj=C3=B6rn=20SVENSSON?= Date: Fri, 1 Nov 2024 11:11:26 +0100 Subject: [PATCH] testsuite: arm: Use effective-target for pr98636.c test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- gcc/testsuite/gcc.target/arm/pr98636.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/pr98636.c b/gcc/testsuite/gcc.target/arm/pr98636.c index 559f9a26c1ec..28f05322156a 100644 --- a/gcc/testsuite/gcc.target/arm/pr98636.c +++ b/gcc/testsuite/gcc.target/arm/pr98636.c @@ -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" } */ -- 2.47.2