public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] rs6000: Fix test gc.target/powerpc/rs600-fpint.c test options
@ 2023-04-13 19:42 Carl Love
  2023-05-15  6:46 ` Kewen.Lin
  0 siblings, 1 reply; 2+ messages in thread
From: Carl Love @ 2023-04-13 19:42 UTC (permalink / raw)
  To: gcc-patches, Segher Boessenkool; +Cc: cel, Peter Bergner


GCC maintainers:

The following patch fixes the dg-options for test powerpc/rs600-
fpint.c.  The test now works correctly on Power 10.  The patch has been
tested on Power10 with no regressions.

Please let me know if the patch is acceptable for mainline.  Thanks.

            Carl 

---------------------------------
rs6000: Fix test gc.target/powerpc/rs600-fpint.c test options

The test compile option rs6000-*-* is outdated and no longer supported.
The powerpc*-*-* is the defualt, so it doesn't need to be specified.
The dg-options needs to specify an older processor to get the desired
behavior on recent processors.

This patch updates the test specifications so the test will run properly on
Power10LE.  Tested on Power10 LE system with no regression test failures.

gcc/testsuite/:
	* gcc.target/powerpc/rs6000-fpint.c: Update dg-options, drop dg-do
	compile specifier.
---
 gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c b/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c
index 410f780de8b..fdb0a371929 100644
--- a/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c
+++ b/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c
@@ -1,5 +1,4 @@
-/* { dg-do compile { target powerpc*-*-* rs6000-*-* } } */
-/* { dg-options "-mno-powerpc-gfxopt" } */
+/* { dg-options "-mno-powerpc-gfxopt -mdejagnu-cpu=power6" } */
 /* { dg-final { scan-assembler-not "stfiwx" } } */
 
 /* A basic test of the old-style (not stfiwx) fp -> int conversion.  */
-- 
2.37.2



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

* Re: [PATCH] rs6000: Fix test gc.target/powerpc/rs600-fpint.c test options
  2023-04-13 19:42 [PATCH] rs6000: Fix test gc.target/powerpc/rs600-fpint.c test options Carl Love
@ 2023-05-15  6:46 ` Kewen.Lin
  0 siblings, 0 replies; 2+ messages in thread
From: Kewen.Lin @ 2023-05-15  6:46 UTC (permalink / raw)
  To: Carl Love; +Cc: Peter Bergner, gcc-patches, Segher Boessenkool

Hi Carl,

on 2023/4/14 03:42, Carl Love via Gcc-patches wrote:
> 
> GCC maintainers:
> 
> The following patch fixes the dg-options for test powerpc/rs600-
> fpint.c.  The test now works correctly on Power 10.  The patch has been
> tested on Power10 with no regressions.
> 
> Please let me know if the patch is acceptable for mainline.  Thanks.

OK for trunk with one more comment added in commit log ...

> 
>             Carl 
> 
> ---------------------------------
> rs6000: Fix test gc.target/powerpc/rs600-fpint.c test options
> 
> The test compile option rs6000-*-* is outdated and no longer supported.
> The powerpc*-*-* is the defualt, so it doesn't need to be specified.
> The dg-options needs to specify an older processor to get the desired
> behavior on recent processors.

... such as: ", since gfxopt is only off for very old CPUs, we don't guard
stfiwx under it for recent processors and don't want to."  Thanks for fixing!

BR,
Kewen

> 
> This patch updates the test specifications so the test will run properly on
> Power10LE.  Tested on Power10 LE system with no regression test failures.
> 
> gcc/testsuite/:
> 	* gcc.target/powerpc/rs6000-fpint.c: Update dg-options, drop dg-do
> 	compile specifier.
> ---
>  gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c b/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c
> index 410f780de8b..fdb0a371929 100644
> --- a/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c
> +++ b/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c
> @@ -1,5 +1,4 @@
> -/* { dg-do compile { target powerpc*-*-* rs6000-*-* } } */
> -/* { dg-options "-mno-powerpc-gfxopt" } */
> +/* { dg-options "-mno-powerpc-gfxopt -mdejagnu-cpu=power6" } */
>  /* { dg-final { scan-assembler-not "stfiwx" } } */
>  
>  /* A basic test of the old-style (not stfiwx) fp -> int conversion.  */


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

end of thread, other threads:[~2023-05-15  6:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-13 19:42 [PATCH] rs6000: Fix test gc.target/powerpc/rs600-fpint.c test options Carl Love
2023-05-15  6:46 ` Kewen.Lin

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