Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/vect/pr83202-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children | 1830386684a0 |
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[8][8]) | |
5 { | |
6 for (int i = 0; i < 8; i++) | |
7 { | |
8 for (int j = 0; j < i; j+=4) | |
9 { | |
10 data[i][j] *= data[i][j]; | |
11 data[i][j+1] *= data[i][j+1]; | |
12 data[i][j+2] *= data[i][j+2]; | |
13 data[i][j+3] *= data[i][j+3]; | |
14 } | |
15 } | |
16 } | |
17 | |
18 /* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */ | |
19 /* { dg-final { scan-tree-dump "ectorized 1 loops" "vect" } } */ |