Debian Codegraph @

gcc/testsuite/gcc.target/riscv/save-restore-6.c

raw
1 /* { dg-options "-msave-restore" } */
2 /* { dg-skip-if "" { *-*-* } { "-O0" } } */
3
4 /* With -msave-restore in use GCC should be able to remove the calls to the
5 save and restore stubs in this case, replacing them with a tail call to
6 other_func. */
7
8 extern void other_func ();
9
10 void func ()
11 {
12 other_func ();
13 }
14
15 /* { dg-final { scan-assembler-not "call\[ \t\]*t0,__riscv_save_0" } } */
16 /* { dg-final { scan-assembler-not "tail\[ \t\]*__riscv_restore_0" } } */
17 /* { dg-final { scan-assembler "tail\[ \t\]*other_func" } } */