Message ID | 34d1835c-9eea-1f86-0c93-30aeace74762@foss.arm.com |
---|---|
State | New |
Headers | show |
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index dd8d5e5db8ca50daab648e58df290969aa794862..22a20caf42389748fc64ee0a3f880c6bea4c8f49 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -24990,7 +24990,7 @@ thumb1_expand_prologue (void) { unsigned long real_regs_mask = 0; - for (regno = LAST_LO_REGNUM; regno >= 0; regno --) + for (regno = LR_REGNUM; regno >= 0; regno --) { if (pushable_regs & (1 << regno)) { diff --git a/gcc/testsuite/gcc.target/arm/pr77933.c b/gcc/testsuite/gcc.target/arm/pr77933.c new file mode 100644 index 0000000000000000000000000000000000000000..cba7e9bb9aa57c6755f79b5ec2ea1a8744e23599 --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/pr77933.c @@ -0,0 +1,9 @@ +/* { dg-do run } */ +/* { dg-options "-O1" } */ + +int +main (void) +{ + __asm__ volatile ("" : : : "r8", "r9", "lr"); + return 0; +}