aboutsummaryrefslogtreecommitdiff
path: root/lib/alloca86_64.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alloca86_64.S')
-rw-r--r--lib/alloca86_64.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/alloca86_64.S b/lib/alloca86_64.S
index dd46ce6..51acd42 100644
--- a/lib/alloca86_64.S
+++ b/lib/alloca86_64.S
@@ -17,10 +17,10 @@ alloca:
#ifdef TCC_TARGET_PE
p1:
cmp $4096,%rax
- jle p2
+ jb p2
+ test %rax,-4096(%rsp)
sub $4096,%rsp
sub $4096,%rax
- test %rax,(%rsp)
jmp p1
p2:
#endif