From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 40D15395A034; Wed, 16 Nov 2022 12:56:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 40D15395A034 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668603365; bh=u1jcLeev60npSE2EPYxWL22xLO+rh4SadwNbLSCm6o4=; h=From:To:Subject:Date:From; b=GWLMeBmSHBQO2XLvATlEP7vZKlryW16ag7k8Ph3tLx0GAAnzrwmi7kPnJZtYzOVZU FLDj6cz12EYTWmD8Qxh5idoGSIjrOIIIMR0wKjqj4T23z/vLkJ6LcOEm791nMWBdgk xfBDpkBzvlnKl9OayZ9EmhZTJkS/lhXbXgG/dkY8= From: "kevin.bracey at alifsemi dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107714] New: MVE: Invalid addressing mode generated for VLD2 Date: Wed, 16 Nov 2022 12:56:04 +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.2.0 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 attachments.created 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=3D107714 Bug ID: 107714 Summary: MVE: Invalid addressing mode generated for VLD2 Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kevin.bracey at alifsemi dot com Target Milestone: --- Created attachment 53909 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53909&action=3Dedit Stripped-down reproducer source While I was working on some Helium intrinsics, GCC produced some invalid co= de, meaning my optimisation can only be enabled in our armclang builds. Problem seems to be still present on GCC trunk. Posted at https://godbolt.org/z/h3EhMvxao Compilation options -O2 -mcpu=3Dcortex-m55 -mfloat-abi=3Dhard Error: instruction does not accept this addressing mode -- `vld21.8 {q4,q5},[r3],r2' Compiler Explorer output for trunk shows the same invalid addressing mode. (It also shows non-existent registers q8 and up in use - I don't know why. = Not a problem in my local GCC, obtained from Arm's embedded distribution).=