1  /* Test attribute for clearing hazards while returning.  */
       2  /* { dg-do compile } */
       3  /* { dg-options "isa_rev>=2 -mno-mips16" } */
       4  
       5  extern int bar ();
       6  
       7  static int __attribute__ ((use_hazard_barrier_return))
       8  foo0 ()
       9  {
      10    return bar ();
      11  }
      12  
      13  int
      14  foo1 ()
      15  {
      16    return foo0 ();
      17  }
      18  
      19  /* { dg-final { scan-assembler "foo0:" } } */
      20  /* { dg-final { scan-assembler-times "\tjr.hb\t\\\$31\n\tnop\\n" 1 } } */