blob: 3794173fb25d7c885b3e5231b41a0a7f89b44917 [file] [log] [blame]
/* { dg-options "-msave-restore" } */
/* { dg-skip-if "" { *-*-* } { "-O0" } } */
/* As a leaf function this should never have the calls to the save and
restore stubs added, but lets check anyway. */
int func ()
{
return 3;
}
/* { dg-final { scan-assembler-not "call\[ \t\]*t0,__riscv_save_0" } } */
/* { dg-final { scan-assembler-not "tail\[ \t\]*__riscv_restore_0" } } */