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