Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-outer-2b.c
blob9d9fb5cb52dca2d2147dbc50c26e9c65bda40c41
1 /* { dg-require-effective-target vect_float } */
2 #include <stdarg.h>
3 #include "tree-vect.h"
5 #define N 40
6 float image[2*N][N][N] __attribute__ ((__aligned__(16)));
8 __attribute__ ((noinline)) void
9 foo (){
10 int i,j,k;
12 for (k=0; k<N; k++) {
13 for (i = 0; i < N; i++) {
14 for (j = 0; j < N; j++) {
15 image[k+i][j][i] = j+i+k;
21 int main (void)
23 check_vect ();
24 int i, j, k;
26 foo ();
28 for (k=0; k<N; k++) {
29 for (i = 0; i < N; i++) {
30 for (j = 0; j < N; j++) {
31 if (image[k+i][j][i] != j+i+k)
32 abort ();
37 return 0;
40 /* { dg-final { scan-tree-dump-times "strided access in outer loop." 1 "vect" } } */
41 /* { dg-final { cleanup-tree-dump "vect" } } */