From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8BFBA3858C56; Sat, 6 Aug 2022 08:14:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8BFBA3858C56 From: "paul.hua.gm at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94920] Failure to optimize abs pattern from arithmetic with selected operands based on comparisons with 0 Date: Sat, 06 Aug 2022 08:14:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: paul.hua.gm at gmail 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: Sat, 06 Aug 2022 08:14:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94920 Paul Hua changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paul.hua.gm at gmail dot c= om --- Comment #5 from Paul Hua --- (In reply to CVS Commits from comment #3) > The master branch has been updated by Jakub Jelinek : >=20 > https://gcc.gnu.org/g:0bc1566dec0cab9410723c96d2ef3280fdab8e8e >=20 > commit r13-1854-g0bc1566dec0cab9410723c96d2ef3280fdab8e8e > Author: Jakub Jelinek > Date: Wed Jul 27 12:02:12 2022 +0200 >=20 > testsuite: Add -Wno-psabi to pr94920 tests [PR94920] >=20=20=20=20=20 > These tests fail on ia32, because we get -Wpsabi warnings. > Fixed by adding -Wno-psabi. The pr94920.C test still fails the > ABS_EXPR scan-tree-dump though, I think we'll need to add vect > options and use vect_int effective target or something similar. Yes, we should do. This also fails the ABS_EXPR scan-tree-dump on LoongArch. >=20=20=20=20=20 > 2022-07-27 Jakub Jelinek >=20=20=20=20=20 > PR tree-optimization/94920 > * g++.dg/pr94920.C: Add -Wno-psabi to dg-options. > * g++.dg/pr94920-1.C: Add dg-additional-options -Wno-psabi.=