Access the |X86ISA|::|OE| field of a fp-statusbits bit structure.
(fp-statusbits->oe x) → oe
Function:
(defun fp-statusbits->oe$inline (x) (declare (xargs :guard (fp-statusbits-p x))) (mbe :logic (let ((x (fp-statusbits-fix x))) (part-select x :low 3 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 13) (ash (the (unsigned-byte 16) x) -3))))))
Theorem:
(defthm bitp-of-fp-statusbits->oe (b* ((oe (fp-statusbits->oe$inline x))) (bitp oe)) :rule-classes :rewrite)
Theorem:
(defthm fp-statusbits->oe$inline-of-fp-statusbits-fix-x (equal (fp-statusbits->oe$inline (fp-statusbits-fix x)) (fp-statusbits->oe$inline x)))
Theorem:
(defthm fp-statusbits->oe$inline-fp-statusbits-equiv-congruence-on-x (implies (fp-statusbits-equiv x x-equiv) (equal (fp-statusbits->oe$inline x) (fp-statusbits->oe$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm fp-statusbits->oe-of-fp-statusbits (equal (fp-statusbits->oe (fp-statusbits ie de ze oe ue pe sf es c0 c1 c2 top c3 b)) (bfix oe)))
Theorem:
(defthm fp-statusbits->oe-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x fp-statusbits-equiv-under-mask) (fp-statusbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 8) 0)) (equal (fp-statusbits->oe x) (fp-statusbits->oe y))))