Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/vect/vect-99.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-require-effective-target vect_int } */ |
2 | |
3 #include "tree-vect.h" | |
4 | |
5 int ca[100]; | |
6 | |
7 __attribute__ ((noinline)) | |
8 void foo (int n) | |
9 { | |
10 unsigned int i; | |
11 | |
12 for (i = 0; i < n; i++) | |
13 ca[i] = 2; | |
14 } | |
15 | |
16 int main (void) | |
17 { | |
18 int i; | |
19 | |
20 check_vect (); | |
21 | |
22 foo(100); | |
23 | |
24 for (i = 0; i < 100; ++i) { | |
25 if (ca[i] != 2) | |
26 abort(); | |
27 } | |
28 return 0; | |
29 } | |
30 | |
31 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */ |