[Bug target/70117] ppc long double isinf() is wrong?

2016-04-11 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 Alan Modra changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/70117] ppc long double isinf() is wrong?

2016-04-11 Thread amodra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #19 from Alan Modra --- Author: amodra Date: Mon Apr 11 13:47:40 2016 New Revision: 234881 URL: https://gcc.gnu.org/viewcvs?rev=234881=gcc=rev Log: PR70117, ppc long double isinf gcc/ PR target/70117 * builtins.c

[Bug target/70117] ppc long double isinf() is wrong?

2016-04-11 Thread amodra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #18 from Alan Modra --- Author: amodra Date: Mon Apr 11 13:46:51 2016 New Revision: 234880 URL: https://gcc.gnu.org/viewcvs?rev=234880=gcc=rev Log: PR70117, ppc long double isinf gcc/ PR target/70117 * builtins.c

[Bug target/70117] ppc long double isinf() is wrong?

2016-04-07 Thread amodra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #17 from Alan Modra --- Author: amodra Date: Fri Apr 8 02:11:52 2016 New Revision: 234821 URL: https://gcc.gnu.org/viewcvs?rev=234821=gcc=rev Log: PR70117, ppc long double isinf gcc/ PR target/70117 * builtins.c

[Bug target/70117] ppc long double isinf() is wrong?

2016-04-07 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #16 from joseph at codesourcery dot com --- On Tue, 5 Apr 2016, amodra at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 > > --- Comment #14 from Alan Modra --- > > if (fmt == _extended_double) > > No,

[Bug target/70117] ppc long double isinf() is wrong?

2016-04-05 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #15 from Richard Biener --- (In reply to Alan Modra from comment #14) > > if (fmt == _extended_double) > > No, there is mips_extended_format too. As said above the best is to provide optabs for all three fns and optimal

[Bug target/70117] ppc long double isinf() is wrong?

2016-04-04 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #14 from Alan Modra --- > if (fmt == _extended_double) No, there is mips_extended_format too.

[Bug target/70117] ppc long double isinf() is wrong?

2016-04-04 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #13 from Michael Meissner --- In gcc/builtins.c it is probably better to use: const struct real_format *fmt = FLOAT_MODE_FORMAT (mode); if (fmt == _extended_double) { // ... }

[Bug target/70117] ppc long double isinf() is wrong?

2016-04-04 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 Alan Modra changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-15 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #12 from rguenther at suse dot de --- On Mon, 14 Mar 2016, joseph at codesourcery dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 > > --- Comment #11 from joseph at codesourcery dot com dot com> --- > On Mon,

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-14 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #11 from joseph at codesourcery dot com --- On Mon, 14 Mar 2016, rguenth at gcc dot gnu.org wrote: > but it will end up with libcalls for isinf, isfinite and isnormal for > IBM extended double. I'm told glibc does the right thing

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #10 from Richard Biener --- So, "simplest" patch: Index: gcc/builtins.c === --- gcc/builtins.c (revision 234180) +++ gcc/builtins.c (working copy) @@ -7529,6

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 Richard Biener changed: What|Removed |Added Target||powerpc*

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-14 Thread normand at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 Michel Normand changed: What|Removed |Added CC||normand at linux dot vnet.ibm.com ---

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-07 Thread uweigand at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #7 from Ulrich Weigand --- Ah, OK. I did't realize this value didn't fit into a 106-bit mantissa. I agree that it probably doesn't make sense to change the internal representation to allow larger mantissas. First of all, there's

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-07 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #6 from Alan Modra --- > Well, what I don't quite understand is that the gnulib value, which is > > 0x1.f7cp+1023 Sorry, I didn't look properly at the bug before commenting last night. For some reason I

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-07 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #5 from joseph at codesourcery dot com --- The issue is that GCC internally handles IBM long double as having a 106-bit mantissa. There is one value that is larger than can be represented with a 106-bit mantissa, while still being

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-07 Thread uweigand at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #4 from Ulrich Weigand --- (In reply to Alan Modra from comment #3) > > while with GCC, we get: > > > > high double: 7FEF > > low double: 7C8F FFFE > > Right. This is 0x1.f78p+1023

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-07 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 Alan Modra changed: What|Removed |Added CC||amodra at gmail dot com --- Comment #3

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-07 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 --- Comment #2 from rguenther at suse dot de --- On Mon, 7 Mar 2016, uweigand at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 > > Ulrich Weigand changed: > >What|Removed

[Bug target/70117] ppc long double isinf() is wrong?

2016-03-07 Thread uweigand at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70117 Ulrich Weigand changed: What|Removed |Added CC||amodra at gcc dot gnu.org,