Access the |X86ISA|::|ES| field of a fp-statusbits bit structure.
(fp-statusbits->es x) → es
Function:
(defun fp-statusbits->es$inline (x) (declare (xargs :guard (fp-statusbits-p x))) (mbe :logic (let ((x (fp-statusbits-fix x))) (part-select x :low 7 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 9) (ash (the (unsigned-byte 16) x) -7))))))
Theorem:
(defthm bitp-of-fp-statusbits->es (b* ((es (fp-statusbits->es$inline x))) (bitp es)) :rule-classes :rewrite)
Theorem:
(defthm fp-statusbits->es$inline-of-fp-statusbits-fix-x (equal (fp-statusbits->es$inline (fp-statusbits-fix x)) (fp-statusbits->es$inline x)))
Theorem:
(defthm fp-statusbits->es$inline-fp-statusbits-equiv-congruence-on-x (implies (fp-statusbits-equiv x x-equiv) (equal (fp-statusbits->es$inline x) (fp-statusbits->es$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm fp-statusbits->es-of-fp-statusbits (equal (fp-statusbits->es (fp-statusbits ie de ze oe ue pe sf es c0 c1 c2 top c3 b)) (bfix es)))
Theorem:
(defthm fp-statusbits->es-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) 128) 0)) (equal (fp-statusbits->es x) (fp-statusbits->es y))))