blob: cc165ca52db905e86765fee4199d828b16df3834 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
/* PR c/39495 */
/* { dg-do compile } */
/* { dg-options "-fopenmp" } */
#define INT_MIN (-__INT_MAX__ - 1)
#define INT_MAX __INT_MAX__
#define UINT_MAX (2U * __INT_MAX__ + 1)
int
foo (void)
{
int i;
unsigned int u;
#pragma omp for
for (i = INT_MIN + 6; i > INT_MIN + 1; i--)
;
#pragma omp for
for (i = INT_MIN + 6; i >= INT_MIN + 1; i--)
;
#pragma omp for
for (i = INT_MIN + 6; i > INT_MIN; i--)
;
#pragma omp for
for (i = INT_MAX - 6; i < INT_MAX - 1; i++)
;
#pragma omp for
for (i = INT_MAX - 6; i <= INT_MAX - 1; i++)
;
#pragma omp for
for (i = INT_MAX - 6; i < INT_MAX; i++)
;
#pragma omp for
for (u = 6; u > 1; u--)
;
#pragma omp for
for (u = 6; u >= 1; u--)
;
#pragma omp for
for (u = 6; u > 0; u--)
;
#pragma omp for
for (u = UINT_MAX - 6; u < UINT_MAX - 1; u++)
;
#pragma omp for
for (u = UINT_MAX - 6; u <= UINT_MAX - 1; u++)
;
#pragma omp for
for (u = UINT_MAX - 6; u < UINT_MAX; u++)
;
}
int
bar (void)
{
int i;
unsigned int u;
#pragma omp for
for (i = INT_MIN + 6; i > INT_MIN + 1; i -= 2)
;
#pragma omp for
for (i = INT_MIN + 6; i >= INT_MIN + 1; i -= 2)
;
#pragma omp for
for (i = INT_MIN + 6; i > INT_MIN; i -= 2)
;
#pragma omp for
for (i = INT_MAX - 6; i < INT_MAX - 1; i += 2)
;
#pragma omp for
for (i = INT_MAX - 6; i <= INT_MAX - 1; i += 2)
;
#pragma omp for
for (i = INT_MAX - 6; i < INT_MAX; i += 2)
;
#pragma omp for
for (u = 6; u > 1; u -= 2)
;
#pragma omp for
for (u = 6; u >= 1; u -= 2)
;
#pragma omp for
for (u = 6; u > 0; u -= 2)
;
#pragma omp for
for (u = UINT_MAX - 6; u < UINT_MAX - 1; u += 2)
;
#pragma omp for
for (u = UINT_MAX - 6; u <= UINT_MAX - 1; u += 2)
;
#pragma omp for
for (u = UINT_MAX - 6; u < UINT_MAX; u += 2)
;
}
|