https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66076
Bug ID: 66076 Summary: [5/6 Regression] ICE: in vec_safe_grow, at vec.h:618 with -funroll-loops -mno-prefer-avx128 -march=bdver4 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Created attachment 35501 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35501&action=edit reduced testcase Compiler output: $ gcc -O2 -ftree-loop-vectorize -funroll-loops -mno-prefer-avx128 -march=bdver4 testcase.c testcase.c: In function 'f0a': testcase.c:7:1: internal compiler error: in vec_safe_grow, at vec.h:618 } ^ 0xafa2c0 void vec_safe_grow<rtx_def const*, va_heap>(vec<rtx_def const*, va_heap, vl_embed>*&, unsigned int) /mnt/svn/gcc-trunk/gcc/vec.h:618 0xafa2c0 generic_subrtx_iterator<const_rtx_accessor>::add_single_to_queue(generic_subrtx_iterator<const_rtx_accessor>::array_type&, rtx_def const**, unsigned long, rtx_def const*) /mnt/svn/gcc-trunk/gcc/rtlanal.c:107 0xafa499 generic_subrtx_iterator<const_rtx_accessor>::add_subrtxes_to_queue(generic_subrtx_iterator<const_rtx_accessor>::array_type&, rtx_def const**, unsigned long, rtx_def const*) /mnt/svn/gcc-trunk/gcc/rtlanal.c:174 0xe48b34 generic_subrtx_iterator<const_rtx_accessor>::next() /mnt/svn/gcc-trunk/gcc/rtl-iter.h:196 0xe48b34 ix86_loop_unroll_adjust /mnt/svn/gcc-trunk/gcc/config/i386/i386.c:51449 0x9cdcb3 decide_unroll_constant_iterations /mnt/svn/gcc-trunk/gcc/loop-unroll.c:403 0x9cdcb3 decide_unrolling /mnt/svn/gcc-trunk/gcc/loop-unroll.c:293 0x9cdcb3 unroll_loops(int) /mnt/svn/gcc-trunk/gcc/loop-unroll.c:311 0x9baa5f execute /mnt/svn/gcc-trunk/gcc/loop-init.c:611 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r222902 - ICE 5 r222437 - ICE 4_9 r222436 - OK