public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113484] New: Add support for _Float16 type on PowerPC
@ 2024-01-18 14:14 john_platts at hotmail dot com
2024-01-18 20:13 ` [Bug target/113484] " pinskia at gcc dot gnu.org
2024-01-18 21:08 ` jsm28 at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: john_platts at hotmail dot com @ 2024-01-18 14:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113484
Bug ID: 113484
Summary: Add support for _Float16 type on PowerPC
Product: gcc
Version: 12.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: john_platts at hotmail dot com
Target Milestone: ---
POWER9 has instructions for _Float16 to float, _Float16 to double, float to
_Float16, and double to _Float16 conversions, but the _Float16 type is not
currently supported on POWER9 platforms.
There are also currently no intrinsics available for the POWER9 _Float16 to
double (xscvhpdp) and double to _Float16 (xscvdphp) instructions on GCC.
GCC does have intrinsics for POWER9 _Float16 vector to float vector (xvcvhpsp)
and float vector to _Float16 vector (xvcvsphp) instructions, but the
vec_extract_fp32_from_shorth, vec_extract_fp32_from_shortl, and
vec_pack_to_short_fp32 intrinsics use __vector unsigned short to represent
_Float16 values.
Adding support for _Float16 on POWER9 would allow conversions between _Float64
and double to be done using casts instead of having to resort to inline
assembly.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/113484] Add support for _Float16 type on PowerPC
2024-01-18 14:14 [Bug target/113484] New: Add support for _Float16 type on PowerPC john_platts at hotmail dot com
@ 2024-01-18 20:13 ` pinskia at gcc dot gnu.org
2024-01-18 21:08 ` jsm28 at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-18 20:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113484
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/113484] Add support for _Float16 type on PowerPC
2024-01-18 14:14 [Bug target/113484] New: Add support for _Float16 type on PowerPC john_platts at hotmail dot com
2024-01-18 20:13 ` [Bug target/113484] " pinskia at gcc dot gnu.org
@ 2024-01-18 21:08 ` jsm28 at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2024-01-18 21:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113484
--- Comment #1 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
It would of course be necessary to define the ABI used for _Float16 (and
_Complex _Float16) argument passing and return (in each PowerPC ABI for which
we support use of this feature).
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-18 21:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-18 14:14 [Bug target/113484] New: Add support for _Float16 type on PowerPC john_platts at hotmail dot com
2024-01-18 20:13 ` [Bug target/113484] " pinskia at gcc dot gnu.org
2024-01-18 21:08 ` jsm28 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).