blob: 8a2342d4040e7c90bfb177f14bd0abc7a4f2a21e [file] [log] [blame]
/* APPLE LOCAL file opt diary */
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */
/* { dg-options "-dA -O2 -ftree-vectorize -fdump-tree-vect-stats -maltivec -gdwarf-2 -fopt-diary" { target powerpc*-*-* } } */
/* { dg-options "-dA -O2 -ftree-vectorize -fdump-tree-vect-stats -msse2 -gdwarf-2 -fopt-diary" { target i?86-*-* x86_64-*-* } } */
#define N 16
void ibar (int *);
/* multiple loops */
foo (int n)
{
int ia[N];
int ib[N];
int ic[N];
int i;
/* Vectorizable. */
for (i = 0; i < N; i++){
ia[i] = ib[i];
}
ibar (ia);
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
/* { dg-final { scan-assembler "DW_TAG_GNU_OD_entry" } } */
/* { dg-final { scan-assembler "DW_AT_GNU_OD_msg" } } */
/* { dg-final { scan-assembler "DW_AT_GNU_OD_category" } } */