Access the |X86ISA|::|RES| field of a evex-byte1 bit structure.
(evex-byte1->res byte1) → res
Function:
(defun evex-byte1->res$inline (byte1) (declare (xargs :guard (evex-byte1-p byte1))) (mbe :logic (let ((byte1 (evex-byte1-fix byte1))) (part-select byte1 :low 3 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 5) (ash (the (unsigned-byte 8) byte1) -3))))))
Theorem:
(defthm bitp-of-evex-byte1->res (b* ((res (evex-byte1->res$inline byte1))) (bitp res)) :rule-classes :rewrite)
Theorem:
(defthm evex-byte1->res$inline-of-evex-byte1-fix-byte1 (equal (evex-byte1->res$inline (evex-byte1-fix byte1)) (evex-byte1->res$inline byte1)))
Theorem:
(defthm evex-byte1->res$inline-evex-byte1-equiv-congruence-on-byte1 (implies (evex-byte1-equiv byte1 byte1-equiv) (equal (evex-byte1->res$inline byte1) (evex-byte1->res$inline byte1-equiv))) :rule-classes :congruence)
Theorem:
(defthm evex-byte1->res-of-evex-byte1 (equal (evex-byte1->res (evex-byte1 mmm res r-prime b x r)) (bfix res)))
Theorem:
(defthm evex-byte1->res-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps byte1 evex-byte1-equiv-under-mask) (evex-byte1-equiv-under-mask byte1 y fty::mask) (equal (logand (lognot fty::mask) 8) 0)) (equal (evex-byte1->res byte1) (evex-byte1->res y))))