Update the |X86ISA|::|BYTE2| field of a evex-prefixes bit structure.
(!evex-prefixes->byte2 byte2 x) → new-x
Function:
(defun !evex-prefixes->byte2$inline (byte2 x) (declare (xargs :guard (and (8bits-p byte2) (evex-prefixes-p x)))) (mbe :logic (b* ((byte2 (mbe :logic (8bits-fix byte2) :exec byte2)) (x (evex-prefixes-fix x))) (part-install byte2 x :width 8 :low 16)) :exec (the (unsigned-byte 32) (logior (the (unsigned-byte 32) (logand (the (unsigned-byte 32) x) (the (signed-byte 25) -16711681))) (the (unsigned-byte 24) (ash (the (unsigned-byte 8) byte2) 16))))))
Theorem:
(defthm evex-prefixes-p-of-!evex-prefixes->byte2 (b* ((new-x (!evex-prefixes->byte2$inline byte2 x))) (evex-prefixes-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm !evex-prefixes->byte2$inline-of-8bits-fix-byte2 (equal (!evex-prefixes->byte2$inline (8bits-fix byte2) x) (!evex-prefixes->byte2$inline byte2 x)))
Theorem:
(defthm !evex-prefixes->byte2$inline-8bits-equiv-congruence-on-byte2 (implies (8bits-equiv byte2 byte2-equiv) (equal (!evex-prefixes->byte2$inline byte2 x) (!evex-prefixes->byte2$inline byte2-equiv x))) :rule-classes :congruence)
Theorem:
(defthm !evex-prefixes->byte2$inline-of-evex-prefixes-fix-x (equal (!evex-prefixes->byte2$inline byte2 (evex-prefixes-fix x)) (!evex-prefixes->byte2$inline byte2 x)))
Theorem:
(defthm !evex-prefixes->byte2$inline-evex-prefixes-equiv-congruence-on-x (implies (evex-prefixes-equiv x x-equiv) (equal (!evex-prefixes->byte2$inline byte2 x) (!evex-prefixes->byte2$inline byte2 x-equiv))) :rule-classes :congruence)
Theorem:
(defthm !evex-prefixes->byte2-is-evex-prefixes (equal (!evex-prefixes->byte2 byte2 x) (change-evex-prefixes x :byte2 byte2)))
Theorem:
(defthm evex-prefixes->byte2-of-!evex-prefixes->byte2 (b* ((?new-x (!evex-prefixes->byte2$inline byte2 x))) (equal (evex-prefixes->byte2 new-x) (8bits-fix byte2))))
Theorem:
(defthm !evex-prefixes->byte2-equiv-under-mask (b* ((?new-x (!evex-prefixes->byte2$inline byte2 x))) (evex-prefixes-equiv-under-mask new-x x -16711681)))