]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-1.c
2 /* { dg-options "-O3 -fcilkplus" } */
4 /* FIXME: This test has been xfailed until reductions are fixed. */
8 /* This is a simple vectorization test. It tests if reduction works
9 and if it can vectorize the loop in func correctly. */
12 int func (int *p
, int *q
) {
14 #pragma simd reduction (+:x)
15 for (int ii
= 0; ii
< N
; ii
++) {
25 int Array
[N
], Array2
[N
];
27 for (ii
= 0; ii
< N
; ii
++)
32 x
= func (Array
, Array2
);