summaryrefslogtreecommitdiff
path: root/lib/alloca86.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alloca86.S')
-rw-r--r--lib/alloca86.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/alloca86.S b/lib/alloca86.S
index b836efb..a17e07f 100644
--- a/lib/alloca86.S
+++ b/lib/alloca86.S
@@ -13,10 +13,10 @@ alloca:
#ifdef TCC_TARGET_PE
p1:
cmp $4096,%eax
- jle p2
+ jbe p2
+ test %eax,-4096(%esp)
sub $4096,%esp
sub $4096,%eax
- test %eax,(%esp)
jmp p1
p2:
#endif