public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH-2, rs6000] Add ppc_cpu_supports_hw into proc is-effective-target-keyword [PR108728]
@ 2023-04-18  3:13 HAO CHEN GUI
  2023-04-19  2:42 ` Kewen.Lin
  0 siblings, 1 reply; 2+ messages in thread
From: HAO CHEN GUI @ 2023-04-18  3:13 UTC (permalink / raw)
  To: gcc-patches; +Cc: Segher Boessenkool, David, Peter Bergner, Peter Bergner

Hi,
  This patch adds ppc_cpu_supports_hw into explicit name checking in
proc is-effective-target-keyword. So ppc_cpu_supports_hw can be used
as a target selector in test directives.

  The patch passed regression test on Power Linux platforms.

Thanks
Gui Haochen

ChangeLog
rs6000: Add ppc_cpu_supports_hw into proc is-effective-target-keyword.

gcc/testsuite/
	PR target/108728
	* lib/target-supports.exp (is-effective-target-keyword): Add
	ppc_cpu_supports_hw.


patch.diff
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 1d6cc6f8d88..e65b447663f 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9170,6 +9170,7 @@ proc is-effective-target-keyword { arg } {
 	  "named_sections" { return 1 }
 	  "gc_sections"    { return 1 }
 	  "cxa_atexit"     { return 1 }
+	  "ppc_cpu_supports_hw" { return 1 }
 	  default          { return 0 }
 	}
     }

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

* Re: [PATCH-2, rs6000] Add ppc_cpu_supports_hw into proc is-effective-target-keyword [PR108728]
  2023-04-18  3:13 [PATCH-2, rs6000] Add ppc_cpu_supports_hw into proc is-effective-target-keyword [PR108728] HAO CHEN GUI
@ 2023-04-19  2:42 ` Kewen.Lin
  0 siblings, 0 replies; 2+ messages in thread
From: Kewen.Lin @ 2023-04-19  2:42 UTC (permalink / raw)
  To: HAO CHEN GUI; +Cc: Segher Boessenkool, David, Peter Bergner, gcc-patches

Hi Haochen,

on 2023/4/18 11:13, HAO CHEN GUI via Gcc-patches wrote:
> Hi,
>   This patch adds ppc_cpu_supports_hw into explicit name checking in
> proc is-effective-target-keyword. So ppc_cpu_supports_hw can be used
> as a target selector in test directives.

I think this is the prerequisite of the one "xfail float128 comparison
test case that fails on powerpc64", so this should be PATCH 1/2 and that
one would be 2/2.  For the subject, maybe something like "testsuite: Make
ppc_cpu_supports_hw as effective target keyword [PR108728]" can be clearer.

OK for trunk, thanks.

BR,
Kewen

> 
>   The patch passed regression test on Power Linux platforms.
> 
> Thanks
> Gui Haochen
> 
> ChangeLog
> rs6000: Add ppc_cpu_supports_hw into proc is-effective-target-keyword.
> 
> gcc/testsuite/
> 	PR target/108728
> 	* lib/target-supports.exp (is-effective-target-keyword): Add
> 	ppc_cpu_supports_hw.
> 
> 
> patch.diff
> diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
> index 1d6cc6f8d88..e65b447663f 100644
> --- a/gcc/testsuite/lib/target-supports.exp
> +++ b/gcc/testsuite/lib/target-supports.exp
> @@ -9170,6 +9170,7 @@ proc is-effective-target-keyword { arg } {
>  	  "named_sections" { return 1 }
>  	  "gc_sections"    { return 1 }
>  	  "cxa_atexit"     { return 1 }
> +	  "ppc_cpu_supports_hw" { return 1 }
>  	  default          { return 0 }
>  	}
>      }

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

end of thread, other threads:[~2023-04-19  2:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-18  3:13 [PATCH-2, rs6000] Add ppc_cpu_supports_hw into proc is-effective-target-keyword [PR108728] HAO CHEN GUI
2023-04-19  2:42 ` 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).