repo.or.cz
/
qemu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git]
/
tests
/
tcg
/
mips
/
user
/
ase
/
dsp
/
test_dsp_r1_mflo.c
blob
caeafdb05ce426a7624263906625f685ada3d590
1
#include<stdio.h>
2
#include<assert.h>
3
4
int
main
()
5
{
6
int
acli
,
aclo
;
7
int
result
;
8
9
acli
=
0x004433
;
10
result
=
0x004433
;
11
12
__asm
13
(
"mthi %1, $ac1
\n\t
"
14
"mfhi %0, $ac1
\n\t
"
15
:
"=r"
(
aclo
)
16
:
"r"
(
acli
)
17
);
18
assert
(
result
==
aclo
);
19
20
return
0
;
21
}