public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "guojiufu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/111971] New: ICE: maximum number of generated reload insns per insn achieved (90)
Date: Wed, 25 Oct 2023 02:35:37 +0000	[thread overview]
Message-ID: <bug-111971-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 111971
           Summary: ICE: maximum number of generated reload insns per insn
                    achieved (90)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: guojiufu at gcc dot gnu.org
  Target Milestone: ---

For the below code, an ICE occurs when built with "-m32 -O2".
```
void
foo (unsigned long long *a)
{
  register long long d asm ("r0") = 0x24;
  long long n;
  asm ("mr %0, %1" : "=r"(n) : "r"(d));
  *a++ = n;
}

```
---------------
    8 | }
      | ^
0x2000007c4ca3 __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x2000007c4f07 generic_start_main
        ../csu/libc-start.c:360
0x2000007c4f07 __libc_start_main_impl
        ../sysdeps/unix/sysv/linux/powerpc/libc-start.c:109
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions.

----------------

It is ok if it is "register long d asm ("r0") = 0x24;".

The 'd' is 'long long' DImode(64bits), but with -m32, "r0" is not 64bits
without -mpowerpc64.  So, it would say this code would be invalid in some
aspects.

             reply	other threads:[~2023-10-25  2:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-25  2:35 guojiufu at gcc dot gnu.org [this message]
2023-10-25  2:36 ` [Bug rtl-optimization/111971] " guojiufu at gcc dot gnu.org
2023-10-25  2:37 ` guojiufu at gcc dot gnu.org
2023-10-25  2:50 ` pinskia at gcc dot gnu.org
2023-10-25  2:51 ` pinskia at gcc dot gnu.org
2023-10-25  8:28 ` guojiufu at gcc dot gnu.org
2023-10-26 17:28 ` [Bug rtl-optimization/111971] [12/13/14 regression] ICE: maximum number of generated reload insns per insn achieved (90) since r12-6803-g85419ac59724b7 vmakarov at gcc dot gnu.org
2023-10-27 12:31 ` rguenth at gcc dot gnu.org
2023-10-31 15:45 ` cvs-commit at gcc dot gnu.org
2023-11-22  8:32 ` guojiufu 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-111971-4@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).