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

            Bug ID: 122598
           Summary: [16 Regression] ICE: expand_insn, at optabs.cc:8293
                    with -mavx512f -mgfni
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -mavx512f -mgfni testcase.c 
during RTL pass: expand
testcase.c: In function 'foo':
testcase.c:9:10: internal compiler error: in expand_insn, at optabs.cc:8293
    9 |   return v;
      |          ^
0x2e3d30f internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xe82c37 fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostics/context.cc:1806
0x874f61 expand_insn(insn_code, unsigned int, expand_operand*)
        /repo/gcc-trunk/gcc/optabs.cc:8293
0x876c41 expand_insn(insn_code, unsigned int, expand_operand*)
        /repo/gcc-trunk/gcc/optabs.cc:8264
0x134d912 expand_fn_using_insn
        /repo/gcc-trunk/gcc/internal-fn.cc:319
0x11c39f7 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /repo/gcc-trunk/gcc/expr.cc:11540
0x106fd8f expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier)
        /repo/gcc-trunk/gcc/expr.h:323
0x106fd8f expand_return
        /repo/gcc-trunk/gcc/cfgexpand.cc:4164
0x106fd8f expand_gimple_stmt_1
        /repo/gcc-trunk/gcc/cfgexpand.cc:4273
0x106fd8f expand_gimple_stmt
        /repo/gcc-trunk/gcc/cfgexpand.cc:4382
0x10713a7 expand_gimple_basic_block
        /repo/gcc-trunk/gcc/cfgexpand.cc:6501
0x1073807 execute
        /repo/gcc-trunk/gcc/cfgexpand.cc:7248
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.

Reply via email to