Access the |X86ISA|::|PP| field of a evex-byte2 bit structure.
(evex-byte2->pp x) → pp
Function:
(defun evex-byte2->pp$inline (x) (declare (xargs :guard (evex-byte2-p x))) (mbe :logic (let ((x (evex-byte2-fix x))) (part-select x :low 0 :width 2)) :exec (the (unsigned-byte 2) (logand (the (unsigned-byte 2) 3) (the (unsigned-byte 8) x)))))
Theorem:
(defthm 2bits-p-of-evex-byte2->pp (b* ((pp (evex-byte2->pp$inline x))) (2bits-p pp)) :rule-classes :rewrite)
Theorem:
(defthm evex-byte2->pp$inline-of-evex-byte2-fix-x (equal (evex-byte2->pp$inline (evex-byte2-fix x)) (evex-byte2->pp$inline x)))
Theorem:
(defthm evex-byte2->pp$inline-evex-byte2-equiv-congruence-on-x (implies (evex-byte2-equiv x x-equiv) (equal (evex-byte2->pp$inline x) (evex-byte2->pp$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm evex-byte2->pp-of-evex-byte2 (equal (evex-byte2->pp (evex-byte2 pp res vvvv w)) (2bits-fix pp)))
Theorem:
(defthm evex-byte2->pp-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) 3) 0)) (equal (evex-byte2->pp x) (evex-byte2->pp y))))