blob: 530865456a22b61d1162e4ec68ee8145f55bbcc0 [file] [log] [blame]
/* { dg-options "-Os -msave-restore" } */
/* With -msave-restore in use GCC should be able to remove the calls to the
save and restore stubs in this case, replacing them with a tail call to
other_func. */
extern void other_func ();
void func ()
{
other_func ();
}
/* { dg-final { scan-assembler-not "call\[ \t\]*t0,__riscv_save_0" } } */
/* { dg-final { scan-assembler-not "tail\[ \t\]*__riscv_restore_0" } } */
/* { dg-final { scan-assembler "tail\[ \t\]*other_func" } } */