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
/
pr97139.c
blob
1b9f31c7db396e84cce9138585dee733dbc06ab8
1
/* { dg-require-effective-target vect_int } */
2
3
#include
"tree-vect.h"
4
5
int
pix
[
4
];
6
7
int
__attribute__
((
noipa
))
foo
(
void
)
8
{
9
pix
[
0
] =
pix
[
0
] /
4
;
10
pix
[
1
] =
pix
[
1
] /
4
;
11
pix
[
2
] =
pix
[
2
] /
4
;
12
pix
[
3
] =
pix
[
3
] /
4
;
13
return
pix
[
0
] +
pix
[
1
] +
pix
[
2
] +
pix
[
3
];
14
}
15
16
int
main
()
17
{
18
check_vect
();
19
20
pix
[
0
] =
8
;
21
pix
[
1
] =
16
;
22
pix
[
2
] =
32
;
23
pix
[
3
] =
64
;
24
if
(
foo
() !=
30
)
25
__builtin_abort
();
26
return
0
;
27
}