comparison gcc/testsuite/c-c++-common/cilk-plus/PS/clauses2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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" } } */