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