]> gcc.gnu.org Git - gcc.git/commit
Add long double target-supports on PowerPC.
authorMichael Meissner <meissner@linux.ibm.com>
Thu, 29 Apr 2021 00:28:26 +0000 (20:28 -0400)
committerMichael Meissner <meissner@linux.ibm.com>
Thu, 29 Apr 2021 00:28:26 +0000 (20:28 -0400)
commit7e3cd5454ea057e848ca072bede1a73a32668af3
treea1fde694d82bb4797ed704a196119a6d13ce2f92
parenta3ba87a05c70ffd091c98e4ec42a1b41632ded4c
Add long double target-supports on PowerPC.

This patch add several more selections to target-supports.exp:

    * 3 selections if we can change the long double format to a particular
value.
    * 3 functions to return the options needed to switch the long double
format for use with dg-add-options.

I have run tests on a little endian power9 system with 3 compilers.  There
were no regressions with these patches, and the two tests in the following
patches now work if the default long double is not IBM 128-bit:

    * One compiler used the default IBM 128-bit format;
    * One compiler used the IEEE 128-bit format; (and)
    * One compiler used 64-bit long doubles.

I have also tested compilers on a big endian power8 system with a compiler
defaulting to power8 code generation and another with the default cpu
set.  There were no regressions.

Can I check this patch into the master branch?

gcc/testsuite/
2021-04-28  Michael Meissner  <meissner@linux.ibm.com>

* lib/target-supports.exp
(add_options_for_ppc_long_double_override_ibm128): New function.
(check_effective_target_ppc_long_double_override_ibm128): New
function.
(add_options_for_ppc_long_double_override_ieee128): New function.
(check_effective_target_ppc_long_double_override_ieee128): New
function.
(add_options_for_ppc_long_double_override_64bit): New function.
(check_effective_target_ppc_long_double_override_64bit): New
function.
gcc/testsuite/lib/target-supports.exp
This page took 0.057631 seconds and 5 git commands to generate.