1 /* { dg-do run { target { ! { hppa*-*-hpux* } } } } */
3 /* complex reductions. */
14 test_reductions (void)
18 double _Complex array
[n
];
20 for (i
= 0; i
< n
; i
++)
23 /* Gang reductions. */
24 check_reduction_op (double, +, 0, creal (array
[i
]), num_gangs (ng
), gang
);
25 check_reduction_op (double, *, 1, creal (array
[i
]), num_gangs (ng
), gang
);
27 /* Worker reductions. */
28 check_reduction_op (double, +, 0, creal (array
[i
]), num_workers (nw
),
30 check_reduction_op (double, *, 1, creal (array
[i
]), num_workers (nw
),
33 /* Vector reductions. */
34 check_reduction_op (double, +, 0, creal (array
[i
]), vector_length (vl
),
36 check_reduction_op (double, *, 1, creal (array
[i
]), vector_length (vl
),
39 /* Combined reductions. */
40 check_reduction_op (double, +, 0, creal (array
[i
]), num_gangs (ng
)
41 num_workers (nw
) vector_length (vl
), gang worker
43 check_reduction_op (double, *, 1, creal (array
[i
]), num_gangs (ng
)
44 num_workers (nw
) vector_length (vl
), gang worker