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)
20 #pragma omp end declare target
24 #define DO_PRAGMA(x) _Pragma (#x)
25 #define OMPFROM(v) DO_PRAGMA (omp target update from(v))
26 #define OMPTO(v) DO_PRAGMA (omp target update to(v))
28 #define F target parallel for
37 #define N(x) M(x, G, normal)
44 #define F target parallel for simd
50 #define F target teams distribute
53 #define N(x) M(x, G, normal)
60 #define F target teams distribute
62 #define S dist_schedule(static, 128)
63 #define N(x) M(x, G, normal)
70 #define F target teams distribute simd
73 #define N(x) M(x, G, normal)
80 #define F target teams distribute simd
82 #define S dist_schedule(static, 128)
83 #define N(x) M(x, G, normal)
90 #define F target teams distribute parallel for
96 #define F target teams distribute parallel for dist_schedule(static, 128)
102 #define F target teams distribute parallel for simd
108 #define F target teams distribute parallel for simd dist_schedule(static, 128)
109 #define G ttdpfs_ds128
117 if (test_tpf_static ()
118 || test_tpf_static32 ()
120 || test_tpf_guided32 ()
121 || test_tpf_runtime ()
122 || test_t_simd_normal ()
123 || test_tpf_simd_static ()
124 || test_tpf_simd_static32 ()
125 || test_tpf_simd_auto ()
126 || test_tpf_simd_guided32 ()
127 || test_tpf_simd_runtime ()
128 || test_ttd_normal ()
129 || test_ttd_ds128_normal ()
130 || test_ttds_normal ()
131 || test_ttds_ds128_normal ()
132 || test_ttdpf_static ()
133 || test_ttdpf_static32 ()
134 || test_ttdpf_auto ()
135 || test_ttdpf_guided32 ()
136 || test_ttdpf_runtime ()
137 || test_ttdpf_ds128_static ()
138 || test_ttdpf_ds128_static32 ()
139 || test_ttdpf_ds128_auto ()
140 || test_ttdpf_ds128_guided32 ()
141 || test_ttdpf_ds128_runtime ()
142 || test_ttdpfs_static ()
143 || test_ttdpfs_static32 ()
144 || test_ttdpfs_auto ()
145 || test_ttdpfs_guided32 ()
146 || test_ttdpfs_runtime ()
147 || test_ttdpfs_ds128_static ()
148 || test_ttdpfs_ds128_static32 ()
149 || test_ttdpfs_ds128_auto ()
150 || test_ttdpfs_ds128_guided32 ()
151 || test_ttdpfs_ds128_runtime ())