summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/thumb-stackframe.c
blob: f6c78804e91de38f93077329b3a744c993f82771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-mthumb -Os" }  */
/* { dg-require-effective-target arm_thumb1_ok } */

extern void bar(int*);
int foo()
{
  int x;
  bar(&x);
  return x;
}

/* { dg-final { scan-assembler-not "sub\[\\t \]*sp,\[\\t \]*sp," } } */