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
/
pr104645.c
blob
83c1dd451f19eead5f6c0004cd97fcceee7f9383
1
/* PR tree-optimization/104645 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-optimized" } */
4
/* { dg-final { scan-tree-dump-not " = PHI <" "optimized" } } */
5
6
int
7
foo
(
unsigned
i
)
8
{
9
return
i
?
i
%
2
:
0
;
10
}
11
12
int
13
bar
(
unsigned
i
)
14
{
15
int
b
=
0
;
16
if
(
i
)
17
{
18
unsigned
a
=
i
&
1
;
19
b
=
a
;
20
}
21
return
b
;
22
}
23
24
int
25
baz
(
unsigned
i
)
26
{
27
return
i
?
i
+
4
:
4
;
28
}