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