We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04e6808 commit 480e470Copy full SHA for 480e470
examples/test.asm
@@ -17,8 +17,8 @@ FUN#0:
17
enter 0, 0
18
19
; register parameters as local variables
20
- push [rbp + 16]
21
- push [rbp + 24]
+ push qword [rbp + 16]
+ push qword [rbp + 24]
22
23
; t1 := x#0 + y#1
24
mov rax, [rbp - 8]
src/codegen/emitters/x86_64_linux_nasm.rs
@@ -54,7 +54,7 @@ impl CodeGenerator {
54
this_function_locals.insert(param.name.clone(), this_function_stack_offset);
55
this_function_stack_offset += param.ty.size_in_bytes();
56
self.text_section
57
- .push_str(&format!(" push [rbp + {}]\n", (index + 1) * 8 + 8));
+ .push_str(&format!(" push qword [rbp + {}]\n", (index + 1) * 8 + 8));
58
}
59
self.text_section.push_str("\n");
60
0 commit comments