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
Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git]
/
gcc-4_9
/
gcc
/
testsuite
/
gcc.target
/
mips
/
r10k-cache-barrier-5.c
blob
757beefc231c1f1ef65b09a3a5e542a33a17609b
1
/* { dg-options "-mr10k-cache-barrier=store -mno-abicalls -mabi=64" } */
2
3
/* Test that in-range stores to static objects do not get an unnecessary
4
cache barrier. */
5
6
int
x
[
4
];
7
void
bar
(
void
);
8
9
NOMIPS16
void
10
foo
(
int
n
)
11
{
12
while
(
n
--)
13
{
14
x
[
3
] =
1
;
15
bar
();
16
}
17
}
18
19
/* { dg-final { scan-assembler-not "\tcache\t" } } */