X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fmips%2Farith.lisp;h=70649f59628123f3dcd737035a0868abf82e68db;hb=5745b5a5b2e3b967bf3876b4306f31b3c78495fa;hp=8be4e93dcbf1b58384b5a4ae7ce71031dd75cba1;hpb=1907ad030ca773162bcd9ff90fdc485a035591f4;p=sbcl.git diff --git a/src/compiler/mips/arith.lisp b/src/compiler/mips/arith.lisp index 8be4e93..70649f5 100644 --- a/src/compiler/mips/arith.lisp +++ b/src/compiler/mips/arith.lisp @@ -227,7 +227,7 @@ (inst bgez amount positive) (inst subu ndesc zero-tn amount) (inst slt temp ndesc 32) - (inst bne temp zero-tn done) + (inst bne temp done) (inst srl result number ndesc) (inst b done) (move result zero-tn t) @@ -253,7 +253,7 @@ (inst bgez amount positive) (inst subu ndesc zero-tn amount) (inst slt temp ndesc 31) - (inst bne temp zero-tn done) + (inst bne temp done) (inst sra result number ndesc) (inst b done) (inst sra result number 31) @@ -416,7 +416,7 @@ (:save-p :compute-only) (:generator 11 (let ((zero (generate-error-code vop division-by-zero-error x y))) - (inst beq y zero-tn zero)) + (inst beq y zero)) (inst nop) (inst div x y) (inst mflo temp) @@ -432,7 +432,7 @@ (:save-p :compute-only) (:generator 12 (let ((zero (generate-error-code vop division-by-zero-error x y))) - (inst beq y zero-tn zero)) + (inst beq y zero)) (inst nop) (inst divu x y) (inst mflo q) @@ -447,7 +447,7 @@ (:save-p :compute-only) (:generator 12 (let ((zero (generate-error-code vop division-by-zero-error x y))) - (inst beq y zero-tn zero)) + (inst beq y zero)) (inst nop) (inst div x y) (inst mflo q) @@ -531,8 +531,8 @@ (inst slt temp x y) (inst sltu temp x y)) (if not-p - (inst beq temp zero-tn target) - (inst bne temp zero-tn target)))) + (inst beq temp target) + (inst bne temp target)))) (inst nop)) (define-conditional-vop > @@ -546,15 +546,15 @@ (inst slt temp x y) (inst sltu temp x y)) (if not-p - (inst bne temp zero-tn target) - (inst beq temp zero-tn target)))) + (inst bne temp target) + (inst beq temp target)))) (t (if signed (inst slt temp y x) (inst sltu temp y x)) (if not-p - (inst beq temp zero-tn target) - (inst bne temp zero-tn target)))) + (inst beq temp target) + (inst bne temp target)))) (inst nop)) ;;; EQL/FIXNUM is funny because the first arg can be of any type, not just a @@ -618,27 +618,6 @@ ;;;; 32-bit logical operations -(define-vop (merge-bits) - (:translate merge-bits) - (:args (shift :scs (signed-reg unsigned-reg)) - (prev :scs (unsigned-reg)) - (next :scs (unsigned-reg))) - (:arg-types tagged-num unsigned-num unsigned-num) - (:temporary (:scs (unsigned-reg) :to (:result 0)) temp) - (:temporary (:scs (unsigned-reg) :to (:result 0) :target result) res) - (:results (result :scs (unsigned-reg))) - (:result-types unsigned-num) - (:policy :fast-safe) - (:generator 4 - (let ((done (gen-label))) - (inst beq shift done) - (inst srl res next shift) - (inst subu temp zero-tn shift) - (inst sll temp prev temp) - (inst or res res temp) - (emit-label done) - (move result res)))) - (define-vop (shift-towards-someplace) (:policy :fast-safe) (:args (num :scs (unsigned-reg))