From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 586FC383F972; Thu, 24 Nov 2022 13:13:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 586FC383F972 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669295633; bh=/THdmFgIuGdHZm51xaQc+NYZ5XsZQyPG21GmPtpetmg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=d4mb+M5sYlqL/L5PDImFiVWHbIUnWLxU0Njzq7UjC5JVlKnRzUlIDGvnBhSvFnhlp tsdKIOJrla8zNKq0JYlhiTYtrp3PgzqDZjBd2gcb9hInWRQhLmsy/Tg/PZwxuWmaaS NAOc6yhzeSYLr5ze4wmVEQulOXkEpcG/WYFbpX0k= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106609] [12/13 Regression] sh3eb-elf cross compiler is being miscompiled since r12-1525-g3155d51bfd1de8b6c4645 Date: Thu, 24 Nov 2022 13:13: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: 12.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: blocker X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on bug_status cc everconfirmed 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106609 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-11-24 Status|UNCONFIRMED |NEW CC| |jakub at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #13 from Jakub Jelinek --- (In reply to Mikael Pettersson from comment #12) > I tried compiling the gcc-13 cross compiler using the broken gcc-12 host > compiler and -mtune-ctrl=3D^use_bt but that didn't help. >=20 > I then tried rebuilding the broken gcc-12 host compiler with the new > splitters disabled, one by one. Disabling the "*bt_setcqi" one did > unbreak the gcc-13 cross-compiler: >=20 > diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md > index 48532eb7ddf..0780ba992f3 100644 > --- a/gcc/config/i386/i386.md > +++ b/gcc/config/i386/i386.md > @@ -12830,7 +12830,7 @@ > (const_int 1) > (zero_extend:SI (match_operand:QI 2 "register_operand")))) > (clobber (reg:CC FLAGS_REG))] > - "TARGET_USE_BT && ix86_pre_reload_split ()" > + "0 && TARGET_USE_BT && ix86_pre_reload_split ()" > "#" > "&& 1" > [(set (reg:CCC FLAGS_REG) Ok, reproduced with last night's gcc trunk as the x86_64-linux system compi= ler (with/without the above patch) and r12-8924-ga6b1f6126de5e4 as 12 branch for the cross-compiler. The difference appears first in the sh_treg_combine2 dump -not a condition store -other set found - aborting trace +inverted condition store +tracing ccreg +set of ccreg not found + +cbranch trace summary: etc. And bisection points to insn-preds.o.=