public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/115142] New: [14/15 Regression] Unrecognizable insn in extract_insn, at recog.cc:2812 with -ftree-ter
@ 2024-05-17 17:55 patrick at rivosinc dot com
  2024-05-17 18:04 ` [Bug target/115142] " ewlu at rivosinc dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: patrick at rivosinc dot com @ 2024-05-17 17:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115142
           Summary: [14/15 Regression] Unrecognizable insn in
                    extract_insn, at recog.cc:2812 with -ftree-ter
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick at rivosinc dot com
  Target Milestone: ---

Testcase:
long a;
char b;
void e() {
  char f[8][1];
  b = f[a][a];
}

Backtrace:
> /scratch/tc-testing/tc-apr-4/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc -ftree-ter red.c
red.c: In function 'e':
red.c:6:1: error: unrecognizable insn:
    6 | }
      | ^
(insn 6 5 7 2 (set (reg:DI 138)
        (ashift:DI (mem/c:DI (symbol_ref:DI ("a") [flags 0x6] <var_decl
0x75ae5321cb40 a>) [1 a+0 S8 A64])
            (const_int 1 [0x1]))) "red.c":5:11 -1
     (nil))
during RTL pass: vregs
red.c:6:1: internal compiler error: in extract_insn, at recog.cc:2812
0xa97591 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../../gcc/gcc/rtl-error.cc:108
0xa975b3 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../../gcc/gcc/rtl-error.cc:116
0xa95e87 extract_insn(rtx_insn*)
        ../../../gcc/gcc/recog.cc:2812
0xf5e21e instantiate_virtual_regs_in_insn
        ../../../gcc/gcc/function.cc:1611
0xf5e21e instantiate_virtual_regs
        ../../../gcc/gcc/function.cc:1994
0xf5e21e execute
        ../../../gcc/gcc/function.cc:2041
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Godbolt: https://godbolt.org/z/ab7eh3o3E

Affects RISC-V, Loongarch64

Found via fuzzer.

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

end of thread, other threads:[~2024-05-21 13:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-17 17:55 [Bug target/115142] New: [14/15 Regression] Unrecognizable insn in extract_insn, at recog.cc:2812 with -ftree-ter patrick at rivosinc dot com
2024-05-17 18:04 ` [Bug target/115142] " ewlu at rivosinc dot com
2024-05-18 14:23 ` law at gcc dot gnu.org
2024-05-18 21:30 ` law at gcc dot gnu.org
2024-05-18 21:30 ` law at gcc dot gnu.org
2024-05-19 15:57 ` cvs-commit at gcc dot gnu.org
2024-05-21  6:31 ` [Bug target/115142] [14 " rguenth at gcc dot gnu.org
2024-05-21 13:24 ` law 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).