repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FreeBSD: add file descriptor tracking for _umtx_op
[valgrind.git]
/
none
/
tests
/
s390x
/
lam_stam.c
blob
0e7bdae1fdd87d5953ddecad646ac8db6bcd3f40
1
/* LAM, STAM, load,store access multiple */
2
#include <stdio.h>
3
#include <unistd.h>
4
5
char
output
[
44
];
6
char
input
[
44
] =
"0123456789
\n
"
7
"0123456789
\n
"
8
"0123456789
\n
"
9
"0123456789
\n
"
;
10
11
int
main
()
12
{
13
asm
volatile
(
"larl 1,input
\n\t
"
14
"larl 2,output
\n\t
"
15
"lam 3,13,0(1)
\n\t
"
16
"stam 3,13,0(2)
\n\t
"
:::
"1"
,
"2"
);
17
18
write
(
1
,
output
,
sizeof
output
);
19
return
0
;
20
}