view gcc/testsuite/gcc.target/riscv/save-restore-8.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

/* { dg-options "-Os -msave-restore" } */

/* 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" } } */