repo.or.cz
/
qemu
/
armbru.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libqtest: Inline g_assert_no_errno()
[qemu/armbru.git]
/
tests
/
tcg
/
mips
/
mips64-dspr2
/
mulq_s_ph.c
blob
b8c20c68cc68efd8d319367ad0d6096d771d6869
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
=
0x80001234
;
9
rt
=
0x80004321
;
10
result
=
0x7FFF098B
;
11
resultdsp
=
1
;
12
13
__asm
14
(
"mulq_s.ph %0, %2, %3
\n\t
"
15
"rddsp %1
\n\t
"
16
:
"=r"
(
rd
),
"=r"
(
dsp
)
17
:
"r"
(
rs
),
"r"
(
rt
)
18
);
19
dsp
= (
dsp
>>
21
) &
0x01
;
20
if
(
rd
!=
result
||
dsp
!=
resultdsp
) {
21
printf
(
"mulq_s.ph error
\n
"
);
22
return
-
1
;
23
}
24
25
return
0
;
26
}