Access the |X86ISA|::|M-MMMM| field of a vex3-byte1 bit structure.
(vex3-byte1->m-mmmm vex3byte1) → m-mmmm
Function:
(defun vex3-byte1->m-mmmm$inline (vex3byte1) (declare (xargs :guard (vex3-byte1-p vex3byte1))) (mbe :logic (let ((vex3byte1 (vex3-byte1-fix vex3byte1))) (part-select vex3byte1 :low 0 :width 5)) :exec (the (unsigned-byte 5) (logand (the (unsigned-byte 5) 31) (the (unsigned-byte 8) vex3byte1)))))
Theorem:
(defthm 5bits-p-of-vex3-byte1->m-mmmm (b* ((m-mmmm (vex3-byte1->m-mmmm$inline vex3byte1))) (5bits-p m-mmmm)) :rule-classes :rewrite)
Theorem:
(defthm vex3-byte1->m-mmmm$inline-of-vex3-byte1-fix-vex3byte1 (equal (vex3-byte1->m-mmmm$inline (vex3-byte1-fix vex3byte1)) (vex3-byte1->m-mmmm$inline vex3byte1)))
Theorem:
(defthm vex3-byte1->m-mmmm$inline-vex3-byte1-equiv-congruence-on-vex3byte1 (implies (vex3-byte1-equiv vex3byte1 vex3byte1-equiv) (equal (vex3-byte1->m-mmmm$inline vex3byte1) (vex3-byte1->m-mmmm$inline vex3byte1-equiv))) :rule-classes :congruence)
Theorem:
(defthm vex3-byte1->m-mmmm-of-vex3-byte1 (equal (vex3-byte1->m-mmmm (vex3-byte1 m-mmmm b x r)) (5bits-fix m-mmmm)))
Theorem:
(defthm vex3-byte1->m-mmmm-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps vex3byte1 vex3-byte1-equiv-under-mask) (vex3-byte1-equiv-under-mask vex3byte1 y fty::mask) (equal (logand (lognot fty::mask) 31) 0)) (equal (vex3-byte1->m-mmmm vex3byte1) (vex3-byte1->m-mmmm y))))