Retrieve the
This is always in the bits 15-19 of the 32-bit encoding,
for the formats with an
Function:
(defun get-rs1 (enc) (declare (xargs :guard (ubyte32p enc))) (let ((__function__ 'get-rs1)) (declare (ignorable __function__)) (part-select enc :low 15 :high 19)))
Theorem:
(defthm ubyte5p-of-get-rs1 (b* ((rs1 (get-rs1 enc))) (ubyte5p rs1)) :rule-classes :rewrite)