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
2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
mips
/
r10k-cache-barrier-6.c
blob
32dd78cb584bee27d23fbd81ae28a6ad34076f97
1
/* { dg-options "-mr10k-cache-barrier=store -mabi=64" } */
2
3
int
x
[
4
];
4
void
bar
(
void
);
5
6
/* Test that out-of-range stores to static objects are protected by a
7
cache barrier. */
8
9
NOMIPS16
void
10
foo
(
int
n
)
11
{
12
while
(
n
--)
13
{
14
x
[
4
] =
1
;
15
bar
();
16
}
17
}
18
19
/* { dg-final { scan-assembler "\tcache\t" } } */