pred.lisp

来自「开源跨平台Lisp编译器」· LISP 代码 · 共 39 行

LISP
39
字号
;;;; the VM definition of predicate VOPs for the Sparc;;;; This software is part of the SBCL system. See the README file for;;;; more information.;;;;;;;; This software is derived from the CMU CL system, which was;;;; written at Carnegie Mellon University and released into the;;;; public domain. The software is in the public domain and is;;;; provided with absolutely no warranty. See the COPYING and CREDITS;;;; files for more information.(in-package "SB!VM");;;; the Branch VOP.;;; The unconditional branch, emitted when we can't drop through to;;; the desired destination.  Dest is the continuation we transfer;;; control to.(define-vop (branch)  (:info dest)  (:generator 5    (inst b dest)    (inst nop)));;;; conditional VOPs:(define-vop (if-eq)  (:args (x :scs (any-reg descriptor-reg zero null))         (y :scs (any-reg descriptor-reg zero null)))  (:conditional)  (:info target not-p)  (:policy :fast-safe)  (:translate eq)  (:generator 3    (inst cmp x y)    (inst b (if not-p :ne :eq) target)    (inst nop)))

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?