view gcc/testsuite/gcc.dg/tree-ssa/ldist-34.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile { target size32plus } } */
/* { dg-options "-O2 -ftree-loop-distribution" } */

#define X (3.0)
int b, c;
double a[30000];
int foo () {
  for (int i = 0; i < 100; ++i) {
    for (int j = 0; j < c; ++j)
      if (b)
        a[0] = b;
    a[i * 100] = a[1] = X;
  }
  return 0;
}