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