From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD9E13857000; Tue, 25 Jun 2024 07:52:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD9E13857000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1719301931; bh=RRZl5YEO2kQAY5+w1KzQ2v2smPNa5rJhKiwiJplZjog=; h=From:To:Subject:Date:From; b=sabbdHFQYYlhKzB5YKap9DiR0KPI87Zc4d+jtANlKXvXg2qJaIK739yed6qq8LmrI Ls+anfusrJRKPXDY6ntOU6pMJACdt8jIfLopfo1g5s0+cBkFwwY/MwvpPqHLE/reC4 1N8E36pWy1SBvehwTLuC2nwqs7s7OheD0atMui1g= From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115631] New: [15 Regression] GCN: [-PASS:-]{+FAIL:+} c-c++-common/torture/builtin-arith-overflow-6.c -O2 execution test Date: Tue, 25 Jun 2024 07:52:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: tschwinge at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: 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=3D115631 Bug ID: 115631 Summary: [15 Regression] GCN: [-PASS:-]{+FAIL:+} c-c++-common/torture/builtin-arith-overflow-6.c -O2 execution test Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: testsuite-fail Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: tschwinge at gcc dot gnu.org CC: ams at gcc dot gnu.org, rsandifo at gcc dot gnu.org Target Milestone: --- Target: GCN With commit r15-1579-g792f97b44ffc5e6a967292b3747fd835e99396e7 "Add a late-combine pass [PR106594]", I see for GCN target testing (tested '-march=3Dgfx908') regress for both C, C++: @@ -191300,7 +191300,7 @@ PASS: c-c++-common/torture/builtin-arith-overflow-6.c -O0 (test for excess er PASS: c-c++-common/torture/builtin-arith-overflow-6.c -O0 execution = test UNSUPPORTED: c-c++-common/torture/builtin-arith-overflow-6.c -O1 PASS: c-c++-common/torture/builtin-arith-overflow-6.c -O2 (test for excess errors) [-PASS:-]{+FAIL:+} c-c++-common/torture/builtin-arith-overflow-6.c -O= 2=20 execution test UNSUPPORTED: c-c++-common/torture/builtin-arith-overflow-6.c -O3 -g UNSUPPORTED: c-c++-common/torture/builtin-arith-overflow-6.c -Os spawn -ignore SIGHUP [...]/build-gcc/gcc/gcn-run ./builtin-arith-overflow-6.exe GCN Kernel Aborted Kernel aborted FAIL: c-c++-common/torture/builtin-arith-overflow-6.c -O2 execution = test With '-fno-late-combine-instructions', it's back to PASS. The diff between good ('-fno-late-combine-instructions') vs. bad ('-flate-combine-instructions') of 'builtin-arith-overflow-6.s' as well as '-fdump-rtl-all' is big, so I'm not able to directly pinpoint one specific issue. I however do observe a number of instances as follows (good vs. bad): [...] s_mov_b64 exec, -1 [...] - s_mov_b32 s12, 0 - v_writelane_b32 v0, s12, 0 s_mov_b64 exec, 1 + v_mov_b32 v0, 0 flat_store_dword v[18:19], v0 [...] Might that "move across 'exec'" be in error?=