public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] testsuite: require avx_runtime for vect-simd-clone-17f
@ 2023-12-07 16:28 Marc Poulhiès
  2023-12-07 16:41 ` Jakub Jelinek
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Poulhiès @ 2023-12-07 16:28 UTC (permalink / raw)
  To: gcc-patches; +Cc: Marc Poulhiès

The test fails parsing the 'vect' dump when not using -mavx. Make the
dependency explicit.

gcc/testsuite/ChangeLog:

	* gcc.dg/vect/vect-simd-clone-17f.c: Add dep on avx_runtime.
---
Tested on x86_64-linux and x86_64-elf.

Ok for master?

 gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c
index 177521dc445..eb2b149981f 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c
@@ -1,6 +1,7 @@
 /* { dg-require-effective-target vect_simd_clones } */
+/* { dg-require-effective-target avx_runtime } */
 /* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0" } */
-/* { dg-additional-options "-mavx" { target avx_runtime } } */
+/* { dg-additional-options "-mavx" } */
 /* { dg-additional-options "-mno-avx512f" { target { { i?86*-*-* x86_64-*-* } && { ! lp64 } } } } */
 
 #define TYPE __INT64_TYPE__
-- 
2.43.0


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

* Re: [PATCH] testsuite: require avx_runtime for vect-simd-clone-17f
  2023-12-07 16:28 [PATCH] testsuite: require avx_runtime for vect-simd-clone-17f Marc Poulhiès
@ 2023-12-07 16:41 ` Jakub Jelinek
  2023-12-08  8:54   ` Marc Poulhiès
  0 siblings, 1 reply; 4+ messages in thread
From: Jakub Jelinek @ 2023-12-07 16:41 UTC (permalink / raw)
  To: Marc Poulhiès; +Cc: gcc-patches

On Thu, Dec 07, 2023 at 05:28:09PM +0100, Marc Poulhiès wrote:
> The test fails parsing the 'vect' dump when not using -mavx. Make the
> dependency explicit.
> 
> gcc/testsuite/ChangeLog:
> 
> 	* gcc.dg/vect/vect-simd-clone-17f.c: Add dep on avx_runtime.
> ---
> Tested on x86_64-linux and x86_64-elf.
> 
> Ok for master?
> 
>  gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c
> index 177521dc445..eb2b149981f 100644
> --- a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c
> +++ b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c
> @@ -1,6 +1,7 @@
>  /* { dg-require-effective-target vect_simd_clones } */
> +/* { dg-require-effective-target avx_runtime } */
>  /* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0" } */
> -/* { dg-additional-options "-mavx" { target avx_runtime } } */
> +/* { dg-additional-options "-mavx" } */
>  /* { dg-additional-options "-mno-avx512f" { target { { i?86*-*-* x86_64-*-* } && { ! lp64 } } } } */
>  
>  #define TYPE __INT64_TYPE__

This looks wrong, then it won't be tested at all on non-x86 targets.

	Jakub


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

* Re: [PATCH] testsuite: require avx_runtime for vect-simd-clone-17f
  2023-12-07 16:41 ` Jakub Jelinek
@ 2023-12-08  8:54   ` Marc Poulhiès
  2023-12-08  9:17     ` Marc Poulhiès
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Poulhiès @ 2023-12-08  8:54 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: gcc-patches


Jakub Jelinek <jakub@redhat.com> writes:

> This looks wrong, then it won't be tested at all on non-x86 targets.

Right, I'll look for a better fix.

Should I revert r14-6272 that has the same issue of disabling the
modified tests on non-x86?

Marc

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

* Re: [PATCH] testsuite: require avx_runtime for vect-simd-clone-17f
  2023-12-08  8:54   ` Marc Poulhiès
@ 2023-12-08  9:17     ` Marc Poulhiès
  0 siblings, 0 replies; 4+ messages in thread
From: Marc Poulhiès @ 2023-12-08  9:17 UTC (permalink / raw)
  Cc: Jakub Jelinek, gcc-patches


Marc Poulhiès <poulhies@adacore.com> writes:

> Should I revert r14-6272 that has the same issue of disabling the
> modified tests on non-x86?

I've reverted the r14-6272.

Marc

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

end of thread, other threads:[~2023-12-08  9:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-07 16:28 [PATCH] testsuite: require avx_runtime for vect-simd-clone-17f Marc Poulhiès
2023-12-07 16:41 ` Jakub Jelinek
2023-12-08  8:54   ` Marc Poulhiès
2023-12-08  9:17     ` Marc Poulhiès

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).