Access the |X86ISA|::|NXT| field of a prefixes bit structure.
(prefixes->nxt x) → nxt
Function:
(defun prefixes->nxt$inline (x) (declare (xargs :guard (prefixes-p x))) (mbe :logic (let ((x (prefixes-fix x))) (part-select x :low 44 :width 8)) :exec (the (unsigned-byte 8) (logand (the (unsigned-byte 8) 255) (the (unsigned-byte 8) (ash (the (unsigned-byte 52) x) -44))))))
Theorem:
(defthm 8bits-p-of-prefixes->nxt (b* ((nxt (prefixes->nxt$inline x))) (8bits-p nxt)) :rule-classes :rewrite)
Theorem:
(defthm prefixes->nxt$inline-of-prefixes-fix-x (equal (prefixes->nxt$inline (prefixes-fix x)) (prefixes->nxt$inline x)))
Theorem:
(defthm prefixes->nxt$inline-prefixes-equiv-congruence-on-x (implies (prefixes-equiv x x-equiv) (equal (prefixes->nxt$inline x) (prefixes->nxt$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm prefixes->nxt-of-prefixes (equal (prefixes->nxt (prefixes num lck rep seg opr adr nxt)) (8bits-fix nxt)))
Theorem:
(defthm prefixes->nxt-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x prefixes-equiv-under-mask) (prefixes-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 4486007441326080) 0)) (equal (prefixes->nxt x) (prefixes->nxt y))))