repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
regtest: broaden none/tests/linux/bug498317 suppression for PPC
[valgrind.git]
/
none
/
tests
/
amd64
/
fcmovnu.c
blob
aac5f204e2425c549d45c5c40e9c840f67d4aaa4
1
2
#include <stdio.h>
3
4
double
zzz
;
5
6
int
main
(
void
)
7
{
8
zzz
=
1.234
;
9
printf
(
"zzz = %f
\n
"
,
zzz
);
10
__asm__
__volatile__
(
11
"finit
\n\t
"
12
"fldpi
\n\t
"
13
"fldl2e
\n\t
"
14
"pushq %r15
\n\t
"
15
"movq $0,%r15
\n\t
"
16
"add %r15,%r15
\n\t
"
17
"fcmovnu %st(1), %st(0)
\n\t
"
18
"fstl zzz
\n\t
"
19
"finit
\n\t
"
20
"popq %r15
\n\t
"
21
);
22
printf
(
"zzz = %f
\n
"
,
zzz
);
23
return
0
;
24
}