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
/
dextrv_s_h.c
blob
87d3aeedce59b661920e692845a1928077920f3f
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rt
,
rs
,
dsp
;
6
long long
achi
,
acli
;
7
long long
res
,
resdsp
;
8
9
achi
=
0x87654321
;
10
acli
=
0x12345678
;
11
rs
=
0x8
;
12
13
res
=
0xffffffffffff8000
;
14
resdsp
=
0x1
;
15
16
__asm
17
(
"mthi %2, $ac1
\n\t
"
18
"mtlo %3, $ac1
\n\t
"
19
"dextrv_s.h %0, $ac1, %4
\n\t
"
20
"rddsp %1
\n\t
"
21
:
"=r"
(
rt
),
"=r"
(
dsp
)
22
:
"r"
(
achi
),
"r"
(
acli
),
"r"
(
rs
)
23
);
24
dsp
= (
dsp
>>
23
) &
0x1
;
25
26
if
((
dsp
!=
resdsp
) || (
rt
!=
res
)) {
27
printf
(
"dextrv_s.h error
\n
"
);
28
return
-
1
;
29
}
30
31
return
0
;
32
}