From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EC2003858D1E; Thu, 19 Oct 2023 22:12:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC2003858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697753550; bh=CxEvxiB36PcJPMSjpJupO64F9KkptIOIARbMFgtNOFU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=smBd8N8hcoNy3B1HFBf8YwsJRsWSw6K3OFwVz4j/ocfhkw6cUL0RX89DE/CNnLyYq ELII/Nll1zWSbHo2UYPpwGXepu+/7ux3waJmw/Qi+H13n31mHjQzOEnsaAckqjkqr+ 6tIwBoFDdwTBP/B2kXfr49KlKMaZXXQxJzyXRvzQ= From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111876] bf16 complex mul/div does not work when the target has +fp16 support or when -fexcess-precision=16 is supplied Date: Thu, 19 Oct 2023 22:12:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: link-failure, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: 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=3D111876 --- Comment #5 from Iain Sandoe --- for the record an __fp16 implementation works as expected; * when the target does not support +fp16, the code-gen promotes to float and does the multiply with __mulsc3 * when the target supports +fp16, the code-gen uses __mulhc3 (which is implemented in libgcc) * adding "+bf16" does not affect this. --- So the issue is that __bf16 works when there is no support for a 16b float, (because, like fp16, it gets promoted) - but fails when the target declares support for a different 16 float.=