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