public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/65833] Attempting to convert 128 bit integers to 128 bit decimal floating-point results in an unresolved symbol
[not found] <bug-65833-4@http.gcc.gnu.org/bugzilla/>
@ 2015-04-22 9:25 ` mpolacek at gcc dot gnu.org
2023-11-06 18:16 ` jakub at gcc dot gnu.org
2023-11-09 8:15 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-04-22 9:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65833
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
Component|c |libgcc
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Looks like libbid is missing conversion functions for uint128 -> _Decimal128.
It is able to convert uint64 -> _Decimal128 though, for that .expand generates
__bid_floatunsditd.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcc/65833] Attempting to convert 128 bit integers to 128 bit decimal floating-point results in an unresolved symbol
[not found] <bug-65833-4@http.gcc.gnu.org/bugzilla/>
2015-04-22 9:25 ` [Bug libgcc/65833] Attempting to convert 128 bit integers to 128 bit decimal floating-point results in an unresolved symbol mpolacek at gcc dot gnu.org
@ 2023-11-06 18:16 ` jakub at gcc dot gnu.org
2023-11-09 8:15 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-11-06 18:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65833
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Last reconfirmed| |2023-11-06
Status|UNCONFIRMED |ASSIGNED
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 56517
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56517&action=edit
gcc14-pr65833.patch
Untested implementation (on top of _BitInt support, so for now x86_64 only,
but with the hope that other int128 targets will gain _BitInt support soon).
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcc/65833] Attempting to convert 128 bit integers to 128 bit decimal floating-point results in an unresolved symbol
[not found] <bug-65833-4@http.gcc.gnu.org/bugzilla/>
2015-04-22 9:25 ` [Bug libgcc/65833] Attempting to convert 128 bit integers to 128 bit decimal floating-point results in an unresolved symbol mpolacek at gcc dot gnu.org
2023-11-06 18:16 ` jakub at gcc dot gnu.org
@ 2023-11-09 8:15 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-09 8:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65833
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:f172b9d38db426d2b102c0f9c1fd58672acc6c9b
commit r14-5266-gf172b9d38db426d2b102c0f9c1fd58672acc6c9b
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu Nov 9 09:14:07 2023 +0100
libgcc: Add {unsigned ,}__int128 <-> _Decimal{32,64,128} conversion support
[PR65833]
The following patch adds the missing
{unsigned ,}__int128 <-> _Decimal{32,64,128}
conversion support into libgcc.a on top of the _BitInt support
(doing it without that would be larger amount of code and I hope all
the targets which support __int128 will eventually support _BitInt,
after all it is a required part of C23) and because it is in libgcc.a
only, it doesn't hurt that much if it is added for some architectures
only in GCC 15.
Initially I thought about doing this on the compiler side, but doing
it on the library side seems to be easier and more -Os friendly.
The tests currently require bitint effective target, that can be
removed when all the int128 targets support bitint.
2023-11-09 Jakub Jelinek <jakub@redhat.com>
PR libgcc/65833
libgcc/
* config/t-softfp (softfp_bid_list): Add
{U,}TItype <-> _Decimal{32,64,128} conversions.
* soft-fp/floattisd.c: New file.
* soft-fp/floattidd.c: New file.
* soft-fp/floattitd.c: New file.
* soft-fp/floatuntisd.c: New file.
* soft-fp/floatuntidd.c: New file.
* soft-fp/floatuntitd.c: New file.
* soft-fp/fixsdti.c: New file.
* soft-fp/fixddti.c: New file.
* soft-fp/fixtdti.c: New file.
* soft-fp/fixunssdti.c: New file.
* soft-fp/fixunsddti.c: New file.
* soft-fp/fixunstdti.c: New file.
gcc/testsuite/
* gcc.dg/dfp/int128-1.c: New test.
* gcc.dg/dfp/int128-2.c: New test.
* gcc.dg/dfp/int128-3.c: New test.
* gcc.dg/dfp/int128-4.c: New test.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-09 8:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-65833-4@http.gcc.gnu.org/bugzilla/>
2015-04-22 9:25 ` [Bug libgcc/65833] Attempting to convert 128 bit integers to 128 bit decimal floating-point results in an unresolved symbol mpolacek at gcc dot gnu.org
2023-11-06 18:16 ` jakub at gcc dot gnu.org
2023-11-09 8:15 ` cvs-commit at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).