[2/1,rs6000] make ppc_cpu_supports_hw as effective target keyword [PR108728]

Message ID 7eaa2f21-b126-a2a5-97fe-a30eafb72bde@linux.ibm.com
State Accepted
Headers
Series None |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

HAO CHEN GUI April 20, 2023, 6:04 a.m. UTC
  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. It's required by patch2 of
this issue.

Thanks
Gui Haochen

ChangeLog
testsuite: make ppc_cpu_supports_hw as effective target keyword [PR108728]

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


patch.diff
  

Comments

Kewen.Lin April 20, 2023, 7:36 a.m. UTC | #1
Hi,

on 2023/4/20 14:04, HAO CHEN GUI 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. It's required by patch2 of
> this issue.

OK for trunk, thanks!

BR,
Kewen

> 
> Thanks
> Gui Haochen
> 
> ChangeLog
> testsuite: make ppc_cpu_supports_hw as effective target keyword [PR108728]
> 
> 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 }
>  	}
>      }
  

Patch

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 }
 	}
     }