(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
mips/
r10k-cache-barrier-5.c
       1  /* { dg-options "-mr10k-cache-barrier=store -mno-abicalls -mabi=64" } */
       2  
       3  /* Test that in-range stores to static objects do not get an unnecessary
       4     cache barrier.  */
       5  
       6  int x[4];
       7  void bar (void);
       8  
       9  NOMIPS16 void
      10  foo (int n)
      11  {
      12    while (n--)
      13      {
      14        x[3] = 1;
      15        bar ();
      16      }
      17  }
      18  
      19  /* { dg-final { scan-assembler-not "\tcache\t" } } */