Re: [PATCH 1/3] Add IEEE 128-bit min/max support on PowerPC.

2021-06-30 Thread Segher Boessenkool
On Mon, Jun 28, 2021 at 03:00:02PM -0400, Michael Meissner wrote: > On Wed, Jun 23, 2021 at 06:56:37PM -0500, Segher Boessenkool wrote: > > > The problem area is a power10 running in > > > big endian mode and running 32-bit code. Because we don't have TImode, we > > > can't enable the IEEE 128-bit

Re: [PATCH 1/3] Add IEEE 128-bit min/max support on PowerPC.

2021-06-28 Thread Michael Meissner via Gcc-patches
On Wed, Jun 23, 2021 at 06:56:37PM -0500, Segher Boessenkool wrote: > Hi! > > On Thu, Jun 17, 2021 at 03:18:48PM -0400, Michael Meissner wrote: > > > The actual insns only check TARGET_POWER10 (so no TARGET_FLOAT128_HW). > > > Which is right, this or that? > > > > It should include TARGET_FLOAT12

Re: [PATCH 1/3] Add IEEE 128-bit min/max support on PowerPC.

2021-06-23 Thread Segher Boessenkool
Hi! On Thu, Jun 17, 2021 at 03:18:48PM -0400, Michael Meissner wrote: > > The actual insns only check TARGET_POWER10 (so no TARGET_FLOAT128_HW). > > Which is right, this or that? > > It should include TARGET_FLOAT128_HW. Okay, so fix that :-) > The problem area is a power10 running in > big end

Re: [PATCH 1/3] Add IEEE 128-bit min/max support on PowerPC.

2021-06-17 Thread Michael Meissner via Gcc-patches
On Thu, Jun 17, 2021 at 12:39:04PM -0500, Segher Boessenkool wrote: > On Tue, Jun 08, 2021 at 08:21:25PM -0400, Michael Meissner wrote: > > GCC will not convert ternary operations into using min/max instructions > > provided in this patch unless the user uses -Ofast or similar switches due > > to

Re: [PATCH 1/3] Add IEEE 128-bit min/max support on PowerPC.

2021-06-17 Thread Segher Boessenkool
On Tue, Jun 08, 2021 at 08:21:25PM -0400, Michael Meissner wrote: > GCC will not convert ternary operations into using min/max instructions > provided in this patch unless the user uses -Ofast or similar switches due to > issues with NaNs. It will not do it because it is *incorrect* to do :-) (Th

Ping: [PATCH 1/3] Add IEEE 128-bit min/max support on PowerPC.

2021-06-16 Thread Michael Meissner via Gcc-patches
Ping patch. In particular, we would like to get this into the GCC 11.2 backport as it is power10 enablement. | Date: Tue, 8 Jun 2021 20:21:25 -0400 | Subject: [PATCH 1/3] Add IEEE 128-bit min/max support on PowerPC. | Message-ID: <20210609002125.ga18...@ibm-toto.the-meissners.org> -- M

[PATCH 1/3] Add IEEE 128-bit min/max support on PowerPC.

2021-06-08 Thread Michael Meissner via Gcc-patches
[PATCH 1/3] Add IEEE 128-bit min/max support on PowerPC. 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. This patch does not try