diff mbox series

testsuite: Fix up pr116725.c test [PR116725]

Message ID Zysv4HboBl7HahrN@tucnak
State New
Headers show
Series testsuite: Fix up pr116725.c test [PR116725] | expand

Commit Message

Jakub Jelinek Nov. 6, 2024, 8:59 a.m. UTC
On Fri, Oct 18, 2024 at 02:05:59PM -0400, Antoni Boucher wrote:
>             PR target/116725
>             * gcc.target/i386/pr116725.c: Add test using those AVX builtins.

This test FAILs for me, as I don't have the latest gas around and the test
is dg-do assemble, so doesn't need just fixed compiler, but also assembler
which supports those instructions.

The following patch adds effective target directives to ensure assembler
supports those too.

Tested on x86_64-linux, ok for trunk?

2024-11-06  Jakub Jelinek  <jakub@redhat.com>

	PR target/116725
	* gcc.target/i386/pr116725.c: Add dg-require-effective-target
	avx512{dq,fp16,vl}.

	Jakub

Comments

Hongtao Liu Nov. 7, 2024, 12:55 a.m. UTC | #1
On Wed, Nov 6, 2024 at 4:59 PM Jakub Jelinek <jakub@redhat.com> wrote:
>
> On Fri, Oct 18, 2024 at 02:05:59PM -0400, Antoni Boucher wrote:
> >             PR target/116725
> >             * gcc.target/i386/pr116725.c: Add test using those AVX builtins.
>
> This test FAILs for me, as I don't have the latest gas around and the test
> is dg-do assemble, so doesn't need just fixed compiler, but also assembler
> which supports those instructions.
>
> The following patch adds effective target directives to ensure assembler
> supports those too.
>
> Tested on x86_64-linux, ok for trunk?
Ok.
>
> 2024-11-06  Jakub Jelinek  <jakub@redhat.com>
>
>         PR target/116725
>         * gcc.target/i386/pr116725.c: Add dg-require-effective-target
>         avx512{dq,fp16,vl}.
>
> --- gcc/testsuite/gcc.target/i386/pr116725.c.jj 2024-11-05 22:07:12.588795051 +0100
> +++ gcc/testsuite/gcc.target/i386/pr116725.c    2024-11-06 09:54:41.545064629 +0100
> @@ -2,6 +2,9 @@
>  /* { dg-do assemble } */
>  /* { dg-options "-masm=intel -mavx512dq -mavx512fp16 -mavx512vl" } */
>  /* { dg-require-effective-target masm_intel } */
> +/* { dg-require-effective-target avx512dq } */
> +/* { dg-require-effective-target avx512fp16 } */
> +/* { dg-require-effective-target avx512vl } */
>
>  #include <stdio.h>
>
>         Jakub
>
diff mbox series

Patch

--- gcc/testsuite/gcc.target/i386/pr116725.c.jj	2024-11-05 22:07:12.588795051 +0100
+++ gcc/testsuite/gcc.target/i386/pr116725.c	2024-11-06 09:54:41.545064629 +0100
@@ -2,6 +2,9 @@ 
 /* { dg-do assemble } */
 /* { dg-options "-masm=intel -mavx512dq -mavx512fp16 -mavx512vl" } */
 /* { dg-require-effective-target masm_intel } */
+/* { dg-require-effective-target avx512dq } */
+/* { dg-require-effective-target avx512fp16 } */
+/* { dg-require-effective-target avx512vl } */
 
 #include <stdio.h>