X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fppc%2Finsts.lisp;h=8229af3712f910f506e72670547a2fd42f96a34a;hb=4e7866afc56e4eec4e33dc2d61bd4f0aeed72cfd;hp=e65dfe9598ec85aa537b1bbe5175aadc82b6c9d9;hpb=d83c8a160b4215cfc5379dd4fb70c9589a428ae0;p=sbcl.git diff --git a/src/compiler/ppc/insts.lisp b/src/compiler/ppc/insts.lisp index e65dfe9..8229af3 100644 --- a/src/compiler/ppc/insts.lisp +++ b/src/compiler/ppc/insts.lisp @@ -640,8 +640,7 @@ (#.fun-end-breakpoint-trap (nt "Function end breakpoint trap")) (#.object-not-instance-trap - (nt "Object not instance trap")) - ))) + (nt "Object not instance trap"))))) (eval-when (:compile-toplevel :execute) @@ -869,7 +868,7 @@ (when (typep si 'fixup) (ecase ,fixup ((:ha :l) (note-fixup segment ,fixup si))) - (setq si 0)) + (setq si (or (fixup-offset si) 0))) (emit-d-form-inst segment ,op (reg-tn-encoding rt) (reg-tn-encoding ra) si))))) (define-d-rs-ui-instruction (name op &key (cost 1) other-dependencies) @@ -1840,6 +1839,12 @@ (define-instruction-macro srwi. (ra rs n) `(inst rlwinm. ,ra ,rs (- 32 ,n) ,n 31)) + (define-instruction-macro clrlwi (ra rs n) + `(inst rlwinm ,ra ,rs 0 ,n 31)) + + (define-instruction-macro clrlwi. (ra rs n) + `(inst rlwinm. ,ra ,rs 0 ,n 31)) + (define-instruction-macro clrrwi (ra rs n) `(inst rlwinm ,ra ,rs 0 0 (- 31 ,n)))