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

            Bug ID: 71708
           Summary: ICE at -O3 in both 32-bit and 64-bit modes on
                    x86_64-linux-gnu (vect_get_vec_def_for_stmt_copy)
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chengniansun at gmail dot com
  Target Milestone: ---

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/usr/local/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 7.0.0 20160629 (experimental) [trunk revision 237837] (GCC) 
$ 
$ gcc-trunk small.c -O3 
small.c: In function ‘main’:
small.c:4:5: internal compiler error: in vect_get_vec_def_for_stmt_copy, at
tree-vect-stmts.c:1527
 int main () {
     ^~~~
0xdf715f vect_get_vec_def_for_stmt_copy(vect_def_type, tree_node*)
        ../../gcc-source-trunk/gcc/tree-vect-stmts.c:1527
0xe0bb2a vectorizable_comparison
        ../../gcc-source-trunk/gcc/tree-vect-stmts.c:7941
0xe13484 vect_transform_stmt(gimple*, gimple_stmt_iterator*, bool*, _slp_tree*,
_slp_instance*)
        ../../gcc-source-trunk/gcc/tree-vect-stmts.c:8337
0xe1a3c3 vect_transform_loop(_loop_vec_info*)
        ../../gcc-source-trunk/gcc/tree-vect-loop.c:6893
0xe3958f vectorize_loops()
        ../../gcc-source-trunk/gcc/tree-vectorizer.c:554
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.
$ gcc-trunk small.c -O3  -m32
small.c: In function ‘main’:
small.c:4:5: internal compiler error: in vect_get_vec_def_for_stmt_copy, at
tree-vect-stmts.c:1527
 int main () {
     ^~~~
0xdf715f vect_get_vec_def_for_stmt_copy(vect_def_type, tree_node*)
        ../../gcc-source-trunk/gcc/tree-vect-stmts.c:1527
0xe0bb2a vectorizable_comparison
        ../../gcc-source-trunk/gcc/tree-vect-stmts.c:7941
0xe13484 vect_transform_stmt(gimple*, gimple_stmt_iterator*, bool*, _slp_tree*,
_slp_instance*)
        ../../gcc-source-trunk/gcc/tree-vect-stmts.c:8337
0xe1a3c3 vect_transform_loop(_loop_vec_info*)
        ../../gcc-source-trunk/gcc/tree-vect-loop.c:6893
0xe3958f vectorize_loops()
        ../../gcc-source-trunk/gcc/tree-vectorizer.c:554
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.
$ 
$ cat small.c
char a;
int b, c, d;

int main () {
  unsigned e;
  for (; a; a = a + 7)
    c |= !b <= (e = d <= a);
  return 0;
}

Reply via email to