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