Update the |X86ISA|::|RESERVED| field of a mxcsrbits bit structure.
(!mxcsrbits->reserved reserved x) → new-x
Function:
(defun !mxcsrbits->reserved$inline (reserved x) (declare (xargs :guard (and (16bits-p reserved) (mxcsrbits-p x)))) (mbe :logic (b* ((reserved (mbe :logic (16bits-fix reserved) :exec reserved)) (x (mxcsrbits-fix x))) (part-install reserved x :width 16 :low 16)) :exec (the (unsigned-byte 32) (logior (the (unsigned-byte 32) (logand (the (unsigned-byte 32) x) (the (signed-byte 33) -4294901761))) (the (unsigned-byte 32) (ash (the (unsigned-byte 16) reserved) 16))))))
Theorem:
(defthm mxcsrbits-p-of-!mxcsrbits->reserved (b* ((new-x (!mxcsrbits->reserved$inline reserved x))) (mxcsrbits-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm !mxcsrbits->reserved$inline-of-16bits-fix-reserved (equal (!mxcsrbits->reserved$inline (16bits-fix reserved) x) (!mxcsrbits->reserved$inline reserved x)))
Theorem:
(defthm !mxcsrbits->reserved$inline-16bits-equiv-congruence-on-reserved (implies (16bits-equiv reserved reserved-equiv) (equal (!mxcsrbits->reserved$inline reserved x) (!mxcsrbits->reserved$inline reserved-equiv x))) :rule-classes :congruence)
Theorem:
(defthm !mxcsrbits->reserved$inline-of-mxcsrbits-fix-x (equal (!mxcsrbits->reserved$inline reserved (mxcsrbits-fix x)) (!mxcsrbits->reserved$inline reserved x)))
Theorem:
(defthm !mxcsrbits->reserved$inline-mxcsrbits-equiv-congruence-on-x (implies (mxcsrbits-equiv x x-equiv) (equal (!mxcsrbits->reserved$inline reserved x) (!mxcsrbits->reserved$inline reserved x-equiv))) :rule-classes :congruence)
Theorem:
(defthm !mxcsrbits->reserved-is-mxcsrbits (equal (!mxcsrbits->reserved reserved x) (change-mxcsrbits x :reserved reserved)))
Theorem:
(defthm mxcsrbits->reserved-of-!mxcsrbits->reserved (b* ((?new-x (!mxcsrbits->reserved$inline reserved x))) (equal (mxcsrbits->reserved new-x) (16bits-fix reserved))))
Theorem:
(defthm !mxcsrbits->reserved-equiv-under-mask (b* ((?new-x (!mxcsrbits->reserved$inline reserved x))) (mxcsrbits-equiv-under-mask new-x x 65535)))