Skip to content

Commit 480e470

Browse files
committed
SAVEPOINT
1 parent 04e6808 commit 480e470

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/test.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ FUN#0:
1717
enter 0, 0
1818

1919
; register parameters as local variables
20-
push [rbp + 16]
21-
push [rbp + 24]
20+
push qword [rbp + 16]
21+
push qword [rbp + 24]
2222

2323
; t1 := x#0 + y#1
2424
mov rax, [rbp - 8]

src/codegen/emitters/x86_64_linux_nasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl CodeGenerator {
5454
this_function_locals.insert(param.name.clone(), this_function_stack_offset);
5555
this_function_stack_offset += param.ty.size_in_bytes();
5656
self.text_section
57-
.push_str(&format!(" push [rbp + {}]\n", (index + 1) * 8 + 8));
57+
.push_str(&format!(" push qword [rbp + {}]\n", (index + 1) * 8 + 8));
5858
}
5959
self.text_section.push_str("\n");
6060
}

0 commit comments

Comments
 (0)