Mercurial > hg > CbC > CbC_gcc
comparison 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 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-require-effective-target vect_double } */ | |
3 | |
4 void test(double data[4][2]) | |
5 { | |
6 for (int i = 0; i < 4; i++) | |
7 { | |
8 data[i][0] = data[i][0] * data[i][0]; | |
9 data[i][1] = data[i][1] * data[i][1]; | |
10 } | |
11 } | |
12 | |
13 /* We should vectorize this with SLP and V2DF vectors. */ | |
14 /* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ | |
15 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */ |