public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/113533] New: [14 Regression] Code generation regression after change for pr111267
@ 2024-01-22  2:17 law at gcc dot gnu.org
  2024-01-22  2:23 ` [Bug rtl-optimization/113533] " pinskia at gcc dot gnu.org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: law at gcc dot gnu.org @ 2024-01-22  2:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113533

            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 after
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.

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2024-05-07  7:44 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-22  2:17 [Bug rtl-optimization/113533] New: [14 Regression] Code generation regression after change for pr111267 law at gcc dot gnu.org
2024-01-22  2:23 ` [Bug rtl-optimization/113533] " pinskia at gcc dot gnu.org
2024-01-22  2:32 ` olegendo at gcc dot gnu.org
2024-01-22  2:45 ` pinskia at gcc dot gnu.org
2024-01-22  2:46 ` pinskia at gcc dot gnu.org
2024-01-22  3:05 ` olegendo at gcc dot gnu.org
2024-01-22 15:15 ` roger at nextmovesoftware dot com
2024-01-22 16:12 ` olegendo at gcc dot gnu.org
2024-01-22 23:52 ` roger at nextmovesoftware dot com
2024-01-23  0:28 ` olegendo at gcc dot gnu.org
2024-01-23  1:22 ` roger at nextmovesoftware dot com
2024-01-23  3:27 ` olegendo at gcc dot gnu.org
2024-01-26 21:30 ` roger at nextmovesoftware dot com
2024-01-27  1:37 ` olegendo at gcc dot gnu.org
2024-01-27 11:20 ` roger at nextmovesoftware dot com
2024-01-28 14:39 ` olegendo at gcc dot gnu.org
2024-03-04  4:14 ` law at gcc dot gnu.org
2024-03-10  4:37 ` [Bug rtl-optimization/113533] " law at gcc dot gnu.org
2024-03-10  4:48 ` olegendo at gcc dot gnu.org
2024-05-07  7:44 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).