https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79242
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-04-18 CC| |marxin at gcc dot gnu.org Component|middle-end |target Ever confirmed|0 |1 --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Confirmed, there's reduced test-case for C: typedef __int20 unsigned a; int b, c (c > a (-1) / b); ./xgcc -B. tc.ii tc.ii: In function ‘void __static_initialization_and_destruction_0(int, int)’: tc.ii:2:13: internal compiler error: in simplify_subreg, at simplify-rtx.c:6034 int b, c (c > a (-1) / b); ~~^~~~~~~~~~~~ 0x105d288 simplify_subreg(machine_mode, rtx_def*, machine_mode, unsigned int) ../../gcc/simplify-rtx.c:6034 0x105dfd7 simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, unsigned int) ../../gcc/simplify-rtx.c:6265 0x105e07e lowpart_subreg(machine_mode, rtx_def*, machine_mode) ../../gcc/simplify-rtx.c:6288 0xc40370 gen_lowpart_common(machine_mode, rtx_def*) ../../gcc/emit-rtl.c:1456 0x103c314 gen_lowpart_general(machine_mode, rtx_def*) ../../gcc/rtlhooks.c:47 0xc7816d convert_move(rtx_def*, rtx_def*, int) ../../gcc/expr.c:530 0xc77f96 convert_move(rtx_def*, rtx_def*, int) ../../gcc/expr.c:508 0xc78ad5 convert_modes(machine_mode, machine_mode, rtx_def*, int) ../../gcc/expr.c:685 0xdf2639 expand_arith_overflow_result_store ../../gcc/internal-fn.c:568 0xdf68da expand_mul_overflow ../../gcc/internal-fn.c:1849 0xdf7f41 expand_arith_overflow ../../gcc/internal-fn.c:2149 0xdf8317 expand_MUL_OVERFLOW ../../gcc/internal-fn.c:2242 0xdfab1a expand_internal_call(internal_fn, gcall*) ../../gcc/internal-fn.c:2778 0xdfab45 expand_internal_call(gcall*) ../../gcc/internal-fn.c:2786 0xb42e0f expand_call_stmt ../../gcc/cfgexpand.c:2569 0xb42e0f expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3571 0xb42e0f expand_gimple_stmt ../../gcc/cfgexpand.c:3737 0xb4486e expand_gimple_basic_block ../../gcc/cfgexpand.c:5744 0xb4a4d6 execute ../../gcc/cfgexpand.c:6357