Basic constructor macro for instruction-binary structures.
(make-instruction-binary [:op <op>]
[:arg1 <arg1>]
[:arg2 <arg2>]
[:into <into>])
This is the usual way to construct instruction-binary structures. It simply conses together a structure with the specified fields.
This macro generates a new instruction-binary structure from scratch. See also change-instruction-binary, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-instruction-binary (&rest args) (std::make-aggregate 'instruction-binary args '((:op) (:arg1) (:arg2) (:into)) 'make-instruction-binary nil))
Function:
(defun instruction-binary (op arg1 arg2 into) (declare (xargs :guard (and (binary-opp op) (operandp arg1) (operandp arg2) (registerp into)))) (declare (xargs :guard t)) (let ((__function__ 'instruction-binary)) (declare (ignorable __function__)) (b* ((op (mbe :logic (binary-op-fix op) :exec op)) (arg1 (mbe :logic (operand-fix arg1) :exec arg1)) (arg2 (mbe :logic (operand-fix arg2) :exec arg2)) (into (mbe :logic (register-fix into) :exec into))) (cons :binary (list op arg1 arg2 into)))))