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
/
fast-math-pr55281.c
blob
49232616b4514fd9bc618a84c009f2865c9a15bb
1
/* PR tree-optimization/55281 */
2
/* { dg-do compile } */
3
4
static
inline
float
5
bar
(
float
k
,
float
j
)
6
{
7
float
l
=
0.0
f
;
8
if
(
k
>
j
)
9
l
=
k
;
10
float
t
=
k
/
j
;
11
float
v
=
t
*
t
;
12
if
(
k
==
0
)
13
v
=
0.0
f
;
14
if
(
t
>
0.4
f
)
15
v
+=
0.7
;
16
if
(
l
!=
0
)
17
v
=
1.5
-
v
;
18
return
v
;
19
}
20
21
void
22
foo
(
int
*
a
,
int
b
,
float
*
d
,
float
*
e
,
int
*
f
)
23
{
24
int
i
,
l
;
25
for
(
l
=
0
;
l
!=
b
; ++
l
)
26
for
(
i
=
0
;
i
!=
8
; ++
i
)
27
f
[
i
] =
e
[
i
] +
bar
(
a
[
i
],
d
[
i
]);
28
}
29