From: Michael Meissner Date: Tue, 9 Jun 2020 20:35:43 +0000 (-0500) Subject: PowerPC: Add future hwcap2 bits X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7274dbf82001ae52e5c9a514129b49152498d40;p=gcc.git PowerPC: Add future hwcap2 bits This patch adds support for the two new HWCAP2 fields used by the __builtin_cpu_supports function. It adds support in the target_clones attribute for -mcpu=future. The two new __builtin_cpu_supports tests are: __builtin_cpu_supports ("isa_3_1") __builtin_cpu_supports ("mma") The bits used are the bits that the Linux kernel engineers will be using for these new features. gcc/ 2020-06-09 Michael Meissner * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate 'future' PowerPC platform. (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1. (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA. * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and MMA HWCAP2 bits. * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support. (rs6000_clone_map): Add 'future' system target_clones support. testsuite/ 2020-06-09 Michael Meissner * gcc.target/powerpc/clone3.c: New test for using 'future' with the target_clones attribute. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c92582df7fe..94a7b5f8d89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2020-06-09 Michael Meissner + + * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate + 'future' PowerPC platform. + (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1. + (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA. + * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and + MMA HWCAP2 bits. + * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support. + (rs6000_clone_map): Add 'future' system target_clones support. + 2020-06-08 Tobias Burnus PR lto/94848 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4ca71a85d3c..91b1687cbf6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-06-09 Michael Meissner + + * gcc.target/powerpc/clone3.c: New test for using 'future' with + the target_clones attribute. + 2020-06-09 Michael Meissner * lib/target-supports.exp (check_effective_target_powerpc_pcrel):