diff --git a/src/cc/arch/aarch64/ir_aarch64.c b/src/cc/arch/aarch64/ir_aarch64.c index c398e835a..d6ffb68b6 100644 --- a/src/cc/arch/aarch64/ir_aarch64.c +++ b/src/cc/arch/aarch64/ir_aarch64.c @@ -784,7 +784,7 @@ int push_callee_save_regs(unsigned long used, unsigned long fused) { else STR(saves[i], PRE_INDEX(SP, -16)); } - return count + fcount; + return ALIGN(count, 2) + ALIGN(fcount, 2); } void pop_callee_save_regs(unsigned long used, unsigned long fused) {