mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
x86_64: increase passing test coverage on windows
Now that codegen has no references to linker state this is much easier. Closes #24153
This commit is contained in:
@@ -127,23 +127,23 @@ fn win_probe_stack_only() void {
|
||||
},
|
||||
.x86_64 => {
|
||||
asm volatile (
|
||||
\\ push %%rcx
|
||||
\\ push %%rax
|
||||
\\ cmp $0x1000,%%rax
|
||||
\\ lea 24(%%rsp),%%rcx
|
||||
\\ pushq %%rcx
|
||||
\\ pushq %%rax
|
||||
\\ cmpq $0x1000,%%rax
|
||||
\\ leaq 24(%%rsp),%%rcx
|
||||
\\ jb 1f
|
||||
\\ 2:
|
||||
\\ sub $0x1000,%%rcx
|
||||
\\ test %%rcx,(%%rcx)
|
||||
\\ sub $0x1000,%%rax
|
||||
\\ cmp $0x1000,%%rax
|
||||
\\ subq $0x1000,%%rcx
|
||||
\\ testq %%rcx,(%%rcx)
|
||||
\\ subq $0x1000,%%rax
|
||||
\\ cmpq $0x1000,%%rax
|
||||
\\ ja 2b
|
||||
\\ 1:
|
||||
\\ sub %%rax,%%rcx
|
||||
\\ test %%rcx,(%%rcx)
|
||||
\\ pop %%rax
|
||||
\\ pop %%rcx
|
||||
\\ ret
|
||||
\\ subq %%rax,%%rcx
|
||||
\\ testq %%rcx,(%%rcx)
|
||||
\\ popq %%rax
|
||||
\\ popq %%rcx
|
||||
\\ retq
|
||||
);
|
||||
},
|
||||
.x86 => {
|
||||
@@ -179,26 +179,26 @@ fn win_probe_stack_adjust_sp() void {
|
||||
switch (arch) {
|
||||
.x86_64 => {
|
||||
asm volatile (
|
||||
\\ push %%rcx
|
||||
\\ cmp $0x1000,%%rax
|
||||
\\ lea 16(%%rsp),%%rcx
|
||||
\\ pushq %%rcx
|
||||
\\ cmpq $0x1000,%%rax
|
||||
\\ leaq 16(%%rsp),%%rcx
|
||||
\\ jb 1f
|
||||
\\ 2:
|
||||
\\ sub $0x1000,%%rcx
|
||||
\\ test %%rcx,(%%rcx)
|
||||
\\ sub $0x1000,%%rax
|
||||
\\ cmp $0x1000,%%rax
|
||||
\\ subq $0x1000,%%rcx
|
||||
\\ testq %%rcx,(%%rcx)
|
||||
\\ subq $0x1000,%%rax
|
||||
\\ cmpq $0x1000,%%rax
|
||||
\\ ja 2b
|
||||
\\ 1:
|
||||
\\ sub %%rax,%%rcx
|
||||
\\ test %%rcx,(%%rcx)
|
||||
\\ subq %%rax,%%rcx
|
||||
\\ testq %%rcx,(%%rcx)
|
||||
\\
|
||||
\\ lea 8(%%rsp),%%rax
|
||||
\\ mov %%rcx,%%rsp
|
||||
\\ mov -8(%%rax),%%rcx
|
||||
\\ push (%%rax)
|
||||
\\ sub %%rsp,%%rax
|
||||
\\ ret
|
||||
\\ leaq 8(%%rsp),%%rax
|
||||
\\ movq %%rcx,%%rsp
|
||||
\\ movq -8(%%rax),%%rcx
|
||||
\\ pushq (%%rax)
|
||||
\\ subq %%rsp,%%rax
|
||||
\\ retq
|
||||
);
|
||||
},
|
||||
.x86 => {
|
||||
|
||||
Reference in New Issue
Block a user