1 /* { dg-additional-options "-std=gnu99" { target c } } */
9 #define M(x, y, z) O(x, y, z)
10 #define O(x, y, z) x ## _ ## y ## _ ## z
12 #pragma omp declare target
17 #define N(x) M(x, G, normal)
26 #define S dist_schedule(static, 128)
27 #define N(x) M(x, G, normal)
34 #define F distribute simd
37 #define N(x) M(x, G, normal)
44 #define F distribute simd
46 #define S dist_schedule(static, 128)
47 #define N(x) M(x, G, normal)
54 #define F distribute parallel for
60 #define F distribute parallel for dist_schedule(static, 128)
66 #define F distribute parallel for simd
72 #define F distribute parallel for simd dist_schedule(static, 128)
78 #pragma omp end declare target
84 #pragma omp target teams reduction(|:err)
86 err
|= test_d_normal ();
87 err
|= test_d_ds128_normal ();
88 err
|= test_ds_normal ();
89 err
|= test_ds_ds128_normal ();
90 err
|= test_dpf_static ();
91 err
|= test_dpf_static32 ();
92 err
|= test_dpf_auto ();
93 err
|= test_dpf_guided32 ();
94 err
|= test_dpf_runtime ();
95 err
|= test_dpf_ds128_static ();
96 err
|= test_dpf_ds128_static32 ();
97 err
|= test_dpf_ds128_auto ();
98 err
|= test_dpf_ds128_guided32 ();
99 err
|= test_dpf_ds128_runtime ();
100 err
|= test_dpfs_static ();
101 err
|= test_dpfs_static32 ();
102 err
|= test_dpfs_auto ();
103 err
|= test_dpfs_guided32 ();
104 err
|= test_dpfs_runtime ();
105 err
|= test_dpfs_ds128_static ();
106 err
|= test_dpfs_ds128_static32 ();
107 err
|= test_dpfs_ds128_auto ();
108 err
|= test_dpfs_ds128_guided32 ();
109 err
|= test_dpfs_ds128_runtime ();