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
/
pr102046.c
blob
ae48b497dc01baaa3d06ddd4715544642ba3c4c3
1
/* { dg-do compile } */
2
/* { dg-additional-options "-O3 -fvect-cost-model=dynamic" } */
3
/* { dg-additional-options "-march=btver2" { target x86_64-*-* i?86-*-* } } */
4
5
struct
S
6
{
7
unsigned
a
,
b
;
8
};
9
10
struct
S g
;
11
12
void
13
foo
(
struct
S
*
o
)
14
{
15
struct
S s
=
g
;
16
s
.
b
*=
3
;
17
s
.
a
-=
s
.
a
/
2
;
18
*
o
=
s
;
19
}