From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C61ED3857C5E; Wed, 3 Feb 2021 15:30:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C61ED3857C5E From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/98931] [11 Regression] arm: Assembly fails with "branch out of range or not a multiple of 2" since r11-2012 Date: Wed, 03 Feb 2021 15:30:49 +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: 11.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: akrl at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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 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: Wed, 03 Feb 2021 15:30:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98931 --- Comment #7 from Jakub Jelinek --- I don't think one can use get_attr_length until very late, at least definit= ely not reliably, distances can shrink or grow a lot by other passes. Is there some reason why the doloop_end insn pattern can't do what other conditional jumps do, in particular have the length attribute on themselves determine if they can use a short or long form and in the long form do unconditional branches in addition to the conditional ones? I guess one can't invert this insn, so if it is out of bounds, one would probably need to le 1f; b 2f; 1: b lab; 2: or so instead of le lab if lab is too far. Walking all insns in between (especially when you don't give up when you re= ach the limit) can increase compile time complexity on some functions too.=