blob: eb16d2fc99e6cbdcbaebd0f712d7df94e2c6ca91 [file] [log] [blame]
/* Check for thumb1 far jump. Shouldn't save lr for small leaf functions
* even with a branch in it. */
/* { dg-options "-Os" } */
/* { dg-skip-if "" { ! { arm_thumb1 } } } */
void f()
{
for (;;);
}
volatile int g;
void f2(int i)
{
if (i) g=0;
}
void f3(int i)
{
if (i) {
g=0;
g=1;
g=2;
g=3;
g=4;
g=5;
g=6;
g=7;
g=8;
g=9;
}
}
/* { dg-final { scan-assembler-not "push.*lr" } } */