Basic constructor macro for instr-auipc structures.
(make-instr-auipc [:rd <rd>] [:imm <imm>])
This is the usual way to construct instr-auipc structures. It simply conses together a structure with the specified fields.
This macro generates a new instr-auipc structure from scratch. See also change-instr-auipc, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-instr-auipc (&rest args) (std::make-aggregate 'instr-auipc args '((:rd) (:imm)) 'make-instr-auipc nil))
Function:
(defun instr-auipc (rd imm) (declare (xargs :guard (and (ubyte5p rd) (ubyte20p imm)))) (declare (xargs :guard t)) (let ((__function__ 'instr-auipc)) (declare (ignorable __function__)) (b* ((rd (mbe :logic (ubyte5-fix rd) :exec rd)) (imm (mbe :logic (ubyte20-fix imm) :exec imm))) (cons :auipc (list rd imm)))))