https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92510
Bug ID: 92510 Summary: [10 Regression] ICE in native_encode_rtx, at simplify-rtx.c:6272 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: x86_64-unknown-linux-gnu gcc-10.0.0-alpha20191110 snapshot (r278028) ICEs when compiling the following testcase w/ -O1 -ftree-loop-vectorize -fno-forward-propagate -fno-tree-scev-cprop: int cg; long int fp (long int sq) { signed char z1; for (z1 = 0; z1 < 8; ++z1) sq |= !!cg; return sq + z1; } % x86_64-unknown-linux-gnu-gcc-10.0.0-alpha20191110 -O1 -ftree-loop-vectorize -fno-forward-propagate -fno-tree-scev-cprop -c nh0rq49t.c during RTL pass: combine nh0rq49t.c: In function 'fp': nh0rq49t.c:12:1: internal compiler error: in native_encode_rtx, at simplify-rtx.c:6272 12 | } | ^ 0x665fd0 native_encode_rtx(machine_mode, rtx_def*, vec<unsigned char, va_heap, vl_ptr>&, unsigned int, unsigned int) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/simplify-rtx.c:6272 0xc561be simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/simplify-rtx.c:6714 0xc5673e simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/simplify-rtx.c:7003 0x13eb54a if_then_else_cond /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/combine.c:9474 0x13eb3c1 if_then_else_cond /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/combine.c:9339 0x13f7c4f combine_simplify_rtx /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/combine.c:5839 0x13fa5ac subst /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/combine.c:5721 0x13fa1f9 subst /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/combine.c:5654 0x13fa421 subst /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/combine.c:5583 0x13fc2e5 try_combine /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/combine.c:3413 0x14023a1 combine_instructions /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/combine.c:1305 0x14023a1 rest_of_handle_combine /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/combine.c:15058 0x14023a1 execute /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191110/work/gcc-10-20191110/gcc/combine.c:15103