Update the |X86ISA|::|PP| field of a evex-byte2 bit structure.
(!evex-byte2->pp pp x) → new-x
Function:
(defun !evex-byte2->pp$inline (pp x) (declare (xargs :guard (and (2bits-p pp) (evex-byte2-p x)))) (mbe :logic (b* ((pp (mbe :logic (2bits-fix pp) :exec pp)) (x (evex-byte2-fix x))) (part-install pp x :width 2 :low 0)) :exec (the (unsigned-byte 8) (logior (the (unsigned-byte 8) (logand (the (unsigned-byte 8) x) (the (signed-byte 3) -4))) (the (unsigned-byte 2) pp)))))
Theorem:
(defthm evex-byte2-p-of-!evex-byte2->pp (b* ((new-x (!evex-byte2->pp$inline pp x))) (evex-byte2-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm !evex-byte2->pp$inline-of-2bits-fix-pp (equal (!evex-byte2->pp$inline (2bits-fix pp) x) (!evex-byte2->pp$inline pp x)))
Theorem:
(defthm !evex-byte2->pp$inline-2bits-equiv-congruence-on-pp (implies (2bits-equiv pp pp-equiv) (equal (!evex-byte2->pp$inline pp x) (!evex-byte2->pp$inline pp-equiv x))) :rule-classes :congruence)
Theorem:
(defthm !evex-byte2->pp$inline-of-evex-byte2-fix-x (equal (!evex-byte2->pp$inline pp (evex-byte2-fix x)) (!evex-byte2->pp$inline pp 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 pp x) (!evex-byte2->pp$inline pp x-equiv))) :rule-classes :congruence)
Theorem:
(defthm !evex-byte2->pp-is-evex-byte2 (equal (!evex-byte2->pp pp x) (change-evex-byte2 x :pp pp)))
Theorem:
(defthm evex-byte2->pp-of-!evex-byte2->pp (b* ((?new-x (!evex-byte2->pp$inline pp x))) (equal (evex-byte2->pp new-x) (2bits-fix pp))))
Theorem:
(defthm !evex-byte2->pp-equiv-under-mask (b* ((?new-x (!evex-byte2->pp$inline pp x))) (evex-byte2-equiv-under-mask new-x x -4)))