view gcc/testsuite/gcc.dg/graphite/pr40281.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-options "-O -fprefetch-loop-arrays -w" } */
/* { dg-options "-O -fprefetch-loop-arrays -march=i686 -msse -w" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
/* { dg-require-effective-target sse { target { { i?86-*-* x86_64-*-* } && ia32 } } } */

void foo(int);
void bar(int n)
{
 int a[2], i, j = 0;

 for (i = 0; i < 2; i += j+1)
   for (j = 0; j < (n ? 1 : 2); ++j)
     foo(a[i] + a[j]);
}