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
/
tree-ssa
/
ssa-fre-74.c
blob
4439d838e8461fbcc09aa62316fa1492c69d7510
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-fre1" } */
3
4
typedef
int
v4si
__attribute__
((
vector_size
(
__SIZEOF_INT__
*
4
)));
5
int
foo
(
int
*
a
)
6
{
7
a
[
2
] =
2
;
8
a
[
0
] =
0
;
9
a
[
1
] =
1
;
10
a
[
3
] =
4
;
11
v4si x
= *(
v4si
*)
a
;
12
*(
v4si
*)&
a
[
4
] =
x
;
13
return
a
[
4
] +
a
[
7
];
14
}
15
16
/* { dg-final { scan-tree-dump "return 4;" "fre1" } } */