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
/
adduh_r_qb.c
blob
ae65fa5e18649dd595b66862537b87abb5d38f09
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rd
,
rs
,
rt
;
6
long long
result
;
7
8
rs
=
0xFF0055AA
;
9
rt
=
0x01112211
;
10
result
=
0xffffffff80093C5E
;
11
__asm
12
(
"adduh_r.qb %0, %1, %2
\n\t
"
13
:
"=r"
(
rd
)
14
:
"r"
(
rs
),
"r"
(
rt
)
15
);
16
if
(
rd
!=
result
) {
17
printf
(
"adduh_r.qb error
\n
"
);
18
return
-
1
;
19
}
20
21
rs
=
0xFFFF0FFF
;
22
rt
=
0x00010111
;
23
result
=
0xffffffff80800888
;
24
__asm
25
(
"adduh_r.qb %0, %1, %2
\n\t
"
26
:
"=r"
(
rd
)
27
:
"r"
(
rs
),
"r"
(
rt
)
28
);
29
if
(
rd
!=
result
) {
30
printf
(
"adduh_r.qb error
\n
"
);
31
return
-
1
;
32
}
33
34
return
0
;
35
}