Access the |X86ISA|::|BYTE1| field of a vex-prefixes bit structure.
(vex-prefixes->byte1 x) → byte1
Function:
(defun vex-prefixes->byte1$inline (x) (declare (xargs :guard (vex-prefixes-p x))) (mbe :logic (let ((x (vex-prefixes-fix x))) (part-select x :low 8 :width 8)) :exec (the (unsigned-byte 8) (logand (the (unsigned-byte 8) 255) (the (unsigned-byte 16) (ash (the (unsigned-byte 24) x) -8))))))
Theorem:
(defthm 8bits-p-of-vex-prefixes->byte1 (b* ((byte1 (vex-prefixes->byte1$inline x))) (8bits-p byte1)) :rule-classes :rewrite)
Theorem:
(defthm vex-prefixes->byte1$inline-of-vex-prefixes-fix-x (equal (vex-prefixes->byte1$inline (vex-prefixes-fix x)) (vex-prefixes->byte1$inline x)))
Theorem:
(defthm vex-prefixes->byte1$inline-vex-prefixes-equiv-congruence-on-x (implies (vex-prefixes-equiv x x-equiv) (equal (vex-prefixes->byte1$inline x) (vex-prefixes->byte1$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm vex-prefixes->byte1-of-vex-prefixes (equal (vex-prefixes->byte1 (vex-prefixes byte0 byte1 byte2)) (8bits-fix byte1)))
Theorem:
(defthm vex-prefixes->byte1-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x vex-prefixes-equiv-under-mask) (vex-prefixes-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 65280) 0)) (equal (vex-prefixes->byte1 x) (vex-prefixes->byte1 y))))