public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109140] New: ICE when building qemu (qemu-user, MIPS component) on sparc64-unknown-linux-gnu with -march=niagara4
@ 2023-03-15  9:43 sam at gentoo dot org
  2023-03-15  9:43 ` [Bug target/109140] " sam at gentoo dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2023-03-15  9:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109140
           Summary: ICE when building qemu (qemu-user, MIPS component) on
                    sparc64-unknown-linux-gnu with -march=niagara4
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sam at gentoo dot org
  Target Milestone: ---
              Host: sparc64-unknown-linux-gnu
            Target: sparc64-unknown-linux-gnu
             Build: sparc64-unknown-linux-gnu

Hit when building QEMU 7.2.0's qemu-user component for mips on sparc64. This
one is reproducible with cross.

It needs -O2 -mcpu=niagara4 at least and -O2 -march=ultrasparc is fine.

```
$ sparc64-unknown-linux-gnu-gcc target_mips_tcg_lmmi_helper.c.i -O2
-mcpu=niagara4 -c
../target/mips/tcg/lmmi_helper.c: In function ‘helper_pcmpgtb’:
../target/mips/tcg/lmmi_helper.c:554:1: error: unrecognizable insn:
(insn 9 8 10 2 (set (reg:DI 118)
        (unspec:DI [
                (ltu:V8QI (subreg:V8QI (reg/v:DI 115 [ ft ]) 0)
                    (subreg:V8QI (reg/v:DI 114 [ fs ]) 0))
            ] UNSPEC_FUCMP)) "../target/mips/tcg/lmmi_helper.c":551:18 -1
     (nil))
during RTL pass: vregs
../target/mips/tcg/lmmi_helper.c:554:1: internal compiler error: in
extract_insn, at recog.cc:2791
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.gentoo.org/> for instructions.

$ sparc64-unknown-linux-gnu-gcc --version
sparc64-unknown-linux-gnu-gcc (Gentoo Hardened 12.2.1_p20230304 p13) 12.2.1
20230304
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
```

Attached the preprocessed source, not yet reduced or bisected, but I'll be
doing both later.

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

end of thread, other threads:[~2023-03-28  8:50 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15  9:43 [Bug target/109140] New: ICE when building qemu (qemu-user, MIPS component) on sparc64-unknown-linux-gnu with -march=niagara4 sam at gentoo dot org
2023-03-15  9:43 ` [Bug target/109140] " sam at gentoo dot org
2023-03-15  9:45 ` sam at gentoo dot org
2023-03-15  9:47 ` sam at gentoo dot org
2023-03-15 10:16 ` [Bug target/109140] ICE (during RTL pass: internal compiler error: in extract_insn, at recog.cc:2791) when building qemu " sam at gentoo dot org
2023-03-15 15:49 ` mikpelinux at gmail dot com
2023-03-15 15:58 ` mikpelinux at gmail dot com
2023-03-15 17:32 ` mikpelinux at gmail dot com
2023-03-15 17:58 ` pinskia at gcc dot gnu.org
2023-03-15 19:03 ` mikpelinux at gmail dot com
2023-03-16 17:15 ` mikpelinux at gmail dot com
2023-03-16 18:27 ` sam at gentoo dot org
2023-03-27  9:48 ` [Bug target/109140] internal error on array element comparison in loop with -O2 -mvis3 ebotcazou at gcc dot gnu.org
2023-03-27  9:49 ` ebotcazou at gcc dot gnu.org
2023-03-28  8:01 ` [Bug target/109140] [12/13 regression] " ebotcazou at gcc dot gnu.org
2023-03-28  8:42 ` cvs-commit at gcc dot gnu.org
2023-03-28  8:46 ` cvs-commit at gcc dot gnu.org
2023-03-28  8:48 ` cvs-commit at gcc dot gnu.org
2023-03-28  8:50 ` ebotcazou 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).