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