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