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
/
shrlv_qb.c
blob
5616aa9c5bfa9629f6114f6558e02aeb48575c33
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rd
,
rs
,
rt
;
6
long long
result
;
7
8
rs
=
0x05
;
9
rt
=
0x12345678
;
10
result
=
0x00010203
;
11
12
__asm
13
(
"shrlv.qb %0, %1, %2
\n\t
"
14
:
"=r"
(
rd
)
15
:
"r"
(
rt
),
"r"
(
rs
)
16
);
17
if
(
rd
!=
result
) {
18
printf
(
"shrlv.qb wrong
\n
"
);
19
20
return
-
1
;
21
}
22
23
return
0
;
24
}