public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* use -mfpu=neon for arm/simd/vmmla_1.c
@ 2021-01-05  7:48 Alexandre Oliva
  2021-01-13 17:41 ` Alexandre Oliva
  2021-02-09 15:42 ` use -mfpu=neon for arm/simd/vmmla_1.c Kyrylo Tkachov
  0 siblings, 2 replies; 5+ messages in thread
From: Alexandre Oliva @ 2021-01-05  7:48 UTC (permalink / raw)
  To: gcc-patches


On some of our arm targets, we get various -mfpu flags implicitly or
explicitly passed to the compiler during test runs.  The target
options pushed in arm_neon.h that affect vmmlaq_s32 set isa_bit_neon,
but the caller doesn't have that bit set, so arm_can_inline_p rejects
the attempt to inline it, and the test fails.

An explicit -mfpu=neon would address the compile problem, but cause
the assembler to reject the generated code.

So this patch adds -mfpu=auto to the test, overriding any implicit
flags with the fpu implied by the arch.

Regstrapped on x86_64-linux-gnu, also tested on x-arm-wrs-vxworks7r2.
Ok to install?


for  gcc/testsuite/ChangeLog

	* gcc.target/arm/simd/vmmla_1.c: Pass -mfpu=auto.
---
 gcc/testsuite/gcc.target/arm/simd/vmmla_1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c b/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c
index aeb4a359e3351..d33ebf361d436 100644
--- a/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c
+++ b/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c
@@ -1,6 +1,6 @@
 /* { dg-do assemble } */
 /* { dg-require-effective-target arm_v8_2a_i8mm_ok } */
-/* { dg-options "-save-temps -O2 -march=armv8.2-a+i8mm -mfloat-abi=hard" } */
+/* { dg-options "-save-temps -O2 -march=armv8.2-a+i8mm -mfpu=auto -mfloat-abi=hard" } */
 
 #include "arm_neon.h"
 

-- 
Alexandre Oliva, happy hacker  https://FSFLA.org/blogs/lxo/
   Free Software Activist         GNU Toolchain Engineer
        Vim, Vi, Voltei pro Emacs -- GNUlius Caesar

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: use -mfpu=neon for arm/simd/vmmla_1.c
  2021-01-05  7:48 use -mfpu=neon for arm/simd/vmmla_1.c Alexandre Oliva
@ 2021-01-13 17:41 ` Alexandre Oliva
  2021-02-05 22:15   ` use -mfpu=auto for arm/simd/vmmla_1.c (was: use -mfpu=neon for arm/simd/vmmla_1.c) Alexandre Oliva
  2021-02-09 15:42 ` use -mfpu=neon for arm/simd/vmmla_1.c Kyrylo Tkachov
  1 sibling, 1 reply; 5+ messages in thread
From: Alexandre Oliva @ 2021-01-13 17:41 UTC (permalink / raw)
  To: gcc-patches
  Cc: Nick Clifton, Richard Earnshaw, Ramana Radhakrishnan, Kyrylo Tkachov

On Jan  5, 2021, Alexandre Oliva <oliva@adacore.com> wrote:

> So this patch adds -mfpu=auto to the test, overriding any implicit
> flags with the fpu implied by the arch.

> 	* gcc.target/arm/simd/vmmla_1.c: Pass -mfpu=auto.

Ping?
https://gcc.gnu.org/pipermail/gcc-patches/2021-January/562798.html

(The subject is outdated; it is -mfpu=auto rather than =neon)

-- 
Alexandre Oliva, happy hacker  https://FSFLA.org/blogs/lxo/
   Free Software Activist         GNU Toolchain Engineer
        Vim, Vi, Voltei pro Emacs -- GNUlius Caesar

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: use -mfpu=auto for arm/simd/vmmla_1.c (was: use -mfpu=neon for arm/simd/vmmla_1.c)
  2021-01-13 17:41 ` Alexandre Oliva
@ 2021-02-05 22:15   ` Alexandre Oliva
  0 siblings, 0 replies; 5+ messages in thread
From: Alexandre Oliva @ 2021-02-05 22:15 UTC (permalink / raw)
  To: gcc-patches
  Cc: Nick Clifton, Richard Earnshaw, Ramana Radhakrishnan, Kyrylo Tkachov

On Jan 13, 2021, Alexandre Oliva <oliva@adacore.com> wrote:

> On Jan  5, 2021, Alexandre Oliva <oliva@adacore.com> wrote:
>> So this patch adds -mfpu=auto to the test, overriding any implicit
>> flags with the fpu implied by the arch.

>> * gcc.target/arm/simd/vmmla_1.c: Pass -mfpu=auto.

> Ping?
> https://gcc.gnu.org/pipermail/gcc-patches/2021-January/562798.html

Ping?

-- 
Alexandre Oliva, happy hacker  https://FSFLA.org/blogs/lxo/
   Free Software Activist         GNU Toolchain Engineer
        Vim, Vi, Voltei pro Emacs -- GNUlius Caesar

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: use -mfpu=neon for arm/simd/vmmla_1.c
  2021-01-05  7:48 use -mfpu=neon for arm/simd/vmmla_1.c Alexandre Oliva
  2021-01-13 17:41 ` Alexandre Oliva
@ 2021-02-09 15:42 ` Kyrylo Tkachov
  2021-02-11  5:19   ` Alexandre Oliva
  1 sibling, 1 reply; 5+ messages in thread
From: Kyrylo Tkachov @ 2021-02-09 15:42 UTC (permalink / raw)
  To: Alexandre Oliva, gcc-patches



> -----Original Message-----
> From: Gcc-patches <gcc-patches-bounces@gcc.gnu.org> On Behalf Of
> Alexandre Oliva
> Sent: 05 January 2021 07:49
> To: gcc-patches@gcc.gnu.org
> Subject: use -mfpu=neon for arm/simd/vmmla_1.c
> 
> 
> On some of our arm targets, we get various -mfpu flags implicitly or
> explicitly passed to the compiler during test runs.  The target
> options pushed in arm_neon.h that affect vmmlaq_s32 set isa_bit_neon,
> but the caller doesn't have that bit set, so arm_can_inline_p rejects
> the attempt to inline it, and the test fails.
> 
> An explicit -mfpu=neon would address the compile problem, but cause
> the assembler to reject the generated code.
> 
> So this patch adds -mfpu=auto to the test, overriding any implicit
> flags with the fpu implied by the arch.
> 
> Regstrapped on x86_64-linux-gnu, also tested on x-arm-wrs-vxworks7r2.
> Ok to install?

Ok. Aren't there more tests that have this problem?
Thanks,
Kyrill

> 
> 
> for  gcc/testsuite/ChangeLog
> 
> 	* gcc.target/arm/simd/vmmla_1.c: Pass -mfpu=auto.
> ---
>  gcc/testsuite/gcc.target/arm/simd/vmmla_1.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c
> b/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c
> index aeb4a359e3351..d33ebf361d436 100644
> --- a/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c
> +++ b/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c
> @@ -1,6 +1,6 @@
>  /* { dg-do assemble } */
>  /* { dg-require-effective-target arm_v8_2a_i8mm_ok } */
> -/* { dg-options "-save-temps -O2 -march=armv8.2-a+i8mm -mfloat-
> abi=hard" } */
> +/* { dg-options "-save-temps -O2 -march=armv8.2-a+i8mm -mfpu=auto -
> mfloat-abi=hard" } */
> 
>  #include "arm_neon.h"
> 
> 
> --
> Alexandre Oliva, happy hacker  https://FSFLA.org/blogs/lxo/
>    Free Software Activist         GNU Toolchain Engineer
>         Vim, Vi, Voltei pro Emacs -- GNUlius Caesar

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: use -mfpu=neon for arm/simd/vmmla_1.c
  2021-02-09 15:42 ` use -mfpu=neon for arm/simd/vmmla_1.c Kyrylo Tkachov
@ 2021-02-11  5:19   ` Alexandre Oliva
  0 siblings, 0 replies; 5+ messages in thread
From: Alexandre Oliva @ 2021-02-11  5:19 UTC (permalink / raw)
  To: Kyrylo Tkachov; +Cc: gcc-patches

On Feb  9, 2021, Kyrylo Tkachov <Kyrylo.Tkachov@arm.com> wrote:

> Ok. Aren't there more tests that have this problem?

Thanks.  This was the only test that exhibited this problem.

-- 
Alexandre Oliva, happy hacker  https://FSFLA.org/blogs/lxo/
   Free Software Activist         GNU Toolchain Engineer
        Vim, Vi, Voltei pro Emacs -- GNUlius Caesar

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-11  5:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-05  7:48 use -mfpu=neon for arm/simd/vmmla_1.c Alexandre Oliva
2021-01-13 17:41 ` Alexandre Oliva
2021-02-05 22:15   ` use -mfpu=auto for arm/simd/vmmla_1.c (was: use -mfpu=neon for arm/simd/vmmla_1.c) Alexandre Oliva
2021-02-09 15:42 ` use -mfpu=neon for arm/simd/vmmla_1.c Kyrylo Tkachov
2021-02-11  5:19   ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).