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
/
subuh_qb.c
blob
aac7a834ee88648b446e8ebb7e20b92548d252b4
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rd
,
rs
,
rt
;
6
long long
result
;
7
8
rs
=
0x12345678
;
9
rt
=
0x87654321
;
10
result
=
0xC5E7092B
;
11
12
__asm
13
(
"subuh.qb %0, %1, %2
\n\t
"
14
:
"=r"
(
rd
)
15
:
"r"
(
rs
),
"r"
(
rt
)
16
);
17
if
(
rd
!=
result
) {
18
printf
(
"subuh.qb wrong
\n
"
);
19
return
-
1
;
20
}
21
22
return
0
;
23
}