Codes for Operand Type; See Intel Vol. 2, Appendix A.2.2
This is an ordinary defenum.
Function:
(defun operand-type-code-p (x) (declare (xargs :guard t)) (or (eq x 'a) (eq x 'b) (eq x 'c) (eq x 'd) (eq x 'dq) (eq x 'p) (eq x 'pd) (eq x 'pi) (eq x 'ps) (eq x 'q) (eq x 'qq) (eq x 's) (eq x 'sd) (eq x 'ss) (eq x 'si) (eq x 'v) (eq x 'w) (eq x 'x) (eq x 'y) (eq x 'z)))
Theorem: type-when-operand-type-code-p
(defthm type-when-operand-type-code-p (implies (operand-type-code-p x) (if (symbolp x) (if (not (equal x 't)) (not (equal x 'nil)) 'nil) 'nil)) :rule-classes :compound-recognizer)