From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0F5543858C50; Mon, 22 Jan 2024 02:17:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F5543858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705889865; bh=aS2N9aGVFkz9pychr/uwbn9fI/LT/5UjSNIQL6uYu/E=; h=From:To:Subject:Date:From; b=oWFfwgGtW2WQFfZFZzLqM+RgNaR8e2qn3fq1tL5OE5XM2nCwH9s+atzPVYbxtH7Qi HhgcAZzKTUEmIeibJkeBNmC0V867b/DtHtp0p8a+scbWYXPx7e2Eg4MhrAddFHCaE3 dH19l85/P5NzXUpsaXFH+AZ07gTyoJELsJEtAGeQ= From: "law at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/113533] New: [14 Regression] Code generation regression after change for pr111267 Date: Mon, 22 Jan 2024 02:17:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: law 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 bug_severity priority component assigned_to reporter target_milestone 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=3D113533 Bug ID: 113533 Summary: [14 Regression] Code generation regression after change for pr111267 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: law at gcc dot gnu.org Target Milestone: --- sh3-linux-gnu or sh3eb-linux-gnu is showing a code generation regression af= ter the changes for pr111267. test_01 with -O1 shows the problem nicely: int test_01 (unsigned char* a) { /* 1x cmp/pz, 1x addc */ return a[0] + (a[0] < 128); } Before: test_01: mov.b @r4,r1 extu.b r1,r0 cmp/pz r1 mov #0,r1 rts addc r1,r0 After: test_01: mov.b @r4,r0 extu.b r0,r0 mov.b @r4,r1 cmp/pz r1 mov #0,r1 rts addc r1,r0 Note the extra memory load. I'm not actively working on this.=