diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2023-06-28 09:09:04 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@arm.com> | 2023-06-28 15:22:36 +0200 |
commit | 95cd9913db617051d8201b7cabc79531eed6bd32 (patch) | |
tree | 9dc22dafee869800f0a29b674974eb50d9e28e61 | |
parent | 237e83e2158a3d9b875f8775805d04d97e8b36c1 (diff) | |
download | gcc-95cd9913db617051d8201b7cabc79531eed6bd32.zip gcc-95cd9913db617051d8201b7cabc79531eed6bd32.tar.gz gcc-95cd9913db617051d8201b7cabc79531eed6bd32.tar.bz2 |
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 <christophe.lyon@linaro.org>
gcc/testsuite/
* gcc.target/arm/mve/general-c/nomve_fp_1.c: Require arm_fp.
-rw-r--r-- | gcc/testsuite/gcc.target/arm/mve/general-c/nomve_fp_1.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 21c2af1..c9d279e 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 <arm_mve.h> |