Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr83202.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr83202.c Thu Oct 25 07:37:49 2018 +0900 @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target vect_double } */ + +void test(double data[4][2]) +{ + for (int i = 0; i < 4; i++) + { + data[i][0] = data[i][0] * data[i][0]; + data[i][1] = data[i][1] * data[i][1]; + } +} + +/* We should vectorize this with SLP and V2DF vectors. */ +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ +/* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */