repo.or.cz
/
qemu
/
ar7.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
disas/nanomips: Replace proprietary by POSIX data types
[qemu/ar7.git]
/
tests
/
tcg
/
mips
/
mips32-dspr2
/
subqh_r_w.c
blob
d460f8630fae2e9622b283dc41cdab64152f04ab
1
#include<stdio.h>
2
#include<assert.h>
3
4
int
main
()
5
{
6
int
rd
,
rs
,
rt
;
7
int
result
;
8
9
rs
=
0x12345678
;
10
rt
=
0x87654321
;
11
result
=
0x456789AC
;
12
13
__asm
14
(
"subqh_r.w %0, %1, %2
\n\t
"
15
:
"=r"
(
rd
)
16
:
"r"
(
rs
),
"r"
(
rt
)
17
);
18
assert
(
rd
==
result
);
19
20
return
0
;
21
}