From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B9A6E384640F; Thu, 2 Jul 2020 17:16:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9A6E384640F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593710217; bh=wM5Yaws5rqpESEU4OuOWNLgdeb0YnLfmsw0V5ksXXUI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IqpTXakTXDALZGPL3kz1Wi48DFtaYIPkxoAF+bfJ+QF7mtHO6bOIr9uKyYoMAUEuJ rF/8NSO9QbAJlMDgjot2qDEyPd2mNWGLSwgSEqYPBbaBT095vlRIu0MBKPgEIceGK9 gc8c4pjClVy2+JF8FzWQ5tcZKDPr3iJW1VfDXsEw= From: "slyfox at inbox dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96015] [10/11 Regression] gcc-10.1.0 miscompiles Python on hppa Date: Thu, 02 Jul 2020 17:16:57 +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: 10.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at inbox dot ru X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.2 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: Thu, 02 Jul 2020 17:16:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96015 --- Comment #21 from Sergei Trofimovich --- (In reply to Eric Botcazou from comment #18) > If the control flow goes through .L12: >=20 > .L12: > b .L3 ; return 0; (not interesting, fall through) > ldi 1,%r28 >=20 > the return value will be 1 since ldi is in the delay slot of the branch. >=20 > What happens if you compile with -O2 -fno-delayed-branch instead? Oh, -fno-delayed-branch makes test magically pass! Attaching both bad.S and good.S for comparison.=