1 /* { dg-options "-mr10k-cache-barrier=store -mno-abicalls" } */
2
3 /* Test that loads are not unnecessarily 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" 1 } } */
14