blob: d4163910900b8795ceb0bf4cc17a6a351802dc72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-options "-O2 -mr10k-cache-barrier=load-store -mno-abicalls" } */
/* Test that loads are correctly protected. */
int bar (int);
NOMIPS16 void
foo (int *ptr)
{
*ptr = bar (*ptr);
}
/* { dg-final { scan-assembler-times "\tcache\t" 2 } } */
|