public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/95907] New: ICE in unrecognizable insn
@ 2020-06-26 10:40 marxin at gcc dot gnu.org
  2020-06-26 10:41 ` [Bug target/95907] " marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-26 10:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95907
           Summary: ICE in unrecognizable insn
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: bergner at gcc dot gnu.org, segher at gcc dot gnu.org,
                    wschmidt at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux-gnu
            Target: powerpc64-linux-gnu

I see the following ICE:

$ cat x.cpp
int foobool_argc;
bool foobool() { return foobool_argc; }

$ ppc64-linux-gnu-g++ x.cpp -mpower10
x.cpp: In function ‘bool foobool()’:
x.cpp:2:39: error: unrecognizable insn:
    2 | bool foobool() { return foobool_argc; }
      |                                       ^
(insn 9 8 10 2 (set (reg:SI 122)
        (if_then_else:SI (eq (reg:CC 123)
                (const_int 0 [0]))
            (const_int 0 [0])
            (reg:SI 124))) "x.cpp":2:25 -1
     (nil))
during RTL pass: vregs
x.cpp:2:39: internal compiler error: in extract_insn, at recog.c:2294
0x5c7e83 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64/build/gcc/rtl-error.c:108
0x5c7e9f _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64/build/gcc/rtl-error.c:116
0x5c7340 extract_insn(rtx_insn*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64/build/gcc/recog.c:2294
0x95fabf instantiate_virtual_regs_in_insn
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64/build/gcc/function.c:1607
0x95fabf instantiate_virtual_regs
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64/build/gcc/function.c:1977
0x95fabf execute
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64/build/gcc/function.c:2026
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug target/95907] ICE in unrecognizable insn
  2020-06-26 10:40 [Bug target/95907] New: ICE in unrecognizable insn marxin at gcc dot gnu.org
@ 2020-06-26 10:41 ` marxin at gcc dot gnu.org
  2020-06-26 13:57 ` segher at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-26 10:41 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-06-26
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

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

* [Bug target/95907] ICE in unrecognizable insn
  2020-06-26 10:40 [Bug target/95907] New: ICE in unrecognizable insn marxin at gcc dot gnu.org
  2020-06-26 10:41 ` [Bug target/95907] " marxin at gcc dot gnu.org
@ 2020-06-26 13:57 ` segher at gcc dot gnu.org
  2020-07-24  1:19 ` [Bug target/95907] ICE in unrecognizable insn when using -mpower10 bergner at gcc dot gnu.org
  2020-07-25  0:24 ` segher at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: segher at gcc dot gnu.org @ 2020-06-26 13:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Confirmed (in C, with _Bool).

This is yet another case of enabling some insns but disabling many other
insns: our power10 support requires insns we enable on power9 and later
only (set[n]bc[r] is a special case of isel).

We should make it impossible for people to enable -mpower10 (without
doing -mcpu=power10) somehow.

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

* [Bug target/95907] ICE in unrecognizable insn when using -mpower10
  2020-06-26 10:40 [Bug target/95907] New: ICE in unrecognizable insn marxin at gcc dot gnu.org
  2020-06-26 10:41 ` [Bug target/95907] " marxin at gcc dot gnu.org
  2020-06-26 13:57 ` segher at gcc dot gnu.org
@ 2020-07-24  1:19 ` bergner at gcc dot gnu.org
  2020-07-25  0:24 ` segher at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: bergner at gcc dot gnu.org @ 2020-07-24  1:19 UTC (permalink / raw)
  To: gcc-bugs

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

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |bergner at gcc dot gnu.org
             Status|NEW                         |ASSIGNED
                URL|                            |https://gcc.gnu.org/piperma
                   |                            |il/gcc-patches/2020-July/55
                   |                            |0573.html

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

* [Bug target/95907] ICE in unrecognizable insn when using -mpower10
  2020-06-26 10:40 [Bug target/95907] New: ICE in unrecognizable insn marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-07-24  1:19 ` [Bug target/95907] ICE in unrecognizable insn when using -mpower10 bergner at gcc dot gnu.org
@ 2020-07-25  0:24 ` segher at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: segher at gcc dot gnu.org @ 2020-07-25  0:24 UTC (permalink / raw)
  To: gcc-bugs

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Whoops, forgot to mark it up...  Committed as
https://gcc.gnu.org/g:4e577910050d .  No backport planned.

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

end of thread, other threads:[~2020-07-25  0:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-26 10:40 [Bug target/95907] New: ICE in unrecognizable insn marxin at gcc dot gnu.org
2020-06-26 10:41 ` [Bug target/95907] " marxin at gcc dot gnu.org
2020-06-26 13:57 ` segher at gcc dot gnu.org
2020-07-24  1:19 ` [Bug target/95907] ICE in unrecognizable insn when using -mpower10 bergner at gcc dot gnu.org
2020-07-25  0:24 ` segher 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).