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
/
mips32-dsp
/
insv.c
blob
243b00733d4f6886674c92c78ba87102c0643859
1
#include<stdio.h>
2
#include<assert.h>
3
4
int
main
()
5
{
6
int
rt
,
rs
,
dsp
;
7
int
result
;
8
9
/* msb = 10, lsb = 5 */
10
dsp
=
0x305
;
11
rt
=
0x12345678
;
12
rs
=
0x87654321
;
13
result
=
0x12345438
;
14
__asm
15
(
"wrdsp %2, 0x03
\n\t
"
16
"insv %0, %1
\n\t
"
17
:
"+r"
(
rt
)
18
:
"r"
(
rs
),
"r"
(
dsp
)
19
);
20
assert
(
rt
==
result
);
21
22
return
0
;
23
}