Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / vprop.c
blobe4dd682e84f04926c88073bf434ba1a6eb9edff9
1 /* { dg-do run } */
3 #include <assert.h>
5 #define test(type) \
6 void \
7 test_##type () \
8 { \
9 signed type b[100]; \
10 signed type i, j, x = -1, y = -1; \
12 _Pragma("acc parallel loop copyout (b)") \
13 for (j = 0; j > -5; j--) \
14 { \
15 type c = x+y; \
16 _Pragma("acc loop vector") \
17 for (i = 0; i < 20; i++) \
18 b[-j*20 + i] = c; \
19 b[5-j] = c; \
20 } \
22 for (i = 0; i < 100; i++) \
23 assert (b[i] == -2); \
26 test(char)
27 test(short)
29 int
30 main ()
32 test_char ();
33 test_short ();
35 return 0;