public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] testsuite: Add -mtune=generic to dg-options for two testcases.
@ 2022-06-10  8:45 Cui,Lili
  2022-06-10  9:17 ` Hongtao Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Cui,Lili @ 2022-06-10  8:45 UTC (permalink / raw)
  To: gcc-patches; +Cc: hongtao.liu, ubizjak

This patch is to change dg-options for two testcases.

Use -mtune=generic to limit these two testcases. Because configuring them with
-mtune=cascadelake or znver3 will vectorize them.

regtested on x86_64-linux-gnu{-m32,}. Ok for trunk?

Thanks,
Lili.

Use -mtune=generic to limit these two test cases. Because configuring them with
-mtune=cascadelake or znver3 will vectorize them.

gcc/testsuite/ChangeLog:

	* gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c: Add
	-mtune=generic to dg-options.
	* gcc.target/i386/pr84101.c: Likewise.
---
 .../gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c         | 2 +-
 gcc/testsuite/gcc.target/i386/pr84101.c                         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c
index 7637cdb4a97..d060135d877 100644
--- a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c
+++ b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-additional-options "-msse -fdump-tree-slp2-details" } */
+/* { dg-additional-options "-msse -mtune=generic -fdump-tree-slp2-details" } */
 
 struct S { unsigned long a, b; } s;
 
diff --git a/gcc/testsuite/gcc.target/i386/pr84101.c b/gcc/testsuite/gcc.target/i386/pr84101.c
index cf144894f9b..2c5a97308ca 100644
--- a/gcc/testsuite/gcc.target/i386/pr84101.c
+++ b/gcc/testsuite/gcc.target/i386/pr84101.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -fdump-tree-slp2-details" } */
+/* { dg-options "-O3 -mtune=generic -fdump-tree-slp2-details" } */
 
 typedef struct uint64_pair uint64_pair_t ;
 struct uint64_pair
-- 
2.17.1


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

* Re: [PATCH] testsuite: Add -mtune=generic to dg-options for two testcases.
  2022-06-10  8:45 [PATCH] testsuite: Add -mtune=generic to dg-options for two testcases Cui,Lili
@ 2022-06-10  9:17 ` Hongtao Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Hongtao Liu @ 2022-06-10  9:17 UTC (permalink / raw)
  To: Cui,Lili; +Cc: GCC Patches, Liu, Hongtao

On Fri, Jun 10, 2022 at 4:45 PM Cui,Lili via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> This patch is to change dg-options for two testcases.
>
> Use -mtune=generic to limit these two testcases. Because configuring them with
> -mtune=cascadelake or znver3 will vectorize them.
>
> regtested on x86_64-linux-gnu{-m32,}. Ok for trunk?
Ok.
>
> Thanks,
> Lili.
>
> Use -mtune=generic to limit these two test cases. Because configuring them with
> -mtune=cascadelake or znver3 will vectorize them.
>
> gcc/testsuite/ChangeLog:
>
>         * gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c: Add
>         -mtune=generic to dg-options.
>         * gcc.target/i386/pr84101.c: Likewise.
> ---
>  .../gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c         | 2 +-
>  gcc/testsuite/gcc.target/i386/pr84101.c                         | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c
> index 7637cdb4a97..d060135d877 100644
> --- a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c
> +++ b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c
> @@ -1,5 +1,5 @@
>  /* { dg-do compile } */
> -/* { dg-additional-options "-msse -fdump-tree-slp2-details" } */
> +/* { dg-additional-options "-msse -mtune=generic -fdump-tree-slp2-details" } */
>
>  struct S { unsigned long a, b; } s;
>
> diff --git a/gcc/testsuite/gcc.target/i386/pr84101.c b/gcc/testsuite/gcc.target/i386/pr84101.c
> index cf144894f9b..2c5a97308ca 100644
> --- a/gcc/testsuite/gcc.target/i386/pr84101.c
> +++ b/gcc/testsuite/gcc.target/i386/pr84101.c
> @@ -1,5 +1,5 @@
>  /* { dg-do compile } */
> -/* { dg-options "-O3 -fdump-tree-slp2-details" } */
> +/* { dg-options "-O3 -mtune=generic -fdump-tree-slp2-details" } */
>
>  typedef struct uint64_pair uint64_pair_t ;
>  struct uint64_pair
> --
> 2.17.1
>


-- 
BR,
Hongtao

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

end of thread, other threads:[~2022-06-10  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10  8:45 [PATCH] testsuite: Add -mtune=generic to dg-options for two testcases Cui,Lili
2022-06-10  9:17 ` Hongtao Liu

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