Read from word general-purpose registers
(rr16 reg x86) → *
Function:
(defun rr16$inline (reg x86) (declare (xargs :stobjs (x86))) (declare (type (unsigned-byte 4) reg)) (n16 (the (signed-byte 64) (rgfi reg x86))))
Theorem:
(defthm n16p-rr16 (unsigned-byte-p 16 (rr16 reg x86)) :rule-classes (:rewrite (:type-prescription :corollary (natp (rr16 reg x86)) :hints (("Goal" :in-theory '(unsigned-byte-p integer-range-p natp)))) (:linear :corollary (and (<= 0 (rr16 reg x86)) (< (rr16 reg x86) 65536)) :hints (("Goal" :in-theory '(unsigned-byte-p integer-range-p (:e expt)))))))