Code & Deploy
siGit Code
Git Hosting
Toggle menu
Code
Code Review
Models
Repos
Sign in
Sign in
@samitouri
/
QOSamiQemu
QOSamiQemu
/
tests
/
tcg
/
or1k
/
test_lf_mul.c
Code
Commits
Issues
Pulls
Sessions
CI/CD
master
master
c
22 lines
307 Bytes
Copy permalink
Copy
Raw
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
}