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
PR inline-asm/84742
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
frv
/
all-mclracca-1.c
blob
28ab497caeeaca8b1f75b173f81aea1170c9af69
1
/* GCSE used to reuse the value of __MRDACC. */
2
/* { dg-do run } */
3
extern
void
abort
(
void
);
4
extern
void
exit
(
int
);
5
6
void
foo
(
int
*
z
)
7
{
8
__MWTACC
(
3
,
1
);
9
if
(
__MRDACC
(
3
) !=
1
)
10
*
z
=
1
;
11
__MCLRACCA
();
12
if
(
__MRDACC
(
3
) !=
1
)
13
*
z
=
2
;
14
}
15
16
int
main
()
17
{
18
int
z
=
3
;
19
20
foo
(&
z
);
21
if
(
z
!=
2
)
22
abort
();
23
exit
(
0
);
24
}