summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/scev-2.c
blob: 0cac994757641af43d3d98e1437d78dff876c814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR tree-optimization/19899 */
/* Decrementing a floating-point variable in a loop caused an ICE.  */

/* { dg-do run } */
/* { dg-options "-O -ftree-vectorize" } */

extern void abort (void);

int main()
{
  double a = 20;
  int i;

  for (i = 0; i < 10; ++i)
    a -= 2;

  if (a)
    abort();
  return 0;
}