summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/scev-1.c
blob: b959fa17b2c3f2a76942192fb31d71a42e6a2ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* 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()
{
  float i=1;

  while (i>=0)
    --i;

  if (i != -1)
    abort();
  return 0;
}