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