3 /* Based on pr106449.c - but using 'for' instead of 'simd'.
4 Cf. PR middle-end/106449 (for pr106449.c) and PR middle-end/106467. */
9 int a
[1024], *b
[65536], *c
[65536];
10 int *p
, *q
, **r
= &b
[0], **r2
= &c
[0], i
;
11 #pragma omp for collapse(2)
12 for (p
= &a
[0]; p
< &a
[512]; p
++)
13 for (q
= p
+ 64; q
< p
+ 128; q
++)
18 for (i
= 0; i
< 32768; i
++)
19 if (b
[i
] != &a
[i
/ 64] || c
[i
] != &a
[(i
/ 64) + 64 + (i
% 64)])
26 int a
[1024], *b
[32768], *c
[32768];
27 int *p
, *q
, **r
= &b
[0], **r2
= &c
[0], i
;
28 #pragma omp for collapse(2)
29 for (p
= &a
[0]; p
< &a
[512]; p
++)
30 for (q
= p
+ n
; q
< p
+ m
; q
++)
35 for (i
= 0; i
< 32768; i
++)
36 if (b
[i
] != &a
[i
/ 64] || c
[i
] != &a
[(i
/ 64) + 64 + (i
% 64)])
43 int a
[1024], *b
[8192], *c
[8192];
44 int *p
, *q
, **r
= &b
[0], **r2
= &c
[0], i
;
45 #pragma omp for collapse(2)
46 for (p
= &a
[0]; p
< &a
[512]; p
+= 4)
47 for (q
= p
+ n
; q
< p
+ m
; q
+= 2)
52 for (i
= 0; i
< 4096; i
++)
53 if (b
[i
] != &a
[(i
/ 32) * 4] || c
[i
] != &a
[(i
/ 32) * 4 + 64 + (i
% 32) * 2])