From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C55D3858D26; Thu, 3 Nov 2022 09:27:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C55D3858D26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667467678; bh=nRN1wC57VzyDNxvgPSnuxww16vB9epD9cFrL+bFntOU=; h=From:To:Subject:Date:From; b=iV6PKJG9Du+lj+bow2u2gvNk8UsksV5fyvzhxZ2aWMH1IoD2vmgppuWeVuPQ1yg1x K3IzrBNWraxe0WThGG1KNcOAdo9B56dD+hEITKamsijXfJBP/eAaLdE1MEQbEyUlxs B5au/oEqwZ6dQ6RbxnronzmtsFCytQsypvZbCTpw= From: "kevin.bracey at alifsemi dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107515] New: MVE: Generic functions do not accept _Float16 scalars Date: Thu, 03 Nov 2022 09:27:56 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kevin.bracey at alifsemi 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=3D107515 Bug ID: 107515 Summary: MVE: Generic functions do not accept _Float16 scalars Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kevin.bracey at alifsemi dot com Target Milestone: --- Compiling C code, generic functions taking floating point scalars in arm_mv= e.h do not accept `_Float16` values. // Using gcc -mcpu=3Dcortex-m55 -O2 // Uploaded at https://godbolt.org/z/7jrqWWroY #include void test(void) { float16x8_t x; x =3D vmulq(x, 0.5); // ok x =3D vmulq(x, 0.5f); // ok x =3D vmulq(x, (__fp16) 0.5); // ok x =3D vmulq(x, 0.15f16); // rejected x =3D vmulq(x, (_Float16) 0.15); // rejected } Output: :10:9: error: '_Generic' selector of type 'int (*)[4][39]' is not compatible with any association 10 | x =3D vmulq(x, 0.15f16); // rejected | ^~~~~ :11:9: error: '_Generic' selector of type 'int (*)[4][39]' is not compatible with any association 11 | x =3D vmulq(x, (_Float16) 0.15); // rejected | ^~~~~=