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
/
mulsaq_s_w_ph.c
blob
06c91a43e7eaeeef9019ee71731832f5a044988b
1
#include<stdio.h>
2
#include<assert.h>
3
4
int
main
()
5
{
6
int
rs
,
rt
,
ach
,
acl
;
7
int
resulth
,
resultl
;
8
9
ach
=
0x05
;
10
acl
=
0x00BBDDCC
;
11
rs
=
0x80001234
;
12
rt
=
0x80004321
;
13
resulth
=
0x05
;
14
resultl
=
0x772ff463
;
15
16
__asm
17
(
"mthi %0, $ac1
\n\t
"
18
"mtlo %1, $ac1
\n\t
"
19
"mulsaq_s.w.ph $ac1, %2, %3
\n\t
"
20
"mfhi %0, $ac1
\n\t
"
21
"mflo %1, $ac1
\n\t
"
22
:
"+r"
(
ach
),
"+r"
(
acl
)
23
:
"r"
(
rs
),
"r"
(
rt
)
24
);
25
assert
(
ach
==
resulth
);
26
assert
(
acl
==
resultl
);
27
28
return
0
;
29
}