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
S/390: Allow immediates in loc expander
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr24574.c
blob
93ce0f68429afda35b45aac86a01bb803b73e117
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-phiopt2" } */
3
4
int
f0
(
int
i
)
5
{
6
if
(
i
==
0
)
return
0
;
7
return
i
/
10
;
8
}
9
int
f1
(
int
i
)
10
{
11
return
i
?
i
/
10
:
0
;
12
}
13
14
int
f2
(
int
i
)
15
{
16
if
(
i
==
0
)
return
0
;
17
return
i
%
10
;
18
}
19
int
f3
(
int
i
)
20
{
21
return
i
?
i
%
10
:
0
;
22
}
23
24
int
f4
(
int
i
)
25
{
26
if
(
i
==
0
)
return
0
;
27
return
i
<<
10
;
28
}
29
int
f5
(
int
i
)
30
{
31
return
i
?
i
<<
10
:
0
;
32
}
33
34
/* We should if-convert all functions to carry out the operation
35
unconditionally. */
36
/* { dg-final { scan-tree-dump-not "= PHI" "phiopt2" } } */