From: Christophe Lyon Date: Wed, 28 Jun 2023 09:09:04 +0000 (+0000) Subject: Make nomve_fp_1.c require arm_fp X-Git-Tag: basepoints/gcc-15~7977 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95cd9913db617051d8201b7cabc79531eed6bd32;p=thirdparty%2Fgcc.git Make nomve_fp_1.c require arm_fp If GCC is configured with the default (soft) -mfloat-abi, and we don't override the target_board test flags appropriately, gcc.target/arm/mve/general-c/nomve_fp_1.c fails for lack of -mfloat-abi=softfp or -mfloat-abi=hard, because it doesn't use dg-add-options arm_v8_1m_mve (on purpose, see comment in the test). Require and use the options needed for arm_fp to fix this problem. 2023-06-28 Christophe Lyon gcc/testsuite/ * gcc.target/arm/mve/general-c/nomve_fp_1.c: Require arm_fp. --- diff --git a/gcc/testsuite/gcc.target/arm/mve/general-c/nomve_fp_1.c b/gcc/testsuite/gcc.target/arm/mve/general-c/nomve_fp_1.c index 21c2af16a619..c9d279ead685 100644 --- a/gcc/testsuite/gcc.target/arm/mve/general-c/nomve_fp_1.c +++ b/gcc/testsuite/gcc.target/arm/mve/general-c/nomve_fp_1.c @@ -1,9 +1,11 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_v8_1m_mve_ok } */ +/* { dg-require-effective-target arm_fp_ok } */ /* Do not use dg-add-options arm_v8_1m_mve, because this might expand to "", which could imply mve+fp depending on the user settings. We want to make sure the '+fp' extension is not enabled. */ /* { dg-options "-mfpu=auto -march=armv8.1-m.main+mve" } */ +/* { dg-add-options arm_fp } */ #include