Lines Matching refs:op

81 #define ADD_OP(op) \  argument
82 if (!(op = calloc(1, sizeof(*op)))) \
84 else for (list_add_tail(&op->list, ops_list); op; op = NULL)
97 struct stack_op *op = NULL; in arch_decode_instruction() local
146 ADD_OP(op) { in arch_decode_instruction()
147 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
148 op->src.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
149 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
150 op->dest.reg = CFI_SP; in arch_decode_instruction()
158 ADD_OP(op) { in arch_decode_instruction()
159 op->src.type = OP_SRC_REG; in arch_decode_instruction()
160 op->src.reg = op_to_cfi_reg[op1 & 0x7][rex_b]; in arch_decode_instruction()
161 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
169 ADD_OP(op) { in arch_decode_instruction()
170 op->src.type = OP_SRC_POP; in arch_decode_instruction()
171 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
172 op->dest.reg = op_to_cfi_reg[op1 & 0x7][rex_b]; in arch_decode_instruction()
180 ADD_OP(op) { in arch_decode_instruction()
181 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
182 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
197 ADD_OP(op) { in arch_decode_instruction()
198 op->src.type = OP_SRC_AND; in arch_decode_instruction()
199 op->src.reg = CFI_SP; in arch_decode_instruction()
200 op->src.offset = insn.immediate.value; in arch_decode_instruction()
201 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
202 op->dest.reg = CFI_SP; in arch_decode_instruction()
215 ADD_OP(op) { in arch_decode_instruction()
216 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
217 op->src.reg = CFI_SP; in arch_decode_instruction()
218 op->src.offset = insn.immediate.value * sign; in arch_decode_instruction()
219 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
220 op->dest.reg = CFI_SP; in arch_decode_instruction()
228 ADD_OP(op) { in arch_decode_instruction()
229 op->src.type = OP_SRC_REG; in arch_decode_instruction()
230 op->src.reg = CFI_SP; in arch_decode_instruction()
231 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
232 op->dest.reg = op_to_cfi_reg[modrm_rm][rex_b]; in arch_decode_instruction()
240 ADD_OP(op) { in arch_decode_instruction()
241 op->src.type = OP_SRC_REG; in arch_decode_instruction()
242 op->src.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
243 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
244 op->dest.reg = CFI_SP; in arch_decode_instruction()
255 ADD_OP(op) { in arch_decode_instruction()
256 op->src.type = OP_SRC_REG; in arch_decode_instruction()
257 op->src.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
258 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
259 op->dest.reg = CFI_BP; in arch_decode_instruction()
260 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
266 ADD_OP(op) { in arch_decode_instruction()
267 op->src.type = OP_SRC_REG; in arch_decode_instruction()
268 op->src.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
269 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
270 op->dest.reg = CFI_SP; in arch_decode_instruction()
271 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
281 ADD_OP(op) { in arch_decode_instruction()
282 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
283 op->src.reg = CFI_BP; in arch_decode_instruction()
284 op->src.offset = insn.displacement.value; in arch_decode_instruction()
285 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
286 op->dest.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
293 ADD_OP(op) { in arch_decode_instruction()
294 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
295 op->src.reg = CFI_SP; in arch_decode_instruction()
296 op->src.offset = insn.displacement.value; in arch_decode_instruction()
297 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
298 op->dest.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
307 ADD_OP(op) { in arch_decode_instruction()
310 op->src.type = OP_SRC_REG; in arch_decode_instruction()
313 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
314 op->src.offset = insn.displacement.value; in arch_decode_instruction()
316 op->src.reg = CFI_SP; in arch_decode_instruction()
317 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
318 op->dest.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
324 ADD_OP(op) { in arch_decode_instruction()
325 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
326 op->src.reg = CFI_BP; in arch_decode_instruction()
327 op->src.offset = insn.displacement.value; in arch_decode_instruction()
328 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
329 op->dest.reg = CFI_SP; in arch_decode_instruction()
341 ADD_OP(op) { in arch_decode_instruction()
342 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
343 op->src.reg = CFI_R10; in arch_decode_instruction()
344 op->src.offset = -8; in arch_decode_instruction()
345 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
346 op->dest.reg = CFI_SP; in arch_decode_instruction()
358 ADD_OP(op) { in arch_decode_instruction()
359 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
360 op->src.reg = CFI_R13; in arch_decode_instruction()
361 op->src.offset = -16; in arch_decode_instruction()
362 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
363 op->dest.reg = CFI_SP; in arch_decode_instruction()
371 ADD_OP(op) { in arch_decode_instruction()
372 op->src.type = OP_SRC_POP; in arch_decode_instruction()
373 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
383 ADD_OP(op) { in arch_decode_instruction()
384 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
385 op->dest.type = OP_DEST_PUSHF; in arch_decode_instruction()
391 ADD_OP(op) { in arch_decode_instruction()
392 op->src.type = OP_SRC_POPF; in arch_decode_instruction()
393 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
429 ADD_OP(op) { in arch_decode_instruction()
430 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
431 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
437 ADD_OP(op) { in arch_decode_instruction()
438 op->src.type = OP_SRC_POP; in arch_decode_instruction()
439 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
453 ADD_OP(op) in arch_decode_instruction()
454 op->dest.type = OP_DEST_LEAVE; in arch_decode_instruction()
480 ADD_OP(op) { in arch_decode_instruction()
482 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
483 op->src.reg = CFI_SP; in arch_decode_instruction()
484 op->src.offset = 5*8; in arch_decode_instruction()
485 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
486 op->dest.reg = CFI_SP; in arch_decode_instruction()
504 ADD_OP(op) { in arch_decode_instruction()
505 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
506 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
535 ADD_OP(op) { in arch_decode_instruction()
536 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
537 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()