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-dsp
/
mfhi.c
blob
43a80669d1ea6838830eae6031ad664cb3ca2b06
1
#include<stdio.h>
2
#include<assert.h>
3
4
int
main
()
5
{
6
int
achi
,
acho
;
7
int
result
;
8
9
achi
=
0x004433
;
10
result
=
0x004433
;
11
12
__asm
13
(
"mthi %1, $ac1
\n\t
"
14
"mfhi %0, $ac1
\n\t
"
15
:
"=r"
(
acho
)
16
:
"r"
(
achi
)
17
);
18
assert
(
result
==
acho
);
19
20
return
0
;
21
}