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