URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-119.c] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ #define OUTER 32 #define INNER 40 static unsigned int bar (const unsigned int x[INNER][2], unsigned int sum) { int i; for (i = 0; i < INNER; i++) sum += x[i][0] * x[i][0] + x[i][1] * x[i][1]; return sum; } unsigned int foo (const unsigned int x[OUTER][INNER][2]) { int i; unsigned int sum; sum = 0.0f; for (i = 0; i < OUTER; i++) sum = bar (x[i], sum); return sum; } /* { dg-final { scan-tree-dump-times "Detected interleaving of size 2" 1 "vect" } } */ /* { dg-final { cleanup-tree-dump "vect" } } */
Go to most recent revision | Compare with Previous | Blame | View Log