https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103136
Bug ID: 103136
Summary: [12 Regression] ICE in maybe_gen_insn, at
optabs.c:7871
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Changed between 20211031 and 20211107,
with gfortran.dg/pr98974.F90 and -mavx -O3 (or -Ofast) :
$ gfortran-12-20211107 -c pr98974.F90 -mavx -O2
$ gfortran-12-20211107 -c pr98974.F90 -mavx -O3
during RTL pass: expand
pr98974.F90:15:32:
15 | bar(i,k,1) = 0
| ^
internal compiler error: in maybe_gen_insn, at optabs.c:7871
0xc3a2ce maybe_gen_insn(insn_code, unsigned int, expand_operand*)
../../gcc/optabs.c:7871
0xc39978 maybe_expand_insn(insn_code, unsigned int, expand_operand*)
../../gcc/optabs.c:7915
0xc39978 expand_insn(insn_code, unsigned int, expand_operand*)
../../gcc/optabs.c:7946
0xaf77bd expand_partial_store_optab_fn
../../gcc/internal-fn.c:2773
0x918b07 expand_call_stmt
../../gcc/cfgexpand.c:2749
0x918b07 expand_gimple_stmt_1
../../gcc/cfgexpand.c:3876
0x918b07 expand_gimple_stmt
../../gcc/cfgexpand.c:4040
0x91dce7 expand_gimple_basic_block
../../gcc/cfgexpand.c:6085
0x92079e execute
../../gcc/cfgexpand.c:6811