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
/
subu_s_qb.c
blob
9de76f4a1fa4597f2fef9d2c0b7c11c48814b32b
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rd
,
rs
,
rt
,
dsp
;
6
long long
result
,
resultdsp
;
7
8
rs
=
0x12345678
;
9
rt
=
0x87654321
;
10
result
=
0x00001357
;
11
resultdsp
=
0x01
;
12
13
__asm
14
(
"subu_s.qb %0, %2, %3
\n\t
"
15
"rddsp %1
\n\t
"
16
:
"=r"
(
rd
),
"=r"
(
dsp
)
17
:
"r"
(
rs
),
"r"
(
rt
)
18
);
19
dsp
= (
dsp
>>
20
) &
0x01
;
20
if
((
dsp
!=
resultdsp
) || (
rd
!=
result
)) {
21
printf
(
"subu_s_qb wrong"
);
22
23
return
-
1
;
24
}
25
26
return
0
;
27
}