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
s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git]
/
tests
/
tcg
/
mips
/
mips32-dspr2
/
adduh_qb.c
blob
a1f5d631b52e3cbf55ed2d15703c97488ed92266
1
#include<stdio.h>
2
#include<assert.h>
3
4
int
main
()
5
{
6
int
rd
,
rs
,
rt
;
7
int
result
;
8
9
rs
=
0xFF0055AA
;
10
rt
=
0x0113421B
;
11
result
=
0x80094B62
;
12
__asm
13
(
"adduh.qb %0, %1, %2
\n\t
"
14
:
"=r"
(
rd
)
15
:
"r"
(
rs
),
"r"
(
rt
)
16
);
17
assert
(
rd
==
result
);
18
19
rs
=
0xFFFF0FFF
;
20
rt
=
0x00010111
;
21
result
=
0x7F800888
;
22
__asm
23
(
"adduh.qb %0, %1, %2
\n\t
"
24
:
"=r"
(
rd
)
25
:
"r"
(
rs
),
"r"
(
rt
)
26
);
27
assert
(
rd
==
result
);
28
29
return
0
;
30
}