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
PPC: Fix rldcl
[qemu/agraf.git]
/
tests
/
tcg
/
mips
/
mips64-dsp
/
shllv_ph.c
blob
532291f3fb71ec8a7cf9676d941e43ccd403080d
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
=
0x0B
;
9
rt
=
0x12345678
;
10
result
=
0xFFFFFFFFA000C000
;
11
resultdsp
=
1
;
12
13
__asm
14
(
"shllv.ph %0, %2, %3
\n\t
"
15
"rddsp %1
\n\t
"
16
:
"=r"
(
rd
),
"=r"
(
dsp
)
17
:
"r"
(
rt
),
"r"
(
rs
)
18
);
19
dsp
= (
dsp
>>
22
) &
0x01
;
20
if
((
dsp
!=
resultdsp
) || (
rd
!=
result
)) {
21
printf
(
"shllv.ph wrong
\n
"
);
22
23
return
-
1
;
24
}
25
26
return
0
;
27
}