Access the |X86ISA|::|BNDCSR-STATE| field of a xcr0bits bit structure.
(xcr0bits->bndcsr-state x) → bndcsr-state
Function:
(defun xcr0bits->bndcsr-state$inline (x) (declare (xargs :guard (xcr0bits-p x))) (mbe :logic (let ((x (xcr0bits-fix x))) (part-select x :low 4 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 60) (ash (the (unsigned-byte 64) x) -4))))))
Theorem:
(defthm bitp-of-xcr0bits->bndcsr-state (b* ((bndcsr-state (xcr0bits->bndcsr-state$inline x))) (bitp bndcsr-state)) :rule-classes :rewrite)
Theorem:
(defthm xcr0bits->bndcsr-state$inline-of-xcr0bits-fix-x (equal (xcr0bits->bndcsr-state$inline (xcr0bits-fix x)) (xcr0bits->bndcsr-state$inline x)))
Theorem:
(defthm xcr0bits->bndcsr-state$inline-xcr0bits-equiv-congruence-on-x (implies (xcr0bits-equiv x x-equiv) (equal (xcr0bits->bndcsr-state$inline x) (xcr0bits->bndcsr-state$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm xcr0bits->bndcsr-state-of-xcr0bits (equal (xcr0bits->bndcsr-state (xcr0bits fpu/mmx-state sse-state avx-state bndreg-state bndcsr-state opmask-state zmm_hi256-state hi16_zmm-state res1 pkru-state res2 tileconfig-state tiledata-state res4)) (bfix bndcsr-state)))
Theorem:
(defthm xcr0bits->bndcsr-state-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x xcr0bits-equiv-under-mask) (xcr0bits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 16) 0)) (equal (xcr0bits->bndcsr-state x) (xcr0bits->bndcsr-state y))))