2 /* { dg-options "-O2 -floop-interchange -fassociative-math -fno-signed-zeros -fno-trapping-math -fdump-tree-linterchange-details" } */
3 /* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */
5 /* Copied from graphite/interchange-4.c */
14 static int __attribute__((noinline
))
19 for (i
= 0; i
< N
; i
++)
20 for (j
= 0; j
< N
; j
++)
21 sum
= sum
+ u
[i
+ 1335 * j
];
23 for (i
= 0; i
< N
; i
++)
26 *res
= sum
+ N
+ u
[1336 * 2] + u
[1336];
36 for (i
= 0; i
< 1782225; i
++)
42 fprintf (stderr
, "res = %d \n", res
);
51 /* { dg-final { scan-tree-dump-times "Loop_pair<outer:., inner:.> is interchanged" 1 "linterchange"} } */