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

Reply via email to