(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
mips/
constant-spill.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-mfp64 -mhard-float -mmsa" } */
       3  /* { dg-skip-if "code quality test" { *-*-* } { "-Os" "-O0" "-O1" "-O2" } { "" } } */
       4  
       5  void foo (void);
       6  
       7  void bar (void)
       8  {
       9    int x[4];
      10    int y[4];
      11    int i;
      12  
      13    while (1)
      14      {
      15        foo ();
      16  
      17        for (i = 0; i < 4; i++)
      18          {
      19            x[i] = 0;
      20            y[i] = 0;
      21          }
      22  
      23        asm volatile (""
      24                      :
      25                      :"m"(x), "m"(y)
      26                      :"memory");
      27      }
      28  }
      29  
      30  /* { dg-final { scan-assembler-not "ld.w" } } */
      31  /* { dg-final { scan-assembler-times "st.w" 2 } } */