repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
vect-cost-model-4.c
blob
bb018ad99fe38387c4b1bfdef069057505ea969d
1
/* { dg-do compile } */
2
/* { dg-additional-options "-O2 -ftree-vectorize -fvect-cost-model=very-cheap" } */
3
4
int
x
[
1024
],
y
[
1024
];
5
6
void
7
f
(
void
)
8
{
9
for
(
unsigned int
i
=
0
;
i
<
1024
; ++
i
)
10
x
[
i
] +=
y
[
i
];
11
}
12
13
/* { dg-final { scan-tree-dump {LOOP VECTORIZED} vect { target vect_int } } } */