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