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
/
mips64-dsp
/
mthi.c
blob
857005139b44802a12c0ea48fe07c7dad3a3fa1a
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
achi
,
acho
;
6
long long
result
;
7
8
achi
=
0x004433
;
9
result
=
0x004433
;
10
11
__asm
12
(
"mthi %1, $ac1
\n\t
"
13
"mfhi %0, $ac1
\n\t
"
14
:
"=r"
(
acho
)
15
:
"r"
(
achi
)
16
);
17
if
(
result
!=
acho
) {
18
printf
(
"mthi wrong
\n
"
);
19
20
return
-
1
;
21
}
22
23
return
0
;
24
}