This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/77265] Casting an extended precision long double "inf" to __float128 results in "nan"
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 Aug 2016 12:54:02 +0000
- Subject: [Bug libgcc/77265] Casting an extended precision long double "inf" to __float128 results in "nan"
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-77265-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77265
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-08-16
Component|c |libgcc
Ever confirmed|0 |1
--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
__extendxftf does not convert (clear) explicit lead bit to an implicit.
extended-precision does not utilize implicit/hidden bit.
So, 0x7fff80..0 that represents extended-precision infinity gets converted
directly to 0x7fff80....0 that represents quad-precision NaN.
Confirmed, soft-fp should be fixed.