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)
24 #pragma omp end declare target
28 #define DO_PRAGMA(x) _Pragma (#x)
29 #define OMPFROM(v) DO_PRAGMA (omp target update from(v))
30 #define OMPTO(v) DO_PRAGMA (omp target update to(v))
32 #define F target parallel for
41 #define N(x) M(x, G, normal)
48 #define F target parallel for simd
54 #define F target teams distribute
57 #define N(x) M(x, G, normal)
64 #define F target teams distribute
66 #define S dist_schedule(static, 128)
67 #define N(x) M(x, G, normal)
74 #define F target teams distribute simd
77 #define N(x) M(x, G, normal)
84 #define F target teams distribute simd
86 #define S dist_schedule(static, 128)
87 #define N(x) M(x, G, normal)
94 #define F target teams distribute parallel for
100 #define F target teams distribute parallel for dist_schedule(static, 128)
101 #define G ttdpf_ds128
106 #define F target teams distribute parallel for simd
112 #define F target teams distribute parallel for simd dist_schedule(static, 128)
113 #define G ttdpfs_ds128
121 if (test_tpf_static ()
122 || test_tpf_static32 ()
124 || test_tpf_guided32 ()
125 || test_tpf_runtime ()
126 || test_t_simd_normal ()
127 || test_tpf_simd_static ()
128 || test_tpf_simd_static32 ()
129 || test_tpf_simd_auto ()
130 || test_tpf_simd_guided32 ()
131 || test_tpf_simd_runtime ()
132 || test_ttd_normal ()
133 || test_ttd_ds128_normal ()
134 || test_ttds_normal ()
135 || test_ttds_ds128_normal ()
136 || test_ttdpf_static ()
137 || test_ttdpf_static32 ()
138 || test_ttdpf_auto ()
139 || test_ttdpf_guided32 ()
140 || test_ttdpf_runtime ()
141 || test_ttdpf_ds128_static ()
142 || test_ttdpf_ds128_static32 ()
143 || test_ttdpf_ds128_auto ()
144 || test_ttdpf_ds128_guided32 ()
145 || test_ttdpf_ds128_runtime ()
146 || test_ttdpfs_static ()
147 || test_ttdpfs_static32 ()
148 || test_ttdpfs_auto ()
149 || test_ttdpfs_guided32 ()
150 || test_ttdpfs_runtime ()
151 || test_ttdpfs_ds128_static ()
152 || test_ttdpfs_ds128_static32 ()
153 || test_ttdpfs_ds128_auto ()
154 || test_ttdpfs_ds128_guided32 ()
155 || test_ttdpfs_ds128_runtime ())