https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91860
--- Comment #7 from Zdenek Sojka <zsojka at seznam dot cz> --- Created attachment 47003 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47003&action=edit testcase that does not need any special compiler flag $ riscv64-unknown-linux-gnu-gcc -O2 -g testcase.c during RTL pass: combine testcase.c: In function 'foo': testcase.c:20:1: internal compiler error: in decompose, at rtl.h:2281 20 | } | ^ 0xd9eeb2 wi::int_traits<std::pair<rtx_def*, machine_mode> >::decompose(long*, unsigned int, std::pair<rtx_def*, machine_mode> const&) /repo/gcc-trunk/gcc/rtl.h:2279 0xd9eeb2 wide_int_ref_storage<false, true>::wide_int_ref_storage<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*, machine_mode> const&) /repo/gcc-trunk/gcc/wide-int.h:1022 0xd81e36 generic_wide_int<wide_int_ref_storage<false, true> >::generic_wide_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*, machine_mode> const&) /repo/gcc-trunk/gcc/wide-int.h:782 0xd81e36 simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) /repo/gcc-trunk/gcc/simplify-rtx.c:1900 0xd8274e simplify_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) /repo/gcc-trunk/gcc/simplify-rtx.c:868 0xd858b0 simplify_gen_unary(rtx_code, machine_mode, rtx_def*, machine_mode) /repo/gcc-trunk/gcc/simplify-rtx.c:367 0xd96e17 simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>) /repo/gcc-trunk/gcc/simplify-rtx.c:6845 0xd971f8 simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>) /repo/gcc-trunk/gcc/simplify-rtx.c:6873 0xd989b2 simplify_replace_fn_rtx(rtx_def*, rtx_def const*, rtx_def* (*)(rtx_def*, rtx_def const*, void*), void*) /repo/gcc-trunk/gcc/simplify-rtx.c:479 0x1083c60 propagate_for_debug(rtx_insn*, rtx_insn*, rtx_def*, rtx_def*, basic_block_def*) /repo/gcc-trunk/gcc/valtrack.c:219 0x136555e try_combine /repo/gcc-trunk/gcc/combine.c:4532 0x136a0c1 combine_instructions /repo/gcc-trunk/gcc/combine.c:1326 0x136a0c1 rest_of_handle_combine /repo/gcc-trunk/gcc/combine.c:15056 0x136a0c1 execute /repo/gcc-trunk/gcc/combine.c:15101 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.