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
/
shrav_r_pw.c
blob
25b0545931a01b6c49df5f0c6dd90e0ccc5e5f57
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rd
,
rt
,
rs
;
6
long long
res
;
7
8
rt
=
0x1234567887654321
;
9
rs
=
0x4
;
10
res
=
0x01234568f8765432
;
11
12
__asm
13
(
"shrav_r.pw %0, %1, %2
\n\t
"
14
:
"=r"
(
rd
)
15
:
"r"
(
rt
),
"r"
(
rs
)
16
);
17
18
if
(
rd
!=
res
) {
19
printf
(
"shrav_r.pw error
\n
"
);
20
return
-
1
;
21
}
22
23
rt
=
0x1234567887654321
;
24
rs
=
0x0
;
25
res
=
0x1234567887654321
;
26
27
__asm
28
(
"shrav_r.pw %0, %1, %2
\n\t
"
29
:
"=r"
(
rd
)
30
:
"r"
(
rt
),
"r"
(
rs
)
31
);
32
if
(
rd
!=
res
) {
33
printf
(
"shrav_r.pw error
\n
"
);
34
return
-
1
;
35
}
36
return
0
;
37
}