Update the |X86ISA|::|ZM| field of a mxcsrbits bit structure.
(!mxcsrbits->zm zm x) → new-x
Function:
(defun !mxcsrbits->zm$inline (zm x) (declare (xargs :guard (and (bitp zm) (mxcsrbits-p x)))) (mbe :logic (b* ((zm (mbe :logic (bfix zm) :exec zm)) (x (mxcsrbits-fix x))) (part-install zm x :width 1 :low 9)) :exec (the (unsigned-byte 32) (logior (the (unsigned-byte 32) (logand (the (unsigned-byte 32) x) (the (signed-byte 11) -513))) (the (unsigned-byte 10) (ash (the (unsigned-byte 1) zm) 9))))))
Theorem:
(defthm mxcsrbits-p-of-!mxcsrbits->zm (b* ((new-x (!mxcsrbits->zm$inline zm x))) (mxcsrbits-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm !mxcsrbits->zm$inline-of-bfix-zm (equal (!mxcsrbits->zm$inline (bfix zm) x) (!mxcsrbits->zm$inline zm x)))
Theorem:
(defthm !mxcsrbits->zm$inline-bit-equiv-congruence-on-zm (implies (bit-equiv zm zm-equiv) (equal (!mxcsrbits->zm$inline zm x) (!mxcsrbits->zm$inline zm-equiv x))) :rule-classes :congruence)
Theorem:
(defthm !mxcsrbits->zm$inline-of-mxcsrbits-fix-x (equal (!mxcsrbits->zm$inline zm (mxcsrbits-fix x)) (!mxcsrbits->zm$inline zm x)))
Theorem:
(defthm !mxcsrbits->zm$inline-mxcsrbits-equiv-congruence-on-x (implies (mxcsrbits-equiv x x-equiv) (equal (!mxcsrbits->zm$inline zm x) (!mxcsrbits->zm$inline zm x-equiv))) :rule-classes :congruence)
Theorem:
(defthm !mxcsrbits->zm-is-mxcsrbits (equal (!mxcsrbits->zm zm x) (change-mxcsrbits x :zm zm)))
Theorem:
(defthm mxcsrbits->zm-of-!mxcsrbits->zm (b* ((?new-x (!mxcsrbits->zm$inline zm x))) (equal (mxcsrbits->zm new-x) (bfix zm))))
Theorem:
(defthm !mxcsrbits->zm-equiv-under-mask (b* ((?new-x (!mxcsrbits->zm$inline zm x))) (mxcsrbits-equiv-under-mask new-x x -513)))