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
Merged with mainline at revision 128810.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
387-10.c
blob
565f0196e8862548241c9f1c42553b2da2a898ee
1
/* PR tree-optimization/24964 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -mfpmath=387" } */
4
5
double
fabs
(
double
x
);
6
7
double
test1
(
double
x
)
8
{
9
double
t
=
fabs
(
x
);
10
return
t
*
t
;
11
}
12
13
double
test2
(
double
x
)
14
{
15
double
t
= -
x
;
16
return
t
*
t
;
17
}
18
19
/* { dg-final { scan-assembler-not "fchs" } } */
20
/* { dg-final { scan-assembler-not "fabs" } } */