repo.or.cz
/
qemu
/
ar7.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
disas/nanomips: Replace proprietary by POSIX data types
[qemu/ar7.git]
/
tests
/
tcg
/
mips
/
mips64-dsp
/
repl_ph.c
blob
11d29bdbc24244195caad570a5221fa28b23f880
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rd
,
result
;
6
7
result
=
0x01BF01BF
;
8
__asm
9
(
"repl.ph %0, 0x1BF
\n\t
"
10
:
"=r"
(
rd
)
11
);
12
if
(
rd
!=
result
) {
13
printf
(
"repl.ph wrong
\n
"
);
14
15
return
-
1
;
16
}
17
18
result
=
0x01FF01FF
;
19
__asm
20
(
"repl.ph %0, 0x01FF
\n\t
"
21
:
"=r"
(
rd
)
22
);
23
if
(
rd
!=
result
) {
24
printf
(
"repl.ph wrong
\n
"
);
25
26
return
-
1
;
27
}
28
29
return
0
;
30
}