summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/loop_align.c
blob: 489380f2fc765e017827cb8533c0748b21535f3e (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-options "-O2 -mcpu=power7 -falign-functions=16" } */
/* { dg-final { scan-assembler ".p2align 5,,31" } } */

void f(double *a, double *b, double *c, int n) {
  int i;
  for (i=0; i < n; i++)
    a[i] = b[i] + c[i];
}