2 /* { dg-options "-O2 -floop-interchange -fassociative-math -fno-signed-zeros -fno-trapping-math -fdump-tree-linterchange-details" } */
3 /* { dg-require-effective-target size32plus } */
4 /* { dg-skip-if "too big data segment" { visium-*-* } } */
6 /* Copied from graphite/interchange-4.c */
15 static int __attribute__((noinline
))
20 for (i
= 0; i
< N
; i
++)
21 for (j
= 0; j
< N
; j
++)
22 sum
= sum
+ u
[i
+ 1335 * j
];
24 for (i
= 0; i
< N
; i
++)
27 *res
= sum
+ N
+ u
[1336 * 2] + u
[1336];
37 for (i
= 0; i
< 1782225; i
++)
43 fprintf (stderr
, "res = %d \n", res
);
52 /* { dg-final { scan-tree-dump-times "Loop_pair<outer:., inner:.> is interchanged" 1 "linterchange"} } */