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