Fix mistake. Change jb by jbe. tiny c round (INT_MAX = 0x7FFFFFFF) to a DWORD boundar...
authorCarlos Montiers <carlos@thefunsouth.com>
Fri, 11 Jul 2014 00:41:51 +0000 (10 20:41 -0400)
committerCarlos Montiers <carlos@thefunsouth.com>
Fri, 11 Jul 2014 00:41:51 +0000 (10 20:41 -0400)
lib/alloca86-bt.S
lib/alloca86.S
lib/alloca86_64.S

index ff07bbb..5215505 100644 (file)
@@ -14,7 +14,7 @@ __bound_alloca:
 #ifdef TCC_TARGET_PE
 p4:
     cmp     $4096,%eax
-    jb      p5
+    jbe     p5
     test    %eax,-4096(%esp)
     sub     $4096,%esp
     sub     $4096,%eax
index 5bb38b1..a17e07f 100644 (file)
@@ -13,7 +13,7 @@ alloca:
 #ifdef TCC_TARGET_PE
 p1:
     cmp     $4096,%eax
-    jb      p2
+    jbe     p2
     test    %eax,-4096(%esp)
     sub     $4096,%esp
     sub     $4096,%eax
index 51acd42..4a74104 100644 (file)
@@ -17,7 +17,7 @@ alloca:
 #ifdef TCC_TARGET_PE
 p1:
     cmp     $4096,%rax
-    jb      p2
+    jbe     p2
     test    %rax,-4096(%rsp)
     sub     $4096,%rsp
     sub     $4096,%rax