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
/
muleu_s_ph_qbr.c
blob
4cc6c8f7cfe13f7ddb1fd4d0955c63170dacc3b6
1
#include<stdio.h>
2
#include<assert.h>
3
4
int
main
()
5
{
6
int
rd
,
rs
,
rt
,
dsp
;
7
int
result
,
resultdsp
;
8
9
rs
=
0x8000
;
10
rt
=
0x80004321
;
11
result
=
0xFFFF0000
;
12
resultdsp
=
1
;
13
14
__asm
15
(
"muleu_s.ph.qbr %0, %2, %3
\n\t
"
16
"rddsp %1
\n\t
"
17
:
"=r"
(
rd
),
"=r"
(
dsp
)
18
:
"r"
(
rs
),
"r"
(
rt
)
19
);
20
dsp
= (
dsp
>>
21
) &
0x01
;
21
assert
(
rd
==
result
);
22
assert
(
dsp
==
resultdsp
);
23
24
return
0
;
25
}