2 /* { dg-options "-O1 -ftree-loop-linear" } */
4 extern void abort (void);
8 int cond_array
[2*K
][K
];
11 int check_result
[K
] = {2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
13 __attribute__ ((noinline
)) void
16 int res
, i
, j
, k
, next
;
18 for (k
= 0; k
< K
; k
++)
21 for (j
= 0; j
< K
; j
++)
22 for (i
= 0; i
< K
; i
++)
25 res
= c
> cond_array
[i
+k
][j
] ? next
: res
;
36 for (j
= 0; j
< K
; j
++)
38 for (i
= 0; i
< 2*K
; i
++)
39 cond_array
[i
][j
] = i
+j
;
41 for (i
= 0; i
< K
; i
++)
47 for (k
= 0; k
< K
; k
++)
48 if (out
[k
] != check_result
[k
])