repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arc
/
mlock.c
blob
3a8b050c30efcefc741cd76796e2e1777a117ff4
1
/* { dg-do compile } */
2
/* { dg-options "-mlock" } */
3
/* { dg-do assemble } */
4
5
int
f
(
void
*
p
)
6
{
7
int
i
;
8
9
__asm__
(
"llock %0, [%1]
\n\t
"
10
"scond %0, [%1]"
:
"=&r"
(
i
) :
"r"
(
p
));
11
return
i
;
12
}