This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH], Enable _Float128 in VSX PowerPC system and enable #pragma GCC target "float128"
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Michael Meissner <meissner at linux dot vnet dot ibm dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, David Edelsohn <dje dot gcc at gmail dot com>, Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- Date: Wed, 16 Aug 2017 17:19:19 -0500
- Subject: Re: [PATCH], Enable _Float128 in VSX PowerPC system and enable #pragma GCC target "float128"
- Authentication-results: sourceware.org; auth=none
- References: <20170814192142.GA15707@ibm-tiger.the-meissners.org>
Hi Mike,
On Mon, Aug 14, 2017 at 03:21:42PM -0400, Michael Meissner wrote:
> This patch enables the _Float128 keyword for the C langauge all of the time for
> PowerPC VSX systems. The __float128 keyword continues to be only enabled if
> you use the -mfloat128 option.
Looks good, please commit. Thanks!
Segher
> PR target/70589
> * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Make the
> real keyword for IEEE 128-bit be __ieee128 for VSX runs, and define
> __float128 to be __ieee128 if -mfloat128 is used or a float128
> target attribute/pragma is used. Enable _Float128 all of the
> time.
> (rs6000_cpu_cpp_builtins): Likewise.
> * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
> (rs6000_floatn_mode): Likewise.
> (rs6000_opt_masks): Likewise.
>
> [gcc/testsuite]
> 2017-08-14 Michael Meissner <meissner@linux.vnet.ibm.com>
>
> PR target/70589
> * gcc.target/powerpc/float128-1.c: Eliminate using the
> -static-libgcc option. Use -mvsx instead of -mcpu=power7 to run
> the tests.
> * gcc.target/powerpc/float128-2.c: Likewise.
> * gcc.target/powerpc/float128-3.c: Test enabling -mfloat128 via
> #pragma target.
> * gcc.target/powerpc/float128-4.c: New test, clone float128-1.c,
> using the _Float128 keyword. Do not use the -mfloat128 option.