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