https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101742
Bug ID: 101742
Summary: [12 Regression] ICE in expand_mult, at expmed.c:3585
since r12-2666-g29f0e955c97da002
Product: gcc
Version: 12.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: hjl.tools at gmail dot com
Target Milestone: ---
Host: x86_64-linux-gnu
The following fails:
$ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/vect/pr101505.c
-mtune=nano-x2 -O3 -c
during RTL pass: expand
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/vect/pr101505.c: In function
‘w7.simdclone.4’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/vect/pr101505.c:15:10:
internal compiler error: in expand_mult, at expmed.c:3585
15 | return xb;
| ^~
0x69b962 expand_mult(machine_mode, rtx_def*, rtx_def*, rtx_def*, int, bool)
/home/marxin/Programming/gcc/gcc/expmed.c:3585
0x9b6328 builtin_memset_gen_str
/home/marxin/Programming/gcc/gcc/builtins.c:4124
0xb0c816 op_by_pieces_d::run()
/home/marxin/Programming/gcc/gcc/expr.c:1252
0xb0ce2a store_by_pieces(rtx_def*, unsigned long, rtx_def* (*)(void*, void*,
long, fixed_size_mode), void*, unsigned int, bool, memop_ret)
/home/marxin/Programming/gcc/gcc/expr.c:1579
0xb0ce2a store_by_pieces(rtx_def*, unsigned long, rtx_def* (*)(void*, void*,
long, fixed_size_mode), void*, unsigned int, bool, memop_ret)
/home/marxin/Programming/gcc/gcc/expr.c:1561
0x9b882e expand_builtin_memset_args
/home/marxin/Programming/gcc/gcc/builtins.c:4383
0x9c2f2d expand_builtin_memset
/home/marxin/Programming/gcc/gcc/builtins.c:4146
0x9c2f2d expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
/home/marxin/Programming/gcc/gcc/builtins.c:7647
0xb1b9fe expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
/home/marxin/Programming/gcc/gcc/expr.c:11508
0x9ebfdf expand_expr
/home/marxin/Programming/gcc/gcc/expr.h:301
0x9ebfdf expand_call_stmt
/home/marxin/Programming/gcc/gcc/cfgexpand.c:2846
0x9ebfdf expand_gimple_stmt_1
/home/marxin/Programming/gcc/gcc/cfgexpand.c:3879
0x9ebfdf expand_gimple_stmt
/home/marxin/Programming/gcc/gcc/cfgexpand.c:4043
0x9f20e0 expand_gimple_basic_block
/home/marxin/Programming/gcc/gcc/cfgexpand.c:6085
0x9f4057 execute
/home/marxin/Programming/gcc/gcc/cfgexpand.c:6811
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.