[PATCH] Honor --disable-decimal-float in building _Float128 support.

2021-02-25 Thread Michael Meissner via Gcc-patches
Honor --disable-decimal-float in building _Float128 support. Joseph Myers reported that my previous patch to add conversions between _Float128 and the Decimal types was still being built even if GCC was configured with the --disable-decimal-float option. This patch fixes that by only building

Re: [PATCH, V2] Add conversions between _Float128 and Decimal.

2021-02-25 Thread Michael Meissner via Gcc-patches
On Wed, Feb 24, 2021 at 11:12:54PM +, Joseph Myers wrote: > This change appears to have broken builds for powerpc in a configuration > that bootstraps a cross toolchain starting with a GCC build with no libc > available. > > Specifically, such a bootstrap build uses --disable-decimal-float

[PATCH 3/3] Force IBM long double for conversion test on PowerPC.

2021-02-23 Thread Michael Meissner via Gcc-patches
[PATCH 3/3] Force IBM long double for conversion test on PowerPC. The test c-c++-common/dfp/convert-bfp-11.c explicit expects long double to use the IBM 128-bit extended double format. In particular, some of the tests expect an infinity to be created if decimal values that are converted that are

[PATCH 2/3] Force long double to be IBM 128-bit on PowerPC test, PR target/70117

2021-02-23 Thread Michael Meissner via Gcc-patches
[PATCH 2/3] Force long double to be IBM 128-bit on PowerPC test, PR target/70117. This patch fixes the pr70117 test to use IBM 128-bit long double. 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

[PATCH 1/3] Add long double target-supports on PowerPC.

2021-02-23 Thread Michael Meissner via Gcc-patches
[PATCH 1/3] Add long double target-supports on PowerPC. This patch add several more selections to target-supports.exp: * 3 selections for the current long double format; * 3 selections if we can change the long double format to a particular value. * 3 functions to

Re: [PATCH 1/3] PowerPC: Add long double target-supports.

2021-02-23 Thread Michael Meissner via Gcc-patches
On Fri, Jan 15, 2021 at 06:16:43PM +, Joseph Myers wrote: > On Thu, 14 Jan 2021, Michael Meissner via Gcc-patches wrote: > > > +return [check_runtime_nocache ppc_long_double_ovveride_ibm128 { > > > +return [check_runtime_nocache ppc_long_double_ovveride_ieee128

[PATCH, 0 of 3], Fix PowerPC test suite for IEEE 128-bit long double

2021-02-23 Thread Michael Meissner via Gcc-patches
As I mentioned in the patch for adding _Float128 <-> Decimal conversions, there are two test cases that fail if you configure the compiler to use IEEE 128-bit long double or 64-bit long double. That is because these tests are explicitly testing that the long double is a pair of doubles (i.e. IBM

Re: [PATCH, V2] Add conversions between _Float128 and Decimal.

2021-02-22 Thread Michael Meissner via Gcc-patches
On Sat, Feb 20, 2021 at 06:33:12PM -0600, Segher Boessenkool wrote: > Hi! > > On Tue, Feb 09, 2021 at 02:35:05AM -0500, Michael Meissner wrote: > > This patch implements conversions between _Float128 and the 3 Decimal > > floating > > types. It does this by extendending the dfp-bit conversions

Re: [PATCH] PR 99133, Mark xxspltiw, xxspltidp, and xxsplti32x as being prefixed

2021-02-18 Thread Michael Meissner via Gcc-patches
On Wed, Feb 17, 2021 at 06:09:39PM -0600, Segher Boessenkool wrote: > Hi! > > On Wed, Feb 17, 2021 at 12:17:30PM -0500, Michael Meissner wrote: > > I noticed that the power10 xxspltiw, xxspltidp, and xxsplti32dx > > instructions are not flagged as prefixed instructions, which means the > >

[PATCH] PR 99133, Mark xxspltiw, xxspltidp, and xxsplti32x as being prefixed

2021-02-17 Thread Michael Meissner via Gcc-patches
PR 99133, Mark xxspltiw, xxspltidp, and xxsplti32x as being prefixed I noticed that the power10 xxspltiw, xxspltidp, and xxsplti32dx instructions are not flagged as prefixed instructions, which means the instruction length is not set to 12 bytes. This patch sets these instructions to be

[Ping #3, Patch V2] Add conversions between _Float128 and Decimal.

2021-02-16 Thread Michael Meissner via Gcc-patches
Ping patch | Subject: [PATCH, V2] Add conversions between _Float128 and Decimal. | Message-ID: <20210209073505.ga11...@ibm-toto.the-meissners.org> https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565009.html I was asked to resubmit the patch with the copyright dates fixed, and Will's

[PING, PATCH V2] Add conversions between _Float128 and Decimal.

2021-02-11 Thread Michael Meissner via Gcc-patches
Ping patch | Subject: [PATCH, V2] Add conversions between _Float128 and Decimal. | Message-ID: <20210209073505.ga11...@ibm-toto.the-meissners.org> https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565009.html I was asked to resubmit the patch with the copyright dates fixed, and Will's

[PATCH, V2] Add conversions between _Float128 and Decimal.

2021-02-08 Thread Michael Meissner via Gcc-patches
[PATCH V2] Add conversions between _Float128 and Decimal. This patch implements conversions between _Float128 and the 3 Decimal floating types. It does this by extendending the dfp-bit conversions to add a new binary floating point type (KF), and doing the conversions in the same manner as the

[PING] Add conversions between _Float128 and Decimal.

2021-02-08 Thread Michael Meissner via Gcc-patches
Ping patch. This really needs to go in to allow switching the long double type to IEEE 128-bit. https://gcc.gnu.org/pipermail/gcc-patches/2021-January/564486.html | Subject: [PATCH] Add conversions between _Float128 and Decimal. | Message-ID: <20210129024208.ga25...@ibm-toto.the-meissners.org>

[PATCH] Make asm not contain prefixed addresses.

2021-02-01 Thread Michael Meissner via Gcc-patches
>From 4ceff15935a16da9ec5833279807855a8afc47cd Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Mon, 1 Feb 2021 22:19:57 -0500 Subject: [PATCH] Make asm not contain prefixed addresses. In PR target/98519, the assembler does not like asm memory references that are prefixed. We can't

Re: [PATCH] Add conversions between _Float128 and Decimal.

2021-01-29 Thread Michael Meissner via Gcc-patches
On Fri, Jan 29, 2021 at 03:45:49PM -0600, will schmidt wrote: > On Thu, 2021-01-28 at 21:42 -0500, Michael Meissner via Gcc-patches wrote: > > [PATCH] Add conversions between _Float128 and Decimal. > > > > Hi, > Just a couple cosmetic nits in the description. The ch

[PATCH] PR target/98870: Fix IEEE 128-bit fortran test

2021-01-29 Thread Michael Meissner via Gcc-patches
PR target/98870: Fix IEEE 128-bit fortran test This test started failing when I changed the mapping of IEEE 128-bit long double built-in functions on 2021-01-28. This patch fixes the test so it uses the correct name. I have tested this patch and the test now passes. Can I check it into the

Re: [Ping] PowerPC: Add float128/Decimal conversions.

2021-01-28 Thread Michael Meissner via Gcc-patches
I rebusmitted the patch after verifying it still builds and works with the current branch as: https://gcc.gnu.org/pipermail/gcc-patches/2021-January/564486.html | Subject: [PATCH] Add conversions between _Float128 and Decimal. | Message-ID: <20210129024208.ga25...@ibm-toto.the-meissners.org> --

[PATCH] Add conversions between _Float128 and Decimal.

2021-01-28 Thread Michael Meissner via Gcc-patches
[PATCH] Add conversions between _Float128 and Decimal. This patch implements conversions between _Float128 and the 3 Decimal floating types. It does by extendending the dfp-bit conversions to add a new binary floating point type (KF), and doing the conversions in the same mannor as the other

Re: [Ping] PowerPC: Add float128/Decimal conversions.

2021-01-28 Thread Michael Meissner via Gcc-patches
On Thu, Jan 28, 2021 at 12:59:18PM -0600, Segher Boessenkool wrote: > On Thu, Jan 28, 2021 at 01:10:39PM -0500, Michael Meissner wrote: > > > The whole thread is at > > > https://patchwork.ozlabs.org/project/gcc/patch/2020112524.ga...@ibm-toto.the-meissners.org/ > > > . > > > > > > I

Re: [Ping] PowerPC: Add float128/Decimal conversions.

2021-01-28 Thread Michael Meissner via Gcc-patches
On Wed, Jan 27, 2021 at 09:11:49PM -0600, Segher Boessenkool wrote: > On Tue, Jan 26, 2021 at 06:43:06PM -0500, Michael Meissner wrote: > > I posted this patch on January 14th, 2021: > > https://gcc.gnu.org/pipermail/gcc-patches/2021-January/563498.html > > > > | Date: Thu, 14 Jan 2021 12:09:36

[COMMITTED] PowerPC: Map IEEE 128-bit long double built-ins.

2021-01-28 Thread Michael Meissner via Gcc-patches
After testing the patch I submitted on November 17th that was approved to make sure it still works, I commited the patch to the master branch. Sorry about the intermediate rewrites. [PATCH] Map long double built-ins correctly with IEEE 128-bit long double. The PowerPC has two different 128-bit

Re: [PATCH] PowerPC: Map IEEE 128-bit long double built-ins.

2021-01-27 Thread Michael Meissner via Gcc-patches
at 01:06:46PM -0600, will schmidt wrote: > > > On Thu, 2021-01-14 at 11:59 -0500, Michael Meissner via Gcc-patches wrote: > > > > November 19th, 2020: > > > > Message-ID: <20201119235814.ga...@ibm-toto.the-meissners.org> > > > > > > Subje

Re: [PATCH] PowerPC: Map IEEE 128-bit long double built-ins.

2021-01-27 Thread Michael Meissner via Gcc-patches
On Wed, Jan 27, 2021 at 07:43:56PM -0600, Segher Boessenkool wrote: > On Wed, Jan 27, 2021 at 01:06:46PM -0600, will schmidt wrote: > > On Thu, 2021-01-14 at 11:59 -0500, Michael Meissner via Gcc-patches wrote: > > > November 19th, 2020: > > > Message-ID: <202

[PATCH, revised, #2] PowerPC: Add float128/Decimal conversions.

2021-01-27 Thread Michael Meissner via Gcc-patches
>From 02b04aed77130f2ec9156d2f7ff89d4cc6b5a78b Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 21 Jan 2021 12:58:56 -0500 Subject: [PATCH, revised] PowerPC: Add float128/Decimal conversions. [PATCH, revised] PowerPC: Add float128/Decimal conversions. Unfortunately, the revision I

Re: [PATCH, revised] PowerPC: Add float128/Decimal conversions.

2021-01-27 Thread Michael Meissner via Gcc-patches
[PATCH, revised] PowerPC: Add float128/Decimal conversions. This patch revises the patch on January 14th. The only change in this patch compared to the previous patch is to change the format string for converting IEEE 128-bit to string. This allows the c-c++-common/dfp/convert-bfp-6.c test now

Re: [PATCH] PowerPC: Map IEEE 128-bit long double built-ins.

2021-01-27 Thread Michael Meissner via Gcc-patches
On Wed, Jan 27, 2021 at 01:06:46PM -0600, will schmidt wrote: > On Thu, 2021-01-14 at 11:59 -0500, Michael Meissner via Gcc-patches wrote: > > From 78435dee177447080434cdc08fc76b1029c7f576 Mon Sep 17 00:00:00 2001 > > From: Michael Meissner > > Date: Wed, 13 Jan 2021 21:47

[Ping] PowerPC: Add float128/Decimal conversions.

2021-01-26 Thread Michael Meissner via Gcc-patches
I posted this patch on January 14th, 2021: https://gcc.gnu.org/pipermail/gcc-patches/2021-January/563498.html | Date: Thu, 14 Jan 2021 12:09:36 -0500 | Subject: [PATCH] PowerPC: Add float128/Decimal conversions. | Message-ID: <20210114170936.ga3...@ibm-toto.the-meissners.org> You had a question

[Ping] PowerPC: Map IEEE 128-bit long double built-ins.

2021-01-26 Thread Michael Meissner via Gcc-patches
Ping https://gcc.gnu.org/pipermail/gcc-patches/2021-January/563496.html | Date: Thu, 14 Jan 2021 11:59:19 -0500 | Subject: [PATCH] PowerPC: Map IEEE 128-bit long double built-ins. | Message-ID: <20210114165919.ga1...@ibm-toto.the-meissners.org> As I've said in the past, this is the most

Re: [BACKPORT] Apply fix for PR libgcc/97643 to gcc 10 branch

2021-01-20 Thread Michael Meissner via Gcc-patches
On Wed, Jan 20, 2021 at 06:46:14PM -0600, Segher Boessenkool wrote: > On Wed, Jan 20, 2021 at 06:38:37PM -0500, Michael Meissner wrote: > > This patch takes the fix that was applied to the trunk on December 3rd, and > > it > > applies it to the GCC 10 branch. > > > PR libgcc/97543, PR

[BACKPORT] Apply fix for PR libgcc/97643 to gcc 10 branch

2021-01-20 Thread Michael Meissner via Gcc-patches
PowerPC: Backport fix for libgcc long double support. This patch takes the fix that was applied to the trunk on December 3rd, and it applies it to the GCC 10 branch. I have verified it by building compilers configured for both normal 128-bit IBM long double and 64-bit long double with/without

Re: [PATCH] PowerPC: Add float128/Decimal conversions.

2021-01-19 Thread Michael Meissner via Gcc-patches
On Fri, Jan 15, 2021 at 03:52:44PM -0600, Segher Boessenkool wrote: > On Thu, Jan 14, 2021 at 12:09:36PM -0500, Michael Meissner wrote: > > [PATCH] PowerPC: Add float128/Decimal conversions. > > Same question here. In your last message, you said that it was unacceptable that the conversion fails

Re: [PATCH] PowerPC: Map IEEE 128-bit long double built-ins.

2021-01-19 Thread Michael Meissner via Gcc-patches
On Fri, Jan 15, 2021 at 03:43:13PM -0600, Segher Boessenkool wrote: > Hi! > > On Thu, Jan 14, 2021 at 11:59:19AM -0500, Michael Meissner wrote: > > >From 78435dee177447080434cdc08fc76b1029c7f576 Mon Sep 17 00:00:00 2001 > > From: Michael Meissner > > Date: Wed, 13 Jan 2021 21:47:03 -0500 > >

[PATCH 2/2] Power10: Add IEEE 128-bit fp conditional move.

2021-01-14 Thread Michael Meissner via Gcc-patches
[PATCH 2/2] Power10: Add IEEE 128-bit fp conditional move. This patch adds the support for power10 IEEE 128-bit floating point conditional move and for automatically generating min/max. Unlike the previous patch, I decided to keep two separate patterns for fpmask before splitting (one pattern

[PATCH 1/2] Power10: Add IEEE 128-bit min/max support.

2021-01-14 Thread Michael Meissner via Gcc-patches
[PATCH 1/2] Power10: Add IEEE 128-bit min/max support. This patch adds the support for the IEEE 128-bit floating point C minimum and maximum instructions. The next patch will add the support for using the compare and set mask instruction to implement conditional moves. Rather than trying to

[PATCH 0/2] PowerPC: Add power10 IEEE 128-bit min/max/cmove

2021-01-14 Thread Michael Meissner via Gcc-patches
These patches have been kicking around for awhile, and I really would like to get them in. They aren't as important as the other float128 patches I've submitted today, since many of those patches are designed to allow switching the long double format to IEEE 128-bit, which we need in GCC 11. I

[PATCH 3/3] PowerPC: Force IBM long double for conversion test.

2021-01-14 Thread Michael Meissner via Gcc-patches
[PATCH 3/3] PowerPC: Force IBM long double for conversion test. The test c-c++-common/dfp/convert-bfp-11.c explicit expects long double to use the IBM 128-bit extended double format. In particular, some of the tests expect an infinity to be created if decimal values that are converted that are

[PATCH 2/3] PowerPC: PR target/70117, Force long double to be IBM 128-bit.

2021-01-14 Thread Michael Meissner via Gcc-patches
[PATCH 2/3] PowerPC: PR target/70117, Force long double to be IBM 128-bit. This patch fixes the pr70117 test to use IBM 128-bit long double. I have run tests on a little endian power9 system with 3 compilers: * One compiler using the default IBM 128-bit format; * One compiler using

[PATCH 1/3] PowerPC: Add long double target-supports.

2021-01-14 Thread Michael Meissner via Gcc-patches
[PATCH 1/3] PowerPC: Add long double target-supports. This patch add several more selections to target-supports.exp: * 3 selections for the current long double format; * 3 selections if we can change the long double format to a particular value. * 3 functions to return

[PATCH 0/3] PowerPC: Fix up tests for IEEE 128-bit long double

2021-01-14 Thread Michael Meissner via Gcc-patches
In November, I submitted a patch to fix up some of the tests for when IEEE 128-bit is used as the long double format. Segher had some suggestions. These patches are based on those suggestions: https://gcc.gnu.org/pipermail/gcc-patches/2020-November/559836.html These patches add several more

[PATCH 2/2] PowerPC: Use __builtin_pack_ibm128 instead of __builtin_pack_longdouble.

2021-01-14 Thread Michael Meissner via Gcc-patches
[PATCH 2/2] PowerPC: Use __builtin_pack_ibm128 instead of __builtin_pack_longdouble. In the patch submitted on October 22nd, 2020: https://gcc.gnu.org/pipermail/gcc-patches/2020-October/556869.html https://gcc.gnu.org/pipermail/gcc-patches/2020-October/557529.html Segher suggested that rather

[PATCH 1/2] PowerPC: Allow __ibm128 on older systems.

2021-01-14 Thread Michael Meissner via Gcc-patches
[PATCH 1/2] PowerPC: Allow __ibm128 on older systems. In the patch submitted on October 22nd, 2020: https://gcc.gnu.org/pipermail/gcc-patches/2020-October/556869.html https://gcc.gnu.org/pipermail/gcc-patches/2020-October/557529.html Segher suggested that rather than add #ifdef code in libgcc's

[PATCH 0/2] PowerPC: Add __ibm128 to PowerPC targets without float128 support

2021-01-14 Thread Michael Meissner via Gcc-patches
In the patch submitted on October 22nd, 2020: https://gcc.gnu.org/pipermail/gcc-patches/2020-October/556869.html https://gcc.gnu.org/pipermail/gcc-patches/2020-October/557529.html Segher suggested that rather than add #ifdef code in libgcc's ibm-ldouble.c to use __builtin_pack_ibm128 instead of

[PATCH 2/2] PowerPC: PR 97791: Do not set gnu attributes on moves

2021-01-14 Thread Michael Meissner via Gcc-patches
>From 84ae44abc7a79b9c2e6d9f18a30516d3e8f65b1f Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 13 Jan 2021 21:45:20 -0500 Subject: [PATCH 2/2] PowerPC: PR 97791: Do not set gnu attributes on moves This patch eliminates the code in rs6000_emit_move to set the long double attribute.

[PATCH 1/2] PowerPC: PR 97791: Fix an issue with gnu attributes.

2021-01-14 Thread Michael Meissner via Gcc-patches
[PATCH 1/2] PowerPC: PR 97791: Fix an issue with gnu attributes. This patch patch fixes the problem that we set the GNU attribute for long double if a type were passed or returned that uses the same representation as the long double type (i.e. passing explicit __float128/_Float128 when long

[PATCH 0/2] PowerPC: PR 97791: Fix attribute problems

2021-01-14 Thread Michael Meissner via Gcc-patches
There are many issues with the current implementation of GNU attributes to mark functions that use long double. The idea of .gnu_attributes was to mark objects with ABI requirements. The two patches in this thread fixes a small subset of the GNU attributes problems. It does not fix all of the

[PATCH] PowerPC: Add float128/Decimal conversions.

2021-01-14 Thread Michael Meissner via Gcc-patches
[PATCH] PowerPC: Add float128/Decimal conversions. This patch replaces the following two patches: September 24th, 2020: Message-ID: <20200924203545.gd31...@ibm-toto.the-meissners.org> October 22nd, 2020: Message-ID: <2020100603.ga11...@ibm-toto.the-meissners.org> This patch rewrites those

[PATCH] PowerPC: Map IEEE 128-bit long double built-ins.

2021-01-14 Thread Michael Meissner via Gcc-patches
>From 78435dee177447080434cdc08fc76b1029c7f576 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 13 Jan 2021 21:47:03 -0500 Subject: [PATCH] PowerPC: Map IEEE 128-bit long double built-ins. This patch replaces patches previously submitted: September 24th, 2020: Message-ID:

Re: [PATCH 2/3] PowerPC: require IBM long double for pr70117.

2020-12-17 Thread Michael Meissner via Gcc-patches
On Mon, Dec 14, 2020 at 05:26:03PM -0600, Segher Boessenkool wrote: > Hi! > > On Thu, Dec 03, 2020 at 10:57:56PM -0500, Michael Meissner wrote: > > --- a/gcc/testsuite/gcc.target/powerpc/pr70117.c > > +++ b/gcc/testsuite/gcc.target/powerpc/pr70117.c > > @@ -1,5 +1,6 @@ > > -/* { dg-do run {

Re: [PATCH] PowerPC: Add float128/Decimal conversions

2020-12-17 Thread Michael Meissner via Gcc-patches
On Fri, Dec 11, 2020 at 01:51:44PM -0600, Segher Boessenkool wrote: > Hi! > > On Thu, Nov 19, 2020 at 07:05:24PM -0500, Michael Meissner wrote: > > If the glibc is not 2.32 or later, this code just compiles to using abort. > > That is the compile-time target glibc. That is often *not* the glibc

Re: [PATCH] PowerPC: Map IEEE 128-bit long double built-in functions

2020-12-11 Thread Michael Meissner via Gcc-patches
On Thu, Dec 10, 2020 at 03:20:01PM -0600, Segher Boessenkool wrote: > Hi! > > On Thu, Nov 19, 2020 at 06:58:14PM -0500, Michael Meissner wrote: > > * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add > > support for mapping built-in function names for long double > >

Ping x2: [PATCH 2/2] Power10: Add IEEE 128-bit fp conditional move

2020-12-10 Thread Michael Meissner via Gcc-patches
This needs the first patch in the series to be applied first. This patch is not critical for enabling IEEE 128-bit long double, but it does improve float128 code generation on power10. I haven't received a reply for this patch: | Date: Sun, 15 Nov 2020 23:53:20 -0500 | Subject: [PATCH 2/2]

Ping x2: [PATCH 1/2] Power10: Add IEEE 128-bit xsmaxcqp and xsmincqp support.

2020-12-10 Thread Michael Meissner via Gcc-patches
This patch has been around for quite some time. It isn't critical for enabling IEEE 128-bit long double, but it improves code generation for float128 on power10. I haven't received a reply for this patch: | Date: Sun, 15 Nov 2020 23:50:51 -0500 | Subject: [PATCH 1/2] Power10: Add IEEE 128-bit

Ping x2: [PATCH] PowerPC: Set long double size for IBM/IEEE.

2020-12-10 Thread Michael Meissner via Gcc-patches
This patch isn't critical for IEEE 128-bit long double, but it is a feature Jonathan Wakely asked for, to have a single switch to enable IEEE/IBM 128-bit long double, without having to set the long double size. I haven't received a replay for this patch: | Date: Thu, 19 Nov 2020 19:00:11 -0500 |

Ping x2: [PATCH] PowerPC: Add float128/Decimal conversions

2020-12-10 Thread Michael Meissner via Gcc-patches
This is one of the critical patches for enabling IEEE 128-bit long double. I haven't received a reply for this patch: | Date: Thu, 19 Nov 2020 19:05:24 -0500 | Subject: [PATCH] PowerPC: Add float128/Decimal conversions | Message-ID: <2020112524.ga...@ibm-toto.the-meissners.org> |

Ping x2: [PATCH] PowerPC: Map IEEE 128-bit long double built-in functions

2020-12-10 Thread Michael Meissner via Gcc-patches
This patch is one of the critical patches to enable building GCC with the long double type set to IEEE 128-bit. I haven't received a response for this patch: | Date: Thu, 19 Nov 2020 18:58:14 -0500 | Subject: [PATCH] PowerPC: Map IEEE 128-bit long double built-in functions | Message-ID:

Ping: [PATCH 2/2] Power10: Add IEEE 128-bit fp conditional move

2020-12-03 Thread Michael Meissner via Gcc-patches
I haven't received a reply for this patch: | Date: Sun, 15 Nov 2020 23:53:20 -0500 | Subject: [PATCH 2/2] Power10: Add IEEE 128-bit fp conditional move | Message-ID: <20201116045320.gb3...@ibm-toto.the-meissners.org> | https://gcc.gnu.org/pipermail/gcc-patches/2020-November/559167.html --

Ping: [PATCH 1/2] Power10: Add IEEE 128-bit xsmaxcqp and xsmincqp support.

2020-12-03 Thread Michael Meissner via Gcc-patches
I haven't received a reply for this patch: | Date: Sun, 15 Nov 2020 23:50:51 -0500 | Subject: [PATCH 1/2] Power10: Add IEEE 128-bit xsmaxcqp and xsmincqp support. | Message-ID: <20201116045051.ga3...@ibm-toto.the-meissners.org> | https://gcc.gnu.org/pipermail/gcc-patches/2020-November/559166.html

Ping: [PATCH] PowerPC: Add float128/Decimal conversions

2020-12-03 Thread Michael Meissner via Gcc-patches
I haven't received a reply for this patch: | Date: Thu, 19 Nov 2020 19:05:24 -0500 | Subject: [PATCH] PowerPC: Add float128/Decimal conversions | Message-ID: <2020112524.ga...@ibm-toto.the-meissners.org> | https://gcc.gnu.org/pipermail/gcc-patches/2020-November/559661.html -- Michael

Ping [PATCH] PowerPC: Map IEEE 128-bit long double built-in functions

2020-12-03 Thread Michael Meissner via Gcc-patches
I haven't received a response for this patch: | Date: Thu, 19 Nov 2020 18:58:14 -0500 | Subject: [PATCH] PowerPC: Map IEEE 128-bit long double built-in functions | Message-ID: <20201119235814.ga...@ibm-toto.the-meissners.org> | https://gcc.gnu.org/pipermail/gcc-patches/2020-November/559659.html

Ping: [PATCH] PowerPC: Set long double size for IBM/IEEE.

2020-12-03 Thread Michael Meissner via Gcc-patches
I haven't received a replay for this patch: | Date: Thu, 19 Nov 2020 19:00:11 -0500 | Subject: [PATCH] PowerPC: Set long double size for IBM/IEEE. | Message-ID: <2020112011.ga...@ibm-toto.the-meissners.org> | https://gcc.gnu.org/pipermail/gcc-patches/2020-November/559660.html -- Michael

[PATCH, Committed] PowerPC PR libgcc/o7543 and libgcc/97643, Fix long double issues

2020-12-03 Thread Michael Meissner via Gcc-patches
I committed the following patch today. After a burn-in period, I plan to commit the patch to older GCC releases, and close out the two PRs. PowerPC: PR libgcc/97543 and libgcc/97643, fix long double issues If you use a compiler with long double defaulting to 64-bit instead of 128-bit with IBM

[PATCH 1/3] PowerPC: Add long double target-supports.

2020-12-03 Thread Michael Meissner via Gcc-patches
PowerPC: Add long double target-supports. I messed up posting this patch, using the wrong subject line. This patch is what I meant to post. This patch replaces the patch submitted on November 21st: | Date: Sat, 21 Nov 2020 00:33:52 -0500 | Subject: [PATCH 1/3] PowerPC: Add long double

[PATCH 3/3] PowerPC: Force IBM long double for conversion test.

2020-12-03 Thread Michael Meissner via Gcc-patches
PowerPC: Force IBM long double for conversion test. This patch replaces the following patch: | Date: Sat, 21 Nov 2020 00:39:53 -0500 | Subject: [PATCH 3/3] PowerPC: Require IBM long double for conversion test. | Message-ID: <20201121053953.ge17...@ibm-toto.the-meissners.org> |

[PATCH 2/3] PowerPC: require IBM long double for pr70117.

2020-12-03 Thread Michael Meissner via Gcc-patches
PowerPC: PR target/70117, Force long double to be IBM 128-bit. This patch replaces the following patch: | Date: Sat, 21 Nov 2020 00:37:10 -0500 | Subject: [PATCH 2/3] PowerPC: require IBM long double for pr70117. | Message-ID: <20201121053710.gd17...@ibm-toto.the-meissners.org> |

Date: Sat, 21 Nov 2020 00:33:52 -0500

2020-12-03 Thread Michael Meissner via Gcc-patches
PowerPC: Add long double target-supports. This patch replaces the patch submitted on November 21st: | Date: Sat, 21 Nov 2020 00:33:52 -0500 | Subject: [PATCH 1/3] PowerPC: Add long double target-supports. | Message-ID: <20201121053352.gc17...@ibm-toto.the-meissners.org> |

[PATCH 0/3] Updates for float128 tests

2020-12-03 Thread Michael Meissner via Gcc-patches
These patches update the test suite patches I posted on November 21. There are 3 patches in this series. 1) The first patch adds new target-support options; 2) The second patch updates pr70117.c; (and) 3) The third patch updates convert-bfp-11.c. In the target supports patches, I

Re: [PATCH] libstdc++: Add C++ runtime support for new 128-bit long double format

2020-12-02 Thread Michael Meissner via Gcc-patches
On Tue, Dec 01, 2020 at 10:36:10PM +, Jonathan Wakely wrote: > I've attached a complete patch including those generated files, and > I've also pushed the branch to refs/users/redi/heads/ieee128-squash in > the gcc.gnu.org Git repo. That branch includes your patch for PR > libgcc/97543 which is

Re: [PATCH] libstdc++: Add C++ runtime support for new 128-bit long double format

2020-12-01 Thread Michael Meissner via Gcc-patches
Note this is just to keep the gcc-patches archive up to date. I originally posted this reply but the attached config.log file was too big. It was also sent directly to Jonathan, and he replied. So I canceled the gcc-patches post, and I'm sending out this one with a bzip2's config.log: On Tue,

Re: [PATCH] libstdc++: Add C++ runtime support for new 128-bit long double format

2020-12-01 Thread Michael Meissner via Gcc-patches
On Tue, Dec 01, 2020 at 10:36:10PM +, Jonathan Wakely wrote: > You need to run autoconf-2.69's autoreconf in the libstdc++-v3 source > tree to regenerate configure, Makefile.in etc. Without doing that > you're just running the same configure script as is on current trunk, > and that doesn't

Re: [PATCH] libstdc++: Add C++ runtime support for new 128-bit long double format

2020-12-01 Thread Michael Meissner via Gcc-patches
On Tue, Dec 01, 2020 at 04:04:30PM +, Jonathan Wakely wrote: > On 01/12/20 15:10 +, Jonathan Wakely wrote: > >On 30/11/20 16:30 -0500, Michael Meissner via Libstdc++ wrote: > >>Jonathan, could you send a fresh set of patches (or at least replacements)? > >> I > >>tried installing the

Re: [PATCH] libstdc++: Add C++ runtime support for new 128-bit long double format

2020-11-30 Thread Michael Meissner via Gcc-patches
Jonathan, could you send a fresh set of patches (or at least replacements)? I tried installing the patches on a master branch I checked out this morning, and I got two rejects: --- libstdc++-v3/testsuite/util/testsuite_abi.cc +++ libstdc++-v3/testsuite/util/testsuite_abi.cc @@ -207,6 +207,7 @@

Re: [PATCH 1/3] PowerPC: Add long double target-supports.

2020-11-24 Thread Michael Meissner via Gcc-patches
On Mon, Nov 23, 2020 at 02:28:57PM -0600, Segher Boessenkool wrote: > Hi! > > On Sat, Nov 21, 2020 at 12:33:52AM -0500, Michael Meissner wrote: > > +# See if the target is a powerpc with the long double format that uses the > > IBM > > +# extended double format. > > "Return 1 if the target is

Re: [PATCH 2/3] PowerPC: require IBM long double for pr70117.

2020-11-21 Thread Michael Meissner via Gcc-patches
On Sat, Nov 21, 2020 at 10:46:45AM -0500, David Edelsohn wrote: > On Sat, Nov 21, 2020 at 12:37 AM Michael Meissner > wrote: > > > > PowerPC: require IBM long double for pr70117. > > > > Since the test is explicitly checking for IBM extended double, do not try to > > run it when long double is

[PATCH 3/3] PowerPC: Require IBM long double for conversion test.

2020-11-20 Thread Michael Meissner via Gcc-patches
PowerPC: Require IBM long double for conversion test. The test c-c++-common/dfp/convert-bfp-11.c explicit expects long double to use the IBM 128-bit extended double format. In particular, some of the tests expect an infinity to be created if decimal values that are converted that are too large

[PATCH 2/3] PowerPC: require IBM long double for pr70117.

2020-11-20 Thread Michael Meissner via Gcc-patches
PowerPC: require IBM long double for pr70117. Since the test is explicitly checking for IBM extended double, do not try to run it when long double is IEEE 128-bit. I have tested this patch and the first patch in the series on a little endian power9 system with 3 compilers that have the 3

[PATCH 1/3] PowerPC: Add long double target-supports.

2020-11-20 Thread Michael Meissner via Gcc-patches
PowerPC: Add long double target-supports. This patch adds 3 target supports to test what type of PowerPC long double is used by the test: 1) Long double uses the IBM 128-bit extended double format; 2) Long double uses the IEEE 128-bit format; (and) 3) Long double uses the 64-bit

Re: [PATCH] PowerPC: Restrict long double test to use IBM long double.

2020-11-20 Thread Michael Meissner via Gcc-patches
On Wed, Nov 18, 2020 at 01:27:12PM -0600, Segher Boessenkool wrote: > Hi! > > On Sun, Nov 15, 2020 at 12:23:50PM -0500, Michael Meissner wrote: > > --- a/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c > > +++ b/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c > > @@ -1,4 +1,5 @@ > > /* {

Re: [PATCH] PowerPC Fix ibm128 defaults for pr70117.c test.

2020-11-20 Thread Michael Meissner via Gcc-patches
On Thu, Nov 19, 2020 at 08:03:02AM -0600, Segher Boessenkool wrote: > On Thu, Nov 19, 2020 at 03:08:05AM -0500, Michael Meissner wrote: > > On Wed, Nov 18, 2020 at 04:29:09PM -0600, Segher Boessenkool wrote: > > > Mike, please add a comment, what number it represents? Okay for trunk > > > with

[PATH 0/3] Updated PowerPC tests for long double

2020-11-20 Thread Michael Meissner via Gcc-patches
These 3 patches are the slight reworking of two separate patches for the library tests. The first patch that has been replaced is: Date: Sun, 15 Nov 2020 12:17:47 -0500 Subject: [PATCH] PowerPC Fix ibm128 defaults for pr70117.c test. Message-ID: <20201115171747.ga10...@ibm-toto.the-meissners.org>

[PATCH] Power10: Add missing IEEE 128-bit XSCMP* built-in mappings.

2020-11-20 Thread Michael Meissner via Gcc-patches
Power10: Add missing IEEE 128-bit XSCMP* built-in mappings. This patch is a simplification of earlier patches to fix the built-in functions that introduced new power10 IEEE 128-bit instructions. Some of the built-in functions were already handled, but the scalar_cmp_exp_qp_gt, etc. functions

[PATCH] PowerPC: Add float128/Decimal conversions

2020-11-19 Thread Michael Meissner via Gcc-patches
[PATCH] PowerPC: Add float128/Decimal conversions. I accidently posted this patch on an internal IBM mailing list instead of gcc-patches. This patch replaces the following two patches: September 24th, 2020: Message-ID: <20200924203545.gd31...@ibm-toto.the-meissners.org> October 22nd, 2020:

[PATCH] PowerPC: Set long double size for IBM/IEEE.

2020-11-19 Thread Michael Meissner via Gcc-patches
[PATCH] PowerPC: Set long double size for IBM/IEEE. I originally posted this patch to an internal IBM mailing list instead of gcc-patches. As I was working with compilers where the long double default was 64-bit, it became annoying to have to use two options to switch to one of the 128-bit long

[PATCH] PowerPC: Map IEEE 128-bit long double built-in functions

2020-11-19 Thread Michael Meissner via Gcc-patches
[PATCH] PowerPC: Map IEEE 128-bit long double built-in functions. I posted this patch by accident to an internal IBM mailing list instead of gcc-patches. This patch replaces patches previously submitted: September 24th, 2020: Message-ID: <20200924203159.ga31...@ibm-toto.the-meissners.org>

[PATCH] PowerPC: PR 97791: Fix gnu attributes.

2020-11-19 Thread Michael Meissner via Gcc-patches
[PATCH] PowerPC: PR 97791: Fix gnu attributes. Note, I originally posted this to an internal IBM mailing list, not to gcc-patches. Sorry about that. This patch does two things to fix setting gnu attribute #4 (long double status) 1) Only set gnu attribute #4 if long double was passed. Passing

[PATCH] PowerPC: PR libgcc/97543, fix 64-bit long double issues

2020-11-19 Thread Michael Meissner via Gcc-patches
PowerPC: PR libgcc/97543, fix 64-bit long double issues I meant to post this to the gcc-patches mailing list last Thursday, but I see I posted this to an internal IBM mailing list. This patch replaces the previous iterations of this patch: October 22nd, 2020: Message-ID:

Re: [PATCH] PowerPC: Restrict long double test to use IBM long double.

2020-11-19 Thread Michael Meissner via Gcc-patches
On Wed, Nov 18, 2020 at 01:27:12PM -0600, Segher Boessenkool wrote: > Hi! > > On Sun, Nov 15, 2020 at 12:23:50PM -0500, Michael Meissner wrote: > > --- a/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c > > +++ b/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c > > @@ -1,4 +1,5 @@ > > /* {

Re: [PATCH] PowerPC Fix ibm128 defaults for pr70117.c test.

2020-11-19 Thread Michael Meissner via Gcc-patches
On Wed, Nov 18, 2020 at 04:29:09PM -0600, Segher Boessenkool wrote: > On Wed, Nov 18, 2020 at 10:53:49PM +0100, Jakub Jelinek wrote: > > On Wed, Nov 18, 2020 at 03:43:20PM -0600, Segher Boessenkool wrote: > > > Hi! > > > > > > On Sun, Nov 15, 2020 at 12:17:47PM -0500, Michael Meissner wrote: > >

Re: [PATCH] PowerPC: Restrict long double test to use IBM long double.

2020-11-17 Thread Michael Meissner via Gcc-patches
On Tue, Nov 17, 2020 at 11:33:29PM -0600, will schmidt wrote: > On Sun, 2020-11-15 at 12:23 -0500, Michael Meissner via Gcc-patches wrote: > > PowerPC: Restrict long double test to use IBM long double. > > > > I posted this patch previously as a set of 3 testsuite patches.

Re: [PATCH] Include math.h in nextafter-2.c test.

2020-11-17 Thread Michael Meissner via Gcc-patches
On Tue, Nov 17, 2020 at 11:33:23PM -0600, will schmidt wrote: > On Sun, 2020-11-15 at 12:12 -0500, Michael Meissner via Gcc-patches wrote: > > Include math.h in nextafter-2.c test. > > > > I previously posted this with two other patches. I've separated this into > &g

[PATCH 2/2] Power10: Add IEEE 128-bit fp conditional move

2020-11-15 Thread Michael Meissner via Gcc-patches
Power10: Add IEEE 128-bit fp conditional move. This patch adds the support for power10 IEEE 128-bit floating point conditional move and for automatically generating min/max. Unlike the previous patch, I decided to keep two separate patterns for fpmask before splitting (one pattern for normal

[PATCH 1/2] Power10: Add IEEE 128-bit xsmaxcqp and xsmincqp support.

2020-11-15 Thread Michael Meissner via Gcc-patches
Power10: Add IEEE 128-bit xsmaxcqp and xsmincqp support. This patch adds the support for the IEEE 128-bit floating point C minimum and maximum instructions. The next patch will add the support for using the compare and set mask instruction to implement conditional moves. Originally, I tried to

[PATCH 0/2] Power10 IEEE 128-bit min, max, cmove

2020-11-15 Thread Michael Meissner via Gcc-patches
These two patches add support for the XSMAXCQP, XSMINCQP, XSCMP{EQ,GT,GE}QP instructions in the Power10. These instructions allow the compiler to generate minimum, maxmimum, and conditional move support for IEEE 128-bit floating point type. I have posted versions of these patches before, going

[PATCH] PowerPC: Restrict long double test to use IBM long double.

2020-11-15 Thread Michael Meissner via Gcc-patches
PowerPC: Restrict long double test to use IBM long double. I posted this patch previously as a set of 3 testsuite patches. I have separated them into separate patches. This patch marks the convert-bfp-11.c patch as needing IBM extended double. If you look at the code, it is specifically

[PATCH] PowerPC Fix ibm128 defaults for pr70117.c test.

2020-11-15 Thread Michael Meissner via Gcc-patches
>From 698d9fd8a5701fa4ed9690ddf71d57765921778c Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Sun, 15 Nov 2020 00:48:23 -0500 Subject: [PATCH] PowerPC Fix ibm128 defaults for pr70117.c test. This patch was previously posted as a combined patch with 2 other testsuite patches. I moved it

[PATCH] Include math.h in nextafter-2.c test.

2020-11-15 Thread Michael Meissner via Gcc-patches
Include math.h in nextafter-2.c test. I previously posted this with two other patches. I've separated this into its own patch. What happens is because the nextafter-2.c test uses -fno-builtin, and it does not include math.h, the wrong nextafterl and nextforwardl gets called when long double is

Re: PowerPC: Use __float128 instead of __ieee128 in tests.

2020-11-12 Thread Michael Meissner via Gcc-patches
On Thu, Nov 12, 2020 at 01:26:32PM -0600, Segher Boessenkool wrote: > Hi, > > On Thu, Oct 22, 2020 at 06:12:31PM -0400, Michael Meissner wrote: > > Two of the tests used the __ieee128 keyword instead of __float128. This > > patch changes those cases to use the official keyword. > > What is

Re: PowerPC: Add __float128 conversions to/from Decimal

2020-11-12 Thread Michael Meissner via Gcc-patches
On Thu, Oct 29, 2020 at 10:05:38PM +, Joseph Myers wrote: > On Thu, 29 Oct 2020, Segher Boessenkool wrote: > > > > Doing these conversions accurately is nontrivial. Converting via strings > > > is the simple approach (i.e. the one that moves the complexity somewhere > > > else). There are

Re: PowerPC: Update long double IEEE 128-bit tests.

2020-11-06 Thread Michael Meissner via Gcc-patches
On Mon, Nov 02, 2020 at 07:00:15PM -0600, Segher Boessenkool wrote: > Hi! > > On Thu, Oct 22, 2020 at 06:07:14PM -0400, Michael Meissner wrote: > > This patch fixes 3 tests in the testsuite that fail if long double is set > > to IEEE 128-bit. > > > * c-c++-common/dfp/convert-bfp-11.c: If

Re: PowerPC: Map IEEE 128-bit long double built-in functions

2020-11-04 Thread Michael Meissner via Gcc-patches
On Wed, Nov 04, 2020 at 06:13:57PM -0600, Segher Boessenkool wrote: > Hi! > > On Thu, Oct 22, 2020 at 06:03:46PM -0400, Michael Meissner wrote: > > To map the scanf functions, is mapped to __isoc99_ieee128. > > Is that correct? What if you are compiling for c90? That is the name in GLIBC. >

<    1   2   3   4   5   6   7   >