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
/
lwx.c
blob
6a81414d65339bf73ab10d7b1bd0fe7b203ad312
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
value
,
rd
;
6
long long
*
p
;
7
unsigned long long
addr
,
index
;
8
long long
result
;
9
10
value
=
0xBCDEF389
;
11
p
= &
value
;
12
addr
= (
unsigned long long
)
p
;
13
index
=
0
;
14
result
=
0xFFFFFFFFBCDEF389
;
15
__asm
16
(
"lwx %0, %1(%2)
\n\t
"
17
:
"=r"
(
rd
)
18
:
"r"
(
index
),
"r"
(
addr
)
19
);
20
if
(
rd
!=
result
) {
21
printf
(
"lwx wrong
\n
"
);
22
23
return
-
1
;
24
}
25
26
return
0
;
27
}