From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 515123946A75; Fri, 7 Jun 2024 08:25:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 515123946A75 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717748723; bh=CPjRSM+QY0GUkd5KM/FKIsccJX5mR8dYHljZY7c7UW8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CFM915ZZtBRSnIcHgkJxDnYwEaC4DlHs394wPoeCDdT4qHrw6suwQQtYrM9yv6/H1 b9RQG21SquGuGqUadGdUxUcwATuz0gGcXfX1AojqevWW3B0wELphDpRf2OxrmvDlOp 2+P+SOf+Q9V+YdzTuXZjgX4NAcVwNlF3jJy7jO9s= From: "lis8215 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111376] missed optimization of one bit test on MIPS32r1 Date: Fri, 07 Jun 2024 08:25:20 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lis8215 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: syq at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D111376 --- Comment #8 from Siarhei Volkau --- Created attachment 58377 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58377&action=3Dedit condmove testcase Tested with current GCC master branch: - Work with -Os confirmed. - Condmove issue present in GCC 11 but not current master. Even for GCC 11 = it is very rare case, although found one relatively simple to reproduce: it is excerpt from Python 3.8.x, reduced as much as I can. Compilation flags tested: {-O2|-Os} -mips32 -DNDEBUG -mbranch-cost=3D{1|10} So, my opinion, the patch you propose is perfectly fine. Condmove issue seems not relevant anymore.=