public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/112676] New: [14 regression] ICE in extract_insn, at recog.cc:2804
@ 2023-11-23  7:56 manuel.lauss at googlemail dot com
  2023-11-23  8:30 ` [Bug target/112676] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: manuel.lauss at googlemail dot com @ 2023-11-23  7:56 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112676
           Summary: [14 regression] ICE in extract_insn, at recog.cc:2804
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manuel.lauss at googlemail dot com
  Target Milestone: ---

Created attachment 56669
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56669&action=edit
compressed unreduced testcase

gcc version 14.0.0 20231123 (experimental)
9d912820d02c7396676e04c4c05f6a0fdd92ed85

This is very recent, on linux g9b6de136:

$ gcc -mno-avx -march=znver4 -O2 -c dcn32_fpu.i
/usr/src/linux.git/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/dcn32_fpu.c:
In function 'dcn32_internal_validate_bw':
/usr/src/linux.git/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/dcn32_fpu.c:2223:1:
error: unrecognizable insn:
 2223 | }
      | ^
(insn 1628 1627 1629 277 (set (reg:V16QI 1102)
        (xor:V16QI (reg:V16QI 1101)
            (mem:V16QI (reg:DI 1100) [0 MEM <char[1:16]> [(void *)stream_817 +
608B]+0 S16 A8])))
"/usr/src/linux.git/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/dcn32_fpu.c":1350:7
-1
     (nil))
during RTL pass: vregs
/usr/src/linux.git/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/dcn32_fpu.c:2223:1:
internal compiler error: in extract_insn, at recog.cc:2804


Omitting either "-march=znver4" or "-mno-avx" gets rid of it.

Thanks!
     Manuel

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

* [Bug target/112676] [14 regression] ICE in extract_insn, at recog.cc:2804
  2023-11-23  7:56 [Bug c/112676] New: [14 regression] ICE in extract_insn, at recog.cc:2804 manuel.lauss at googlemail dot com
@ 2023-11-23  8:30 ` rguenth at gcc dot gnu.org
  2023-11-23 13:01 ` manuel.lauss at googlemail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-23  8:30 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
   Target Milestone|---                         |14.0

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

* [Bug target/112676] [14 regression] ICE in extract_insn, at recog.cc:2804
  2023-11-23  7:56 [Bug c/112676] New: [14 regression] ICE in extract_insn, at recog.cc:2804 manuel.lauss at googlemail dot com
  2023-11-23  8:30 ` [Bug target/112676] " rguenth at gcc dot gnu.org
@ 2023-11-23 13:01 ` manuel.lauss at googlemail dot com
  2023-11-23 19:34 ` manuel.lauss at googlemail dot com
  2023-11-23 19:36 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: manuel.lauss at googlemail dot com @ 2023-11-23 13:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Manuel Lauss <manuel.lauss at googlemail dot com> ---
Created attachment 56671
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56671&action=edit
another testcase

Another testcase, one of a few from virtualbox:

g++ -O2 -march=znver4 -mtune=znver4 -mno-avx -c alt-sha1.i 
/tmp-ram/portage/app-emulation/virtualbox-7.0.12/work/VirtualBox-7.0.12/src/VBox/Runtime/common/checksum/alt-sha1.cpp:
In function 'bool RTSha1Check(const void*, size_t, const uint8_t*)':
/tmp-ram/portage/app-emulation/virtualbox-7.0.12/work/VirtualBox-7.0.12/src/VBox/Runtime/common/checksum/alt-sha1.cpp:533:1:
error: unrecognizable insn:
(insn 23 22 24 2 (set (reg:V16QI 109)
        (xor:V16QI (reg:V16QI 108)
            (mem/c:V16QI (reg:DI 107) [0 MEM <char[1:20]> [(void *)&Ctx +
328B]+0 S16 A64])))
"/tmp-ram/portage/app-emulation/virtualbox-7.0.12/work/VirtualBox-7.0.12/src/VBox/Runtime/common/checksum/alt-sha1.cpp":529:23
-1
     (nil))
during RTL pass: vregs
/tmp-ram/portage/app-emulation/virtualbox-7.0.12/work/VirtualBox-7.0.12/src/VBox/Runtime/common/checksum/alt-sha1.cpp:533:1:
internal compiler error: in extract_insn, at recog.cc:2804

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

* [Bug target/112676] [14 regression] ICE in extract_insn, at recog.cc:2804
  2023-11-23  7:56 [Bug c/112676] New: [14 regression] ICE in extract_insn, at recog.cc:2804 manuel.lauss at googlemail dot com
  2023-11-23  8:30 ` [Bug target/112676] " rguenth at gcc dot gnu.org
  2023-11-23 13:01 ` manuel.lauss at googlemail dot com
@ 2023-11-23 19:34 ` manuel.lauss at googlemail dot com
  2023-11-23 19:36 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: manuel.lauss at googlemail dot com @ 2023-11-23 19:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Manuel Lauss <manuel.lauss at googlemail dot com> ---
I think PR112681 is the same issue.

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

* [Bug target/112676] [14 regression] ICE in extract_insn, at recog.cc:2804
  2023-11-23  7:56 [Bug c/112676] New: [14 regression] ICE in extract_insn, at recog.cc:2804 manuel.lauss at googlemail dot com
                   ` (2 preceding siblings ...)
  2023-11-23 19:34 ` manuel.lauss at googlemail dot com
@ 2023-11-23 19:36 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-23 19:36 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 112681.

*** This bug has been marked as a duplicate of bug 112681 ***

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

end of thread, other threads:[~2023-11-23 19:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-23  7:56 [Bug c/112676] New: [14 regression] ICE in extract_insn, at recog.cc:2804 manuel.lauss at googlemail dot com
2023-11-23  8:30 ` [Bug target/112676] " rguenth at gcc dot gnu.org
2023-11-23 13:01 ` manuel.lauss at googlemail dot com
2023-11-23 19:34 ` manuel.lauss at googlemail dot com
2023-11-23 19:36 ` pinskia 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).