> -----Original Message----- > From: Gcc-patches <gcc-patches-boun...@gcc.gnu.org> On Behalf Of > Christophe Lyon via Gcc-patches > Sent: 23 March 2021 14:33 > To: gcc-patches@gcc.gnu.org > Subject: [PATCH 3/8] testsuite/arm: Remove useless -mfloat-abi option > > These tests pass with their current dg-add-options, no need to force > -mfloat=abi. > > I've noticed no impact on armv8_1m-shift-imm-1.c and > armv8_1m-shift-reg-1.c, bf16_reinterpret.c now passes on > arm-linux-gnueabi and bf16_dup.c now passes on arm-linux-gnueabihf. > > This allows pr51534.c to pass when forcing -mfloat-abi=soft in > runtestflags, otherwise we get an error '-mfloat-abi=soft and > -mfloat-abi=hard may not be used together' because we try to compile > with both flags. Ok. Thanks, Kyrill > > 2021-03-19 Christophe Lyon <christophe.l...@linaro.org> > > gcc/testsuite/ > * gcc.target/arm/armv8_1m-shift-imm-1.c: Remove -mfloat=abi > option. > * gcc.target/arm/armv8_1m-shift-reg-1.c: Likewise. > * gcc.target/arm/bf16_dup.c: Likewise. > * gcc.target/arm/bf16_reinterpret.c: Likewise. > * gcc.target/arm/pr51534.c: Remove -mfloat=abi option. > --- > gcc/testsuite/gcc.target/arm/armv8_1m-shift-imm-1.c | 2 +- > gcc/testsuite/gcc.target/arm/armv8_1m-shift-reg-1.c | 2 +- > gcc/testsuite/gcc.target/arm/bf16_dup.c | 2 +- > gcc/testsuite/gcc.target/arm/bf16_reinterpret.c | 2 +- > gcc/testsuite/gcc.target/arm/pr51534.c | 2 +- > 5 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/gcc/testsuite/gcc.target/arm/armv8_1m-shift-imm-1.c > b/gcc/testsuite/gcc.target/arm/armv8_1m-shift-imm-1.c > index 883fbb09..84f13e2 100644 > --- a/gcc/testsuite/gcc.target/arm/armv8_1m-shift-imm-1.c > +++ b/gcc/testsuite/gcc.target/arm/armv8_1m-shift-imm-1.c > @@ -1,6 +1,6 @@ > /* { dg-do compile } */ > -/* { dg-options "-O2 -mfloat-abi=softfp -mlittle-endian" } */ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > +/* { dg-options "-O2 -mlittle-endian" } */ > /* { dg-add-options arm_v8_1m_mve } */ > > long long longval1; > diff --git a/gcc/testsuite/gcc.target/arm/armv8_1m-shift-reg-1.c > b/gcc/testsuite/gcc.target/arm/armv8_1m-shift-reg-1.c > index e125ff8..8668b6b 100644 > --- a/gcc/testsuite/gcc.target/arm/armv8_1m-shift-reg-1.c > +++ b/gcc/testsuite/gcc.target/arm/armv8_1m-shift-reg-1.c > @@ -1,6 +1,6 @@ > /* { dg-do compile } */ > -/* { dg-options "-O2 -mfloat-abi=softfp -mlittle-endian" } */ > /* { dg-require-effective-target arm_v8_1m_mve_ok } */ > +/* { dg-options "-O2 -mlittle-endian" } */ > /* { dg-add-options arm_v8_1m_mve } */ > > long long longval2; > diff --git a/gcc/testsuite/gcc.target/arm/bf16_dup.c > b/gcc/testsuite/gcc.target/arm/bf16_dup.c > index 94be99a..b62bce1 100644 > --- a/gcc/testsuite/gcc.target/arm/bf16_dup.c > +++ b/gcc/testsuite/gcc.target/arm/bf16_dup.c > @@ -1,7 +1,7 @@ > /* { dg-do assemble { target { arm*-*-* } } } */ > /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */ > /* { dg-add-options arm_v8_2a_bf16_neon } */ > -/* { dg-additional-options "-save-temps -march=armv8.2-a+bf16+fp16 - > mfloat-abi=softfp" } */ > +/* { dg-additional-options "-save-temps -march=armv8.2-a+bf16+fp16" } */ > > #include "arm_neon.h" > > diff --git a/gcc/testsuite/gcc.target/arm/bf16_reinterpret.c > b/gcc/testsuite/gcc.target/arm/bf16_reinterpret.c > index e7d30a9..9e36fc5 100644 > --- a/gcc/testsuite/gcc.target/arm/bf16_reinterpret.c > +++ b/gcc/testsuite/gcc.target/arm/bf16_reinterpret.c > @@ -1,7 +1,7 @@ > /* { dg-do assemble { target { arm*-*-* } } } */ > /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */ > /* { dg-add-options arm_v8_2a_bf16_neon } */ > -/* { dg-additional-options "-save-temps -march=armv8.2-a+fp16+bf16 - > mfloat-abi=hard -mfpu=crypto-neon-fp-armv8" } */ > +/* { dg-additional-options "-save-temps -march=armv8.2-a+fp16+bf16 - > mfpu=crypto-neon-fp-armv8" } */ > > #include <arm_neon.h> > > diff --git a/gcc/testsuite/gcc.target/arm/pr51534.c > b/gcc/testsuite/gcc.target/arm/pr51534.c > index f675a44..3711b45 100644 > --- a/gcc/testsuite/gcc.target/arm/pr51534.c > +++ b/gcc/testsuite/gcc.target/arm/pr51534.c > @@ -3,7 +3,7 @@ > > /* { dg-do assemble } */ > /* { dg-require-effective-target arm_neon_ok } */ > -/* { dg-options "-save-temps -mfloat-abi=hard -O3" } */ > +/* { dg-options "-save-temps -O3" } */ > /* { dg-add-options arm_neon } */ > > #include <arm_neon.h> > -- > 2.7.4
RE: [PATCH 3/8] testsuite/arm: Remove useless -mfloat-abi option
Kyrylo Tkachov via Gcc-patches Tue, 23 Mar 2021 07:53:18 -0700
- [PATCH 0/8] testsuite/arm: Various cleanup... Christophe Lyon via Gcc-patches
- [PATCH 1/8] testsuite/arm: Add arm_v8... Christophe Lyon via Gcc-patches
- RE: [PATCH 1/8] testsuite/arm: Ad... Kyrylo Tkachov via Gcc-patches
- [PATCH 2/8] testsuite/arm: Add arm_v8... Christophe Lyon via Gcc-patches
- RE: [PATCH 2/8] testsuite/arm: Ad... Kyrylo Tkachov via Gcc-patches
- [PATCH 3/8] testsuite/arm: Remove use... Christophe Lyon via Gcc-patches
- RE: [PATCH 3/8] testsuite/arm: Re... Kyrylo Tkachov via Gcc-patches
- [PATCH 4/8] testsuite/arm: Add arm_so... Christophe Lyon via Gcc-patches
- RE: [PATCH 4/8] testsuite/arm: Ad... Kyrylo Tkachov via Gcc-patches
- [PATCH 5/8] testsuite/arm: Add arm_ha... Christophe Lyon via Gcc-patches
- RE: [PATCH 5/8] testsuite/arm: Ad... Kyrylo Tkachov via Gcc-patches
- [PATCH 6/8] testsuite/arm: Fix -mfloa... Christophe Lyon via Gcc-patches
- RE: [PATCH 6/8] testsuite/arm: Fi... Kyrylo Tkachov via Gcc-patches
- [PATCH 7/8] testsuite/arm: Fix -mfloa... Christophe Lyon via Gcc-patches
- RE: [PATCH 7/8] testsuite/arm: Fi... Kyrylo Tkachov via Gcc-patches
- [PATCH 8/8] testsuite/arm: Add arm_ds... Christophe Lyon via Gcc-patches
- RE: [PATCH 8/8] testsuite/arm: Ad... Kyrylo Tkachov via Gcc-patches