repo.or.cz
/
qemu
/
ar7.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
hw/arm/smmuv3: Fix IIDR offset
[qemu/ar7.git]
/
tests
/
tcg
/
openrisc
/
test_lf_mul.c
blob
bc8ad800c74dd0ee3b3cc6bb745482a2028cccb0
1
#include <stdio.h>
2
3
int
main
(
void
)
4
{
5
float
a
,
b
,
c
;
6
float
result
;
7
8
b
=
1.5
;
9
c
=
4.0
;
10
result
=
6.0
;
11
__asm
12
(
"lf.mul.s %0, %1, %2
\n\t
"
13
:
"=r"
(
a
)
14
:
"r"
(
b
),
"r"
(
c
)
15
);
16
if
(
a
!=
result
) {
17
printf
(
"lf.mul.s error
\n
"
);
18
return
-
1
;
19
}
20
21
return
0
;
22
}