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

            Bug ID: 71416
           Summary: ICE at -O3 in 32-bit and 64-bit modes on
                    x86_64-linux-gnu (vectorizable_live_operation)
           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 20160604 (experimental) [trunk revision 237091] (GCC) 
$: 
$: gcc-trunk -m64 -O3 small.c
small.c: In function ‘main’:
small.c:5:5: internal compiler error: in vectorizable_live_operation, at
tree-vect-loop.c:6377
 int main() {
     ^~~~
0xe0661f vectorizable_live_operation(gimple*, gimple_stmt_iterator*,
_slp_tree*, int, gimple**)
        ../../gcc-source-trunk/gcc/tree-vect-loop.c:6377
0xe02bcf vect_transform_stmt(gimple*, gimple_stmt_iterator*, bool*, _slp_tree*,
_slp_instance*)
        ../../gcc-source-trunk/gcc/tree-vect-stmts.c:8336
0xe09a33 vect_transform_loop(_loop_vec_info*)
        ../../gcc-source-trunk/gcc/tree-vect-loop.c:6911
0xe28baf 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
short a;
char b, e;
static short c;
int d, f;
int main() {
  short g;
  for (; e; ++e) {
    d = a;
    f = 0;
    if (b)
      d = f = g >= c;
  }
  return 0;
}

$:

Reply via email to