From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 851593858C29; Sat, 16 Dec 2023 18:43:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 851593858C29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702752217; bh=1o5vgFuZwbF74WrQpC+OCRxNojhB6XUmf8Ig8JRu8k8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=npbnr4si2WLQMInRCSvCDFQ/cn/SaGMJ3Sl9TmaNy5I+uwt3SEDC2YUFpO9m4gBro +JSvuuM0BjfwsV6XjGtCKrjaYt5tyeUV8lTe/4KiGjVnq2AjWQ8WzhngNXPLuv362K CrqvMBHWrH5HwSbpcC9AVAZzHCCtVeS9+YVvyXBI= From: "gkm at rivosinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/112758] [13/14 Regression] Inconsistent Bitwise AND Operation Result between int and long long int Date: Sat, 16 Dec 2023 18:43:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gkm at rivosinc dot com 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: 13.3 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112758 --- Comment #14 from Greg McGary --- I bisected to here for the commit that broke the non-Zbs case: https://github.com/gcc-mirror/gcc/commit/2e886eef7f2b5aadb00171af868f0895b6= 47c3a4 ... and here for Zbs case: https://github.com/gcc-mirror/gcc/commit/4e1e0d79ecbe8727cb69d4cd97b20c71ca= aefafc Note that the Zbs break happens with the commit that introduces Zbs handlin= g, i.e., it never worked with Zbs from the beginning. In the non-Zbs case, it was the introduction of the insn_and_split pattern = for single-insn materialization of negative constants that allows the combiner = to create the problematic insn.=