We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b7aaf0 commit eccf459Copy full SHA for eccf459
source/backends/x86_64.d
@@ -649,7 +649,7 @@ class BackendX86_64 : CompilerBackend {
649
}
650
651
// align stack pointer
652
- output ~= "mov rbp, rsp\n";
+ output ~= "mov rbx, rsp\n";
653
output ~= "and rsp, 0xFFFFFFFFFFFFFFF0\n";
654
655
if ((word.params.length > 6) && (word.params.length % 2 != 0)) {
@@ -668,7 +668,7 @@ class BackendX86_64 : CompilerBackend {
668
output ~= format("sub r15, %d\n", word.params.length * 8);
669
670
output ~= format("call %s\n", ExternSymbol(word.symbolName));
671
- output ~= "mov rsp, rbp\n";
+ output ~= "mov rsp, rbx\n";
672
673
if (!word.isVoid) {
674
output ~= "mov [r15], rax\n";
0 commit comments