pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Lobotomize test for float -Inf ^ -2, at least for now.
Date: Tue, 16 Jun 2020 19:29:12 +0000
Message-ID: <E1jlHGi-0004oo-Vz@gemulon.postgresql.org> (raw)

Lobotomize test for float -Inf ^ -2, at least for now.

Per POSIX this case should produce +0, but buildfarm member fossa
(with icc (ICC) 19.0.5.281 20190815) is reporting -0.  icc has a
boatload of unsafe floating-point optimizations, with a corresponding
boatload of not-too-well-documented compiler switches, and it seems our
default use of "-mp1" isn't whacking it hard enough to keep it from
misoptimizing the stanza in dpow() that checks whether y is odd.
There's nothing wrong with that code (seeing that no other buildfarm
member has trouble with it), so I'm content to blame this on the
compiler.  But without access to the compiler I'm not going to guess at
what switches might be needed to fix it.  For now, tweak the test case
so it will accept either -0 or +0 as a correct answer.

Discussion: https://postgr.es/m/E1jkyFX-0005RR-1Q@gemulon.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3a990a1263560ef28707bc623e875e75ae42041c

Modified Files
--------------
src/test/regress/expected/float8.out | 10 ++++++----
src/test/regress/sql/float8.sql      |  4 +++-
2 files changed, 9 insertions(+), 5 deletions(-)



Message-ID: <E1jlHGi-0004oo-Vz@gemulon.postgresql.org>
Permalink:  ../E1jlHGi-0004oo-Vz@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jlHGi-0004oo-Vz@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Lobotomize test for float -Inf ^ -2, at least for now.
  In-Reply-To: <E1jlHGi-0004oo-Vz@gemulon.postgresql.org>
  References: <E1jlHGi-0004oo-Vz@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox