Lines Matching refs:op

105 #define ADD_OP(op) \  argument
106 if (!(op = calloc(1, sizeof(*op)))) \
108 else for (*ops_list = op, ops_list = &op->next; op; op = NULL)
159 struct stack_op *op = NULL; in arch_decode_instruction() local
215 ADD_OP(op) { in arch_decode_instruction()
216 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
217 op->src.reg = modrm_reg; in arch_decode_instruction()
218 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
219 op->dest.reg = CFI_SP; in arch_decode_instruction()
227 ADD_OP(op) { in arch_decode_instruction()
228 op->src.type = OP_SRC_REG; in arch_decode_instruction()
229 op->src.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
230 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
238 ADD_OP(op) { in arch_decode_instruction()
239 op->src.type = OP_SRC_POP; in arch_decode_instruction()
240 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
241 op->dest.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
249 ADD_OP(op) { in arch_decode_instruction()
250 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
251 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
297 ADD_OP(op) { in arch_decode_instruction()
298 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
299 op->src.reg = CFI_SP; in arch_decode_instruction()
300 op->src.offset = imm; in arch_decode_instruction()
301 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
302 op->dest.reg = CFI_SP; in arch_decode_instruction()
308 ADD_OP(op) { in arch_decode_instruction()
309 op->src.type = OP_SRC_AND; in arch_decode_instruction()
310 op->src.reg = CFI_SP; in arch_decode_instruction()
311 op->src.offset = ins.immediate.value; in arch_decode_instruction()
312 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
313 op->dest.reg = CFI_SP; in arch_decode_instruction()
332 ADD_OP(op) { in arch_decode_instruction()
333 op->src.type = OP_SRC_REG; in arch_decode_instruction()
334 op->src.reg = CFI_SP; in arch_decode_instruction()
335 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
336 op->dest.reg = modrm_rm; in arch_decode_instruction()
353 ADD_OP(op) { in arch_decode_instruction()
354 op->src.type = OP_SRC_REG; in arch_decode_instruction()
355 op->src.reg = CFI_SP; in arch_decode_instruction()
356 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
357 op->dest.reg = modrm_rm; in arch_decode_instruction()
358 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
369 ADD_OP(op) { in arch_decode_instruction()
370 op->src.type = OP_SRC_REG; in arch_decode_instruction()
371 op->src.reg = modrm_reg; in arch_decode_instruction()
372 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
373 op->dest.reg = CFI_SP; in arch_decode_instruction()
386 ADD_OP(op) { in arch_decode_instruction()
387 op->src.type = OP_SRC_REG; in arch_decode_instruction()
388 op->src.reg = modrm_reg; in arch_decode_instruction()
389 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
390 op->dest.reg = CFI_BP; in arch_decode_instruction()
391 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
399 ADD_OP(op) { in arch_decode_instruction()
400 op->src.type = OP_SRC_REG; in arch_decode_instruction()
401 op->src.reg = modrm_reg; in arch_decode_instruction()
402 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
403 op->dest.reg = CFI_SP; in arch_decode_instruction()
404 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
418 ADD_OP(op) { in arch_decode_instruction()
419 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
420 op->src.reg = CFI_BP; in arch_decode_instruction()
421 op->src.offset = ins.displacement.value; in arch_decode_instruction()
422 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
423 op->dest.reg = modrm_reg; in arch_decode_instruction()
431 ADD_OP(op) { in arch_decode_instruction()
432 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
433 op->src.reg = CFI_SP; in arch_decode_instruction()
434 op->src.offset = ins.displacement.value; in arch_decode_instruction()
435 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
436 op->dest.reg = modrm_reg; in arch_decode_instruction()
465 ADD_OP(op) { in arch_decode_instruction()
466 op->src.offset = ins.displacement.value; in arch_decode_instruction()
467 if (!op->src.offset) { in arch_decode_instruction()
469 op->src.type = OP_SRC_REG; in arch_decode_instruction()
472 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
474 op->src.reg = modrm_rm; in arch_decode_instruction()
475 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
476 op->dest.reg = modrm_reg; in arch_decode_instruction()
482 ADD_OP(op) { in arch_decode_instruction()
483 op->src.type = OP_SRC_POP; in arch_decode_instruction()
484 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
494 ADD_OP(op) { in arch_decode_instruction()
495 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
496 op->dest.type = OP_DEST_PUSHF; in arch_decode_instruction()
502 ADD_OP(op) { in arch_decode_instruction()
503 op->src.type = OP_SRC_POPF; in arch_decode_instruction()
504 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
554 ADD_OP(op) { in arch_decode_instruction()
555 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
556 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
562 ADD_OP(op) { in arch_decode_instruction()
563 op->src.type = OP_SRC_POP; in arch_decode_instruction()
564 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
578 ADD_OP(op) { in arch_decode_instruction()
579 op->src.type = OP_SRC_REG; in arch_decode_instruction()
580 op->src.reg = CFI_BP; in arch_decode_instruction()
581 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
582 op->dest.reg = CFI_SP; in arch_decode_instruction()
584 ADD_OP(op) { in arch_decode_instruction()
585 op->src.type = OP_SRC_POP; in arch_decode_instruction()
586 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
587 op->dest.reg = CFI_BP; in arch_decode_instruction()
648 ADD_OP(op) { in arch_decode_instruction()
650 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
651 op->src.reg = CFI_SP; in arch_decode_instruction()
652 op->src.offset = 5*8; in arch_decode_instruction()
653 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
654 op->dest.reg = CFI_SP; in arch_decode_instruction()
678 ADD_OP(op) { in arch_decode_instruction()
679 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
680 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
713 ADD_OP(op) { in arch_decode_instruction()
714 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
715 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()