https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91613
Bug ID: 91613
Summary: [10 regression][arm] gcc.dg/pr83930.c ICE since
r274986
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: clyon at gcc dot gnu.org
Target Milestone: ---
After r274986, even with the patch from
https://gcc.gnu.org/ml/gcc-patches/2019-08/msg02018.html, I've noticed:
FAIL: gcc.dg/pr83930.c (internal compiler error)
--target arm-none-linux-gnueabi
--with-mode thumb
--with-cpu cortex-a9
with Dejagnu RUNTESTFLAGS: -march=armv5t
during RTL pass: expand
/gcc/testsuite/gcc.dg/pr83930.c: In function 'foo':
/gcc/testsuite/gcc.dg/pr83930.c:10:5: internal compiler error: in gen_movsi, at
config/arm/arm.md:5435
0x12670cd gen_movsi(rtx_def*, rtx_def*)
/gcc/config/arm/arm.md:5435
0x896e82 insn_gen_fn::operator()(rtx_def*, rtx_def*) const
/gcc/recog.h:318
0x896e82 emit_move_insn_1(rtx_def*, rtx_def*)
/gcc/expr.c:3694
0x897173 emit_move_insn(rtx_def*, rtx_def*)
/gcc/expr.c:3790
0x74147f emit_library_call_value_1(int, rtx_def*, rtx_def*, libcall_type,
machine_mode, int, std::pair<rtx_def*, machine_mode>*)
/gcc/calls.c:5262
0xb10d95 emit_library_call_value(rtx_def*, rtx_def*, libcall_type,
machine_mode, rtx_def*, machine_mode, rtx_def*, machine_mode)
/gcc/rtl.h:4225
0xb10d95 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
/gcc/optabs.c:1833
0xb12eca sign_expand_binop(machine_mode, optab_tag, optab_tag, rtx_def*,
rtx_def*, rtx_def*, int, optab_methods)
/gcc/optabs.c:1964
0x8813f9 expand_divmod(int, tree_code, machine_mode, rtx_def*, rtx_def*,
rtx_def*, int)
/gcc/expmed.c:5232
0x8a3802 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
/gcc/expr.c:9002
0x893be2 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
/gcc/expr.c:9948
0x88bba6 expand_normal
/gcc/expr.h:287
0x88bba6 store_field
/gcc/expr.c:7027
0x88cc18 store_constructor_field
/gcc/expr.c:6275
0x88d103 store_constructor
/gcc/expr.c:6885
0x88f609 expand_constructor
/gcc/expr.c:8203
0x892d95 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
/gcc/expr.c:10265
0x8922b6 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
/gcc/expr.c:9954
0x89ebd2 store_expr(tree_node*, rtx_def*, int, bool, bool)
/gcc/expr.c:5682
0x8a08c6 expand_assignment(tree_node*, tree_node*, bool)
/gcc/expr.c:5441
The test passes when using ARM mode.