https://gcc.gnu.org/g:08beab29a07123d5b9d464f21dda2889445ff7a9
commit 08beab29a07123d5b9d464f21dda2889445ff7a9 Author: Michael Meissner <meiss...@linux.ibm.com> Date: Mon Jun 17 17:40:04 2024 -0400 Revert changes Diff: --- gcc/testsuite/gcc.target/powerpc/power11-1.c | 13 ------------- gcc/testsuite/gcc.target/powerpc/power11-2.c | 21 --------------------- gcc/testsuite/gcc.target/powerpc/power11-3.c | 11 ----------- gcc/testsuite/lib/target-supports.exp | 17 ----------------- 4 files changed, 62 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/power11-1.c b/gcc/testsuite/gcc.target/powerpc/power11-1.c deleted file mode 100644 index 2dd0f64ead1a..000000000000 --- a/gcc/testsuite/gcc.target/powerpc/power11-1.c +++ /dev/null @@ -1,13 +0,0 @@ -/* { dg-do assemble { target powerpc*-*-* } } */ -/* { dg-require-effective-target power11_ok } */ -/* { dg-options "-mdejagnu-cpu=power11 -O2" } */ - -/* Basic check to see if the compiler supports -mcpu=power11. */ - -#ifndef _ARCH_PWR11 -#error "-mcpu=power11 is not supported" -#endif - -void foo (void) -{ -} diff --git a/gcc/testsuite/gcc.target/powerpc/power11-2.c b/gcc/testsuite/gcc.target/powerpc/power11-2.c deleted file mode 100644 index 625031e91465..000000000000 --- a/gcc/testsuite/gcc.target/powerpc/power11-2.c +++ /dev/null @@ -1,21 +0,0 @@ -/* { dg-do assemble { target powerpc*-*-* } } */ -/* { dg-require-effective-target power11_ok } */ -/* { dg-require-effective-target target_clone } */ -/* { dg-options "-O2" } */ - -/* Check if we can set the power11 target via a target attribute. */ - -__attribute__((__target__("cpu=power9"))) -void foo_p9 (void) -{ -} - -__attribute__((__target__("cpu=power10"))) -void foo_p10 (void) -{ -} - -__attribute__((__target__("cpu=power11"))) -void foo_p11 (void) -{ -} diff --git a/gcc/testsuite/gcc.target/powerpc/power11-3.c b/gcc/testsuite/gcc.target/powerpc/power11-3.c deleted file mode 100644 index b0f245eea035..000000000000 --- a/gcc/testsuite/gcc.target/powerpc/power11-3.c +++ /dev/null @@ -1,11 +0,0 @@ -/* { dg-do assemble { target powerpc*-*-* } } */ -/* { dg-require-effective-target power11_ok } */ -/* { dg-require-effective-target target_clone } */ -/* { dg-options "-mdejagnu-cpu=power8 -O2" } */ - -/* Check if we can set the power11 target via a target_clones attribute. */ - -__attribute__((__target_clones__("cpu=power11,cpu=power9,default"))) -void foo (void) -{ -} diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 9d0314afe59a..e307f4e69efb 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -7129,23 +7129,6 @@ proc check_effective_target_power10_ok { } { } } -# Return 1 if this is a PowerPC target supporting -mcpu=power11. - -proc check_effective_target_power11_ok { } { - if { ([istarget powerpc*-*-*]) } { - return [check_no_compiler_messages power11_ok object { - int main (void) { - #ifndef _ARCH_PWR11 - #error "-mcpu=power11 is not supported" - #endif - return 0; - } - } "-mcpu=power11"] - } else { - return 0 - } -} - # Return 1 if this is a PowerPC target supporting -mfloat128 via either # software emulation on power7/power8 systems or hardware support on power9.