public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/114247] RISC-V: miscompile at -O3 and IPA SRA
Date: Tue, 05 Mar 2024 23:29:09 +0000	[thread overview]
Message-ID: <bug-114247-4-TyWpOrrP3H@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-114247-4@http.gcc.gnu.org/bugzilla/>

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |ABI
   Last reconfirmed|                            |2024-03-05
          Component|target                      |ipa
     Ever confirmed|0                           |1
            Summary|RISC-V: miscompile at -O3   |RISC-V: miscompile at -O3
                   |                            |and IPA SRA

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think this is an IPA SRA issue.

The IR looks like:
  j.constprop.isra (65535);

That is wrong for signed short ...


If I try manually I get:
  j12 (-1);


```
void j.constprop.isra (short int ISRA.10)
{
...
}
```


IS there another target where the upper bits of the register are defined?

  reply	other threads:[~2024-03-05 23:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-05 22:12 [Bug target/114247] New: RISC-V: miscompile at -O3 patrick at rivosinc dot com
2024-03-05 23:29 ` pinskia at gcc dot gnu.org [this message]
2024-03-06  8:00 ` [Bug ipa/114247] RISC-V: miscompile at -O3 and IPA SRA rguenth at gcc dot gnu.org
2024-04-03 15:33 ` jamborm at gcc dot gnu.org
2024-04-04 12:12 ` jamborm at gcc dot gnu.org
2024-04-04 12:14 ` rdapp at gcc dot gnu.org
2024-04-04 13:04 ` rdapp at gcc dot gnu.org
2024-04-04 21:39 ` jamborm at gcc dot gnu.org
2024-04-04 21:44 ` patrick at rivosinc dot com
2024-04-05 16:26 ` jamborm at gcc dot gnu.org
2024-05-15 13:46 ` cvs-commit at gcc dot gnu.org
2024-05-15 13:47 ` jamborm 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-114247-4-TyWpOrrP3H@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).