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