Lines Matching refs:attr
110 static inline int inat_is_legacy_prefix(insn_attr_t attr) in inat_is_legacy_prefix() argument
112 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix()
113 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix()
116 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument
118 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix()
121 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument
123 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix()
126 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument
128 return (attr & INAT_PFX_MASK) == INAT_PFX_REX; in inat_is_rex_prefix()
131 static inline int inat_last_prefix_id(insn_attr_t attr) in inat_last_prefix_id() argument
133 if ((attr & INAT_PFX_MASK) > INAT_LSTPFX_MAX) in inat_last_prefix_id()
136 return attr & INAT_PFX_MASK; in inat_last_prefix_id()
139 static inline int inat_is_vex_prefix(insn_attr_t attr) in inat_is_vex_prefix() argument
141 attr &= INAT_PFX_MASK; in inat_is_vex_prefix()
142 return attr == INAT_PFX_VEX2 || attr == INAT_PFX_VEX3 || in inat_is_vex_prefix()
143 attr == INAT_PFX_EVEX; in inat_is_vex_prefix()
146 static inline int inat_is_evex_prefix(insn_attr_t attr) in inat_is_evex_prefix() argument
148 return (attr & INAT_PFX_MASK) == INAT_PFX_EVEX; in inat_is_evex_prefix()
151 static inline int inat_is_vex3_prefix(insn_attr_t attr) in inat_is_vex3_prefix() argument
153 return (attr & INAT_PFX_MASK) == INAT_PFX_VEX3; in inat_is_vex3_prefix()
156 static inline int inat_is_escape(insn_attr_t attr) in inat_is_escape() argument
158 return attr & INAT_ESC_MASK; in inat_is_escape()
161 static inline int inat_escape_id(insn_attr_t attr) in inat_escape_id() argument
163 return (attr & INAT_ESC_MASK) >> INAT_ESC_OFFS; in inat_escape_id()
166 static inline int inat_is_group(insn_attr_t attr) in inat_is_group() argument
168 return attr & INAT_GRP_MASK; in inat_is_group()
171 static inline int inat_group_id(insn_attr_t attr) in inat_group_id() argument
173 return (attr & INAT_GRP_MASK) >> INAT_GRP_OFFS; in inat_group_id()
176 static inline int inat_group_common_attribute(insn_attr_t attr) in inat_group_common_attribute() argument
178 return attr & ~INAT_GRP_MASK; in inat_group_common_attribute()
181 static inline int inat_has_immediate(insn_attr_t attr) in inat_has_immediate() argument
183 return attr & INAT_IMM_MASK; in inat_has_immediate()
186 static inline int inat_immediate_size(insn_attr_t attr) in inat_immediate_size() argument
188 return (attr & INAT_IMM_MASK) >> INAT_IMM_OFFS; in inat_immediate_size()
191 static inline int inat_has_modrm(insn_attr_t attr) in inat_has_modrm() argument
193 return attr & INAT_MODRM; in inat_has_modrm()
196 static inline int inat_is_force64(insn_attr_t attr) in inat_is_force64() argument
198 return attr & INAT_FORCE64; in inat_is_force64()
201 static inline int inat_has_second_immediate(insn_attr_t attr) in inat_has_second_immediate() argument
203 return attr & INAT_SCNDIMM; in inat_has_second_immediate()
206 static inline int inat_has_moffset(insn_attr_t attr) in inat_has_moffset() argument
208 return attr & INAT_MOFFSET; in inat_has_moffset()
211 static inline int inat_has_variant(insn_attr_t attr) in inat_has_variant() argument
213 return attr & INAT_VARIANT; in inat_has_variant()
216 static inline int inat_accept_vex(insn_attr_t attr) in inat_accept_vex() argument
218 return attr & INAT_VEXOK; in inat_accept_vex()
221 static inline int inat_must_vex(insn_attr_t attr) in inat_must_vex() argument
223 return attr & (INAT_VEXONLY | INAT_EVEXONLY); in inat_must_vex()
226 static inline int inat_must_evex(insn_attr_t attr) in inat_must_evex() argument
228 return attr & INAT_EVEXONLY; in inat_must_evex()