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