repo.or.cz
/
qemu
/
agraf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git]
/
tests
/
tcg
/
mips
/
mips64-dsp
/
insv.c
blob
fc5696f4c4ae4c5b969d6a734c462386e70159dd
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rt
,
rs
,
dsp
;
6
long long
result
;
7
8
/* msb = 10, lsb = 5 */
9
dsp
=
0x305
;
10
rt
=
0x12345678
;
11
rs
=
0xffffffff87654321
;
12
result
=
0x12345338
;
13
__asm
14
(
"wrdsp %2, 0x03
\n\t
"
15
"insv %0, %1
\n\t
"
16
:
"+r"
(
rt
)
17
:
"r"
(
rs
),
"r"
(
dsp
)
18
);
19
if
(
rt
!=
result
) {
20
printf
(
"insv wrong
\n
"
);
21
22
return
-
1
;
23
}
24
25
return
0
;
26
}