public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jskumari at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/96017] Powerpc suboptimal register spill in likely path
Date: Fri, 24 Nov 2023 08:46:46 +0000	[thread overview]
Message-ID: <bug-96017-4-gSLH7Exc5h@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-96017-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #13 from Surya Kumari Jangala <jskumari at gcc dot gnu.org> ---
With the patch at
https://gcc.gnu.org/pipermail/gcc-patches/2023-October/631849.html, the
testcase gets shrink wrapped. This is the assembly produced:

        addis 2,12,.TOC.-.LCF0@ha
        addi 2,2,.TOC.-.LCF0@l
        lwz %r10,0(%r3)
        addis %r9,%r2,.LC0@toc@ha
        ld %r9,.LC0@toc@l(%r9)
        cmpwi %cr0,%r10,0
        lwz %r9,0(%r9)
        bne %cr0,.L11
        extsw %r3,%r9
        blr
.L11:
        mflr %r0
        std %r0,16(%r1)
        stdu %r1,-48(%r1)
        stw %r9,32(%r1)
        bl slowpath
        nop
        lwz %r9,32(%r1)
        addi %r1,%r1,48
        ld %r0,16(%r1)
        extsw %r3,%r9
        mtlr %r0
        blr

  parent reply	other threads:[~2023-11-24  8:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-01  9:57 [Bug target/96017] New: " npiggin at gmail dot com
2020-07-01 10:01 ` [Bug target/96017] " wschmidt at gcc dot gnu.org
2020-07-01 10:02 ` wschmidt at gcc dot gnu.org
2020-07-01 10:06 ` wschmidt at gcc dot gnu.org
2020-07-01 10:21 ` npiggin at gmail dot com
2020-07-01 14:00 ` bergner at gcc dot gnu.org
2020-07-01 23:58 ` segher at gcc dot gnu.org
2020-07-02  1:18 ` bergner at gcc dot gnu.org
2020-07-02  1:24 ` bergner at gcc dot gnu.org
2020-07-02  2:06 ` bergner at gcc dot gnu.org
2020-07-02  2:45 ` bergner at gcc dot gnu.org
2020-07-02 21:22 ` segher at gcc dot gnu.org
2020-07-02 21:24 ` segher at gcc dot gnu.org
2021-04-27 11:39 ` jakub at gcc dot gnu.org
2021-07-28  7:04 ` rguenth at gcc dot gnu.org
2023-11-24  8:46 ` jskumari at gcc dot gnu.org [this message]
2023-11-24  9:22 ` jskumari at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-96017-4-gSLH7Exc5h@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).