aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/cilk-plus/PS/safelen.c
blob: 2c59de9b02d9297cdd6fe50f289df5524fd48b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-gimple -fcilkplus" } */

int *a, *b;

void foo()
{
#pragma simd vectorlength(8)
  for (int i=0; i < 1000; ++i)
    a[i] = b[i];
}

/* { dg-final { scan-tree-dump-times "safelen\\(8\\)" 1 "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */