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" } } */