Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / routine-nohost-2_2.c
blob602954597927230d13d4bae1d1324f57ae9b98c5
1 /* { dg-skip-if "" { *-*-* } } */
3 #pragma acc routine nohost
4 int f1(int x)
6 /* Make sure this fails host compilation. */
7 #if defined ACC_DEVICE_TYPE_host
8 asm ("IT'S A TRAP");
9 #elif defined ACC_DEVICE_TYPE_nvidia
10 asm ("{\n\t .reg .u32 %tid_x;\n\t mov.u32 %tid_x, %tid.x;\n\t}");
11 #elif defined ACC_DEVICE_TYPE_radeon
12 asm ("s_nop 0");
13 #else
14 # error Not ported to this ACC_DEVICE_TYPE
15 #endif
17 return 2 * x;