(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
mips/
frame-header-4.c
       1  /* Verify that we can optimize away the frame header allocation in bar
       2     by having it use its frame header to store $31 in before calling foo.  */
       3  
       4  /* { dg-do compile } */
       5  /* { dg-options "-mframe-header-opt -mabi=32" } */
       6  /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
       7  /* { dg-final { scan-assembler-not "\taddiu\t\\\$sp" } } */
       8  
       9  int __attribute__ ((noinline))
      10  foo (int a, int b)
      11  {
      12    return a + b;
      13  }
      14  
      15  int  __attribute__ ((noinline))
      16  bar (int a, int b)
      17  {
      18    return 1 + foo (a,b);
      19  }
      20