2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / r10k-cache-barrier-13.c
blob3e955abf549bc7100f04e574c4826138b7b9ed7f
1 /* { dg-options "-O2 -mr10k-cache-barrier=store" } */
3 /* Test that indirect calls are protected. */
5 int bar (int);
7 NOMIPS16 void
8 foo (void (*fn) (void), int x)
10 if (x)
11 (*fn) ();
14 /* { dg-final { scan-assembler-times "\tcache\t" 1 } } */