mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
fix the order
This commit is contained in:
parent
ae4df42eab
commit
6510591b60
1 changed files with 4 additions and 4 deletions
|
@ -438,8 +438,8 @@ impl CallConv<AArch64GeneralReg, AArch64FloatReg, AArch64Assembler> for AArch64C
|
|||
|
||||
// All the following stores could be optimized by using `STP` to store pairs.
|
||||
let w = aligned_stack_size;
|
||||
AArch64Assembler::mov_stack32_reg64(buf, w - 0x10, AArch64GeneralReg::LR);
|
||||
AArch64Assembler::mov_stack32_reg64(buf, w - 0x08, AArch64GeneralReg::FP);
|
||||
AArch64Assembler::mov_stack32_reg64(buf, w - 0x10, AArch64GeneralReg::FP);
|
||||
AArch64Assembler::mov_stack32_reg64(buf, w - 0x08, AArch64GeneralReg::LR);
|
||||
|
||||
// update the frame pointer
|
||||
AArch64Assembler::add_reg64_reg64_imm32(
|
||||
|
@ -478,8 +478,8 @@ impl CallConv<AArch64GeneralReg, AArch64FloatReg, AArch64Assembler> for AArch64C
|
|||
if aligned_stack_size > 0 {
|
||||
// All the following stores could be optimized by using `STP` to store pairs.
|
||||
let w = aligned_stack_size;
|
||||
AArch64Assembler::mov_reg64_stack32(buf, AArch64GeneralReg::LR, w - 0x10);
|
||||
AArch64Assembler::mov_reg64_stack32(buf, AArch64GeneralReg::FP, w - 0x08);
|
||||
AArch64Assembler::mov_reg64_stack32(buf, AArch64GeneralReg::FP, w - 0x10);
|
||||
AArch64Assembler::mov_reg64_stack32(buf, AArch64GeneralReg::LR, w - 0x08);
|
||||
|
||||
let mut offset = aligned_stack_size - fn_call_stack_size;
|
||||
for reg in saved_general_regs {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue