]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/cilk-plus/PS/clauses2.c
[Patch AArch64] Fixup floating point division with -march=armv8-a+nosimd
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / cilk-plus / PS / clauses2.c
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-original -fcilkplus" } */
3
4 volatile int *a, *b;
5
6 void foo()
7 {
8 int j, k;
9
10 #pragma simd linear(j : 4, k) vectorlength(4)
11 for (int i=0; i < 1000; ++i)
12 a[i] = b[j];
13 }
14
15 /* { dg-final { scan-tree-dump-times "linear\\(j:4\\)" 1 "original" } } */
16 /* { dg-final { scan-tree-dump-times "linear\\(k:1\\)" 1 "original" } } */
17 /* { dg-final { scan-tree-dump-times "safelen\\(4\\)" 1 "original" } } */