public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/111971] New: ICE: maximum number of generated reload insns per insn achieved (90)
@ 2023-10-25  2:35 guojiufu at gcc dot gnu.org
  2023-10-25  2:36 ` [Bug rtl-optimization/111971] " guojiufu at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: guojiufu at gcc dot gnu.org @ 2023-10-25  2:35 UTC (permalink / raw)
  To: gcc-bugs

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.

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

end of thread, other threads:[~2023-11-22  8:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-25  2:35 [Bug rtl-optimization/111971] New: ICE: maximum number of generated reload insns per insn achieved (90) guojiufu at gcc dot gnu.org
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

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