summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr45352-3.c
blob: ce7879f860a43bdcee35d7725c43d4683bc01002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */
/* { dg-options "-O -fprofile-generate -fgcse -fno-gcse-lm -fgcse-sm -fno-ivopts -fno-tree-loop-im -ftree-pre -funroll-loops -fno-web -fschedule-insns2 -fselective-scheduling2 -fsel-sched-pipelining" } */

extern volatile float f[];

void foo (void)
{
  int i;
  for (i = 0; i < 100; i++)
    f[i] = 0;
  for (i = 0; i < 100; i++)
    f[i] = 0;
  for (i = 0; i < 100; i++)
    if (f[i])
      __builtin_abort ();
}