1 /* { dg-additional-options "-std=gnu99" } */
5 #define M(x, y, z) O(x, y, z)
6 #define O(x, y, z) x ## _ ## y ## _ ## z
8 #pragma omp declare target
13 #define N(x) M(x, G, normal)
22 #define S dist_schedule(static, 128)
23 #define N(x) M(x, G, normal)
30 #define F distribute simd
33 #define N(x) M(x, G, normal)
40 #define F distribute simd
42 #define S dist_schedule(static, 128)
43 #define N(x) M(x, G, normal)
50 #define F distribute parallel for
56 #define F distribute parallel for dist_schedule(static, 128)
62 #define F distribute parallel for simd
68 #define F distribute parallel for simd dist_schedule(static, 128)
74 #pragma omp end declare target
80 #pragma omp target teams reduction(|:err)
82 err
|= test_d_normal ();
83 err
|= test_d_ds128_normal ();
84 err
|= test_ds_normal ();
85 err
|= test_ds_ds128_normal ();
86 err
|= test_dpf_static ();
87 err
|= test_dpf_static32 ();
88 err
|= test_dpf_auto ();
89 err
|= test_dpf_guided32 ();
90 err
|= test_dpf_runtime ();
91 err
|= test_dpf_ds128_static ();
92 err
|= test_dpf_ds128_static32 ();
93 err
|= test_dpf_ds128_auto ();
94 err
|= test_dpf_ds128_guided32 ();
95 err
|= test_dpf_ds128_runtime ();
96 err
|= test_dpfs_static ();
97 err
|= test_dpfs_static32 ();
98 err
|= test_dpfs_auto ();
99 err
|= test_dpfs_guided32 ();
100 err
|= test_dpfs_runtime ();
101 err
|= test_dpfs_ds128_static ();
102 err
|= test_dpfs_ds128_static32 ();
103 err
|= test_dpfs_ds128_auto ();
104 err
|= test_dpfs_ds128_guided32 ();
105 err
|= test_dpfs_ds128_runtime ();