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
/
pr89430-5.c
blob
6a00f54b545824cda0000516a3248432750f9d30
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -ftree-cselim -fdump-tree-cselim-details" } */
3
4
int
test
(
int
b
,
int
k
) {
5
struct
{
6
int
data
[
2
];
7
}
a
;
8
9
if
(
b
<
a
.
data
[
k
]) {
10
a
.
data
[
k
] =
b
;
11
}
12
13
return
a
.
data
[
0
] +
a
.
data
[
1
];
14
}
15
16
/* { dg-final { scan-tree-dump "Conditional store replacement" "cselim" } } */