Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vect/vect-119.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Disabling epilogues until we find a better way to deal with scans. */ /* { dg-additional-options "--param vect-epilogues-nomask=0" } */ /* { dg-do compile } */ /* { dg-require-effective-target vect_int } */ #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 load of size 2" 1 "vect" } } */