https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121385
Bug ID: 121385
Summary: libgcc build failure with -march=armv9-a+cmpbr
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: rth at gcc dot gnu.org
Target Milestone: ---
Building _mulvdi3 with -march=armv9-a+cmpbr enabled produces
../../../comb/libgcc/libgcc2.c: In function ‘__mulvti3’:
../../../comb/libgcc/libgcc2.c:376:1: internal compiler error: in
patch_jump_insn, at cfgrtl.cc:1303
0x377bbd5 internal_error(char const*, ...)
../../comb/gcc/diagnostic-global-context.cc:534
0x378aaa0 fancy_abort(char const*, int, char const*)
../../comb/gcc/diagnostics/context.cc:1640
0x1265bc3 patch_jump_insn
../../comb/gcc/cfgrtl.cc:1303
0x1265c8b redirect_branch_edge
../../comb/gcc/cfgrtl.cc:1330
0x126e31a cfg_layout_redirect_edge_and_branch
../../comb/gcc/cfgrtl.cc:4736
0x124e1fc redirect_edge_and_branch(edge_def*, basic_block_def*)
../../comb/gcc/cfghooks.cc:391
0x31ad828 try_forward_edges
../../comb/gcc/cfgcleanup.cc:561
0x31b4573 try_optimize_cfg
../../comb/gcc/cfgcleanup.cc:2931
0x31b4c05 cleanup_cfg(int)
../../comb/gcc/cfgcleanup.cc:3143
0x3204a62 rest_of_handle_cse
../../comb/gcc/cse.cc:7591
0x3204af0 execute
../../comb/gcc/cse.cc:7622
The jump insn that denied patching was
(jump_insn 297 296 298 35 (set (pc)
(if_then_else (lt (reg:DI 170 [ _94 ])
(const_int 0 [0]))
(label_ref 303)
(pc))) "../../../comb/libgcc/libgcc2.c":366:12 discrim 1 29
{aarch64_cbltdi}
(expr_list:REG_DEAD (reg:DI 170 [ _94 ])
(int_list:REG_BR_PROB 4 (nil)))
-> 303)