From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB0B63858C62; Thu, 18 Jan 2024 14:14:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB0B63858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705587293; bh=GcFVmSeaQFEUrAuc6u8nUMxxjbJxEJXcRN/KD9iJ0oc=; h=From:To:Subject:Date:From; b=QSi/bl5mLQT3BviWJh7VXhz6tFiyU9pkGlbko2QJvsti4Imor8V2MrlDbRFb01f0I Qr0agcLrujYBpMDgIMOJb2TgZo99FvnxDVuvZMPFmFbePsj7irtuDOaz9SEoGVZwBS j3X5PSPZDIfP1NFBGMEGbxcD8+VQuQu3UAs+Ial4= From: "john_platts at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113484] New: Add support for _Float16 type on PowerPC Date: Thu, 18 Jan 2024 14:14:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: john_platts at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113484 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 (xvcvhp= sp) 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 _Floa= t64 and double to be done using casts instead of having to resort to inline assembly.=