https://gcc.gnu.org/g:1841201a8cd22c0fbdf415bc78b89aa6c8b57a05
commit 1841201a8cd22c0fbdf415bc78b89aa6c8b57a05 Author: Michael Meissner <[email protected]> Date: Tue Sep 15 20:42:27 2026 -0400 Drop power8 bfloat16 test. 2026-09-15 Michael Meissner <[email protected]> gcc/testsuite/ * gcc.target/powerpc/bf16-2.c: Drop power8 support. Diff: --- gcc/testsuite/gcc.target/powerpc/bf16-2.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/bf16-2.c b/gcc/testsuite/gcc.target/powerpc/bf16-2.c index 7a7079f6bd92..1c425c890bea 100644 --- a/gcc/testsuite/gcc.target/powerpc/bf16-2.c +++ b/gcc/testsuite/gcc.target/powerpc/bf16-2.c @@ -5,27 +5,26 @@ #include <stdlib.h> /* On a power10/power11 system, test whether we can do __bf16 calculations - with both software emulation (i.e. running the code with -mcpu=power8) and + with both software emulation (i.e. running the code with -mcpu=power9) and hardware conversions (i.e. with -mcpu=power10 or -mcpu=power11). Power10 supports the XVCVBF16SPN and XVCVSPBF16 instructions that convert between a vector __bf16 and a vector float. */ -extern void do_power10 (void) __attribute__ ((noinline,target("cpu=power10"))); -extern void do_power8 (void) __attribute__ ((noinline,target("cpu=power8"))); +extern void do_power9 (void) __attribute__ ((noinline,target("cpu=power9"))); volatile __bf16 two = 2.0; volatile __bf16 three = 3.0; -volatile __bf16 p8_add, p8_sub, p8_mul, p8_div; +volatile __bf16 p9_add, p9_sub, p9_mul, p9_div; volatile __bf16 p10_add, p10_sub, p10_mul, p10_div; void -do_power8 (void) +do_power9 (void) { - p8_add = three + two; - p8_sub = three - two; - p8_mul = three * two; - p8_div = three / two; + p9_add = three + two; + p9_sub = three - two; + p9_mul = three * two; + p9_div = three / two; } void @@ -40,18 +39,18 @@ do_power10 (void) int main (int argc, char *argv[]) { - do_power8 (); + do_power9 (); - if (((double)p8_add) != 5.0) + if (((double)p9_add) != 5.0) abort (); - if (((double)p8_sub) != 1.0) + if (((double)p9_sub) != 1.0) abort (); - if (((double)p8_mul) != 6.0) + if (((double)p9_mul) != 6.0) abort (); - if (((double)p8_div) != 1.5) + if (((double)p9_div) != 1.5) abort (); do_power10 ();
