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