summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/dwarf-cfa-reg.c
blob: cce88155acaf8c57bd097ea1aeaf49af85fbddf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Verify that CFA register is restored to SP after FP is restored.  */
/* { dg-do compile } */
/* { dg-options "-O0 -gdwarf-2" } */
/* { dg-final { scan-assembler ".cfi_restore 30" } } */
/* { dg-final { scan-assembler ".cfi_restore 29" } } */
/* { dg-final { scan-assembler ".cfi_def_cfa 31, 0" } } */
/* { dg-final { scan-assembler "ret" } } */

int bar (unsigned int);

int foo (void)
{
  return bar (0xcafe);
}