X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fassembly%2Fx86%2Farith.lisp;h=52b3efc15898682b394ab28aa63b3cf888dd4b60;hb=7230b50bc438a7fbebd93866a96f9291e630419f;hp=53ba95e73c691ec7044193e0ebd2401bd07f585a;hpb=f42c1323d7248a485260619059fb5f40092abe43;p=sbcl.git diff --git a/src/assembly/x86/arith.lisp b/src/assembly/x86/arith.lisp index 53ba95e..52b3efc 100644 --- a/src/assembly/x86/arith.lisp +++ b/src/assembly/x86/arith.lisp @@ -170,6 +170,8 @@ (inst ret) DO-STATIC-FUN + (inst push ebp-tn) + (inst mov ebp-tn esp-tn) (inst sub esp-tn (fixnumize 3)) (inst mov (make-ea :dword :base esp-tn :disp (frame-byte-offset @@ -192,6 +194,7 @@ (:l `((inst mov y (1+ nil-value)) (inst cmp y x))) (:g `((inst cmp x (1+ nil-value))))) + (inst pop ebp-tn) (inst ret)) #-sb-assembling `(define-vop (,name) @@ -239,6 +242,8 @@ (inst cmp x y) (inst jmp :e RET) + (inst push ebp-tn) + (inst mov ebp-tn esp-tn) (inst sub esp-tn (fixnumize 3)) (inst mov (make-ea :dword :base esp-tn :disp (frame-byte-offset @@ -256,6 +261,7 @@ :disp (+ nil-value (static-fun-offset 'eql)))) (load-symbol y t) (inst cmp x y) + (inst pop ebp-tn) (inst ret)) #-sb-assembling @@ -296,6 +302,8 @@ (inst ret) DO-STATIC-FUN + (inst push ebp-tn) + (inst mov ebp-tn esp-tn) (inst sub esp-tn (fixnumize 3)) (inst mov (make-ea :dword :base esp-tn :disp (frame-byte-offset @@ -313,6 +321,7 @@ :disp (+ nil-value (static-fun-offset 'two-arg-=)))) (load-symbol y t) (inst cmp x y) + (inst pop ebp-tn) (inst ret)) #-sb-assembling