From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 326D23858020; Thu, 25 Mar 2021 16:26:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 326D23858020 From: "clyon at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99773] New: ARM v8.1-m MVE interaction with -mfloat-abi not clear Date: Thu, 25 Mar 2021 16:26:36 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: clyon at gcc dot gnu.org 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2021 16:26:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99773 Bug ID: 99773 Summary: ARM v8.1-m MVE interaction with -mfloat-abi not clear Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: clyon at gcc dot gnu.org Target Milestone: --- I noticed an unexpected linker error when compiling with -march=3Darmv8.1-m.main+mve -mfloat-abi=3Dhard -mcpu=3Dcortex-m55 -mthumb error: /tmp/ccQvvmcJ.o uses VFP register arguments, ./XXX.exe does not Using mve.fp instead of mve fixes that. However, I'm used to -mfloat-abi=3Dhard defining the eabi attribute: Tag_ABI_VFP_args: VFP registers Compiling =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D typedef int __attribute((vector_size(16))) v4si; float g(float x, float y) { x +=3D y; return x; } v4si f(v4si x, v4si y) { return x + y; } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D with -O2 -march=3Darmv8.1-m.main+mve -mfloat-abi=3Dhard generates for f: vadd.i32 q0, q0, q1 bx lr which uses the MVE registers for the parameters, but the object files does = not have the Tag_ABI_VFP_args: VFP registers attribute I would expect. It does have Tag_MVE_arch: MVE Integer only is that enough? Is the current behavior expected or is there a bug?=