https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78526

            Bug ID: 78526
           Summary: [7 Regression] ICE: in decompose, at rtl.h:2117 with
                    -g -mavx512bw
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu
             Build: x86_64-pc-linux-gnu

Created attachment 40148
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40148&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -fno-tree-ccp -fno-tree-sra -g -mavx512bw
testcase.c
testcase.c: In function 'foo':
testcase.c:16:1: internal compiler error: in decompose, at rtl.h:2117
 }
 ^
0xbbcb00 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:2117
0xbbcb00 wide_int_ref_storage<false>::wide_int_ref_storage<std::pair<rtx_def*,
machine_mode> >(std::pair<rtx_def*, machine_mode> const&, unsigned int)
        /repo/gcc-trunk/gcc/wide-int.h:976
0xbbcb00 generic_wide_int<wide_int_ref_storage<false>
>::generic_wide_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*,
machine_mode> const&, unsigned int)
        /repo/gcc-trunk/gcc/wide-int.h:753
0xbbcb00 unsigned long wi::extract_uhwi<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&, unsigned int, unsigned int)
        /repo/gcc-trunk/gcc/wide-int.h:3054
0xbbcb00 simplify_immed_subreg
        /repo/gcc-trunk/gcc/simplify-rtx.c:5745
0xbd62e8 simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, unsigned
int)
        /repo/gcc-trunk/gcc/simplify-rtx.c:6220
0xbd8666 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:491
0xec18dc propagate_for_debug(rtx_insn*, rtx_insn*, rtx_def*, rtx_def*,
basic_block_def*)
        /repo/gcc-trunk/gcc/valtrack.c:201
0x14ac03c try_combine
        /repo/gcc-trunk/gcc/combine.c:4357
0x14b3660 combine_instructions
        /repo/gcc-trunk/gcc/combine.c:1264
0x14b3660 rest_of_handle_combine
        /repo/gcc-trunk/gcc/combine.c:14548
0x14b3660 execute
        /repo/gcc-trunk/gcc/combine.c:14593
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.

$ x86_64-pc-linux-gnu-gcc -v                                                    
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-242789-checking-yes-rtl-df-extra-nographite-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--without-cloog --without-ppl --without-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-242789-checking-yes-rtl-df-extra-nographite-amd64
Thread model: posix
gcc version 7.0.0 20161123 (experimental) (GCC) 


The reduced testcase has out-of-bounds vector index; the original testcase
didn't have it though.


Tested revisions:
r242789 - FAIL
r242600 - FAIL
6-branch r242830 - OK

Reply via email to