Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gcc.target / mips / r10k-cache-barrier-13.c
blobee9c84b59882a3af9e5fcb8cee2ff972d2741fe0
1 /* { dg-options "-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 } } */