From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CE5823853C2F; Mon, 2 Aug 2021 10:48:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE5823853C2F From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/101723] New: arm: incorrect order of .fpu and .arch_extension directives leads to unsupported instructions Date: Mon, 02 Aug 2021 10:48:17 +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: rearnsha 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: Mon, 02 Aug 2021 10:48:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101723 Bug ID: 101723 Summary: arm: incorrect order of .fpu and .arch_extension directives leads to unsupported instructions Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: rearnsha at gcc dot gnu.org Target Milestone: --- This bug was originally reported against GNU binutils (https://sourceware.org/bugzilla/show_bug.cgi?id=3D28078), but is really a problem with the way GCC emits the directives .fpu and .arch_extension. Alok Parlikar 2021-07-12 04:50:04 UTC I was trying to build tensorflow-lite v2.5 with a custom toolchain that was using binutils 2.36.1. The build failed when building the xnnpack project w= ith an error: /tmp/ccMSJOfk.s:380: Error: selected processor does not support `vsdot.s8 q12,q9,d11[0]' in ARM mode Some of my notes about this issue are here: https://github.com/google/XNNPACK/issues/1465#issuecomment-877910701 Following is a minimal example to reproduce this: // file: test.c #include int32x2_t test(int32x2_t a, int8x8_t b, int8x8_t c) { return vdot_lane_s32(a, b, c, 1); } // EOF=