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)
165 struct stack_op *op = NULL; in arch_decode_instruction() local
230 ADD_OP(op) { in arch_decode_instruction()
231 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
232 op->src.reg = modrm_reg; in arch_decode_instruction()
233 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
234 op->dest.reg = CFI_SP; in arch_decode_instruction()
242 ADD_OP(op) { in arch_decode_instruction()
243 op->src.type = OP_SRC_REG; in arch_decode_instruction()
244 op->src.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
245 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
253 ADD_OP(op) { in arch_decode_instruction()
254 op->src.type = OP_SRC_POP; in arch_decode_instruction()
255 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
256 op->dest.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
264 ADD_OP(op) { in arch_decode_instruction()
265 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
266 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
312 ADD_OP(op) { in arch_decode_instruction()
313 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
314 op->src.reg = CFI_SP; in arch_decode_instruction()
315 op->src.offset = imm; in arch_decode_instruction()
316 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
317 op->dest.reg = CFI_SP; in arch_decode_instruction()
323 ADD_OP(op) { in arch_decode_instruction()
324 op->src.type = OP_SRC_AND; in arch_decode_instruction()
325 op->src.reg = CFI_SP; in arch_decode_instruction()
326 op->src.offset = ins.immediate.value; in arch_decode_instruction()
327 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
328 op->dest.reg = CFI_SP; in arch_decode_instruction()
347 ADD_OP(op) { in arch_decode_instruction()
348 op->src.type = OP_SRC_REG; in arch_decode_instruction()
349 op->src.reg = CFI_SP; in arch_decode_instruction()
350 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
351 op->dest.reg = modrm_rm; in arch_decode_instruction()
368 ADD_OP(op) { in arch_decode_instruction()
369 op->src.type = OP_SRC_REG; in arch_decode_instruction()
370 op->src.reg = CFI_SP; in arch_decode_instruction()
371 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
372 op->dest.reg = modrm_rm; in arch_decode_instruction()
373 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
384 ADD_OP(op) { in arch_decode_instruction()
385 op->src.type = OP_SRC_REG; in arch_decode_instruction()
386 op->src.reg = modrm_reg; in arch_decode_instruction()
387 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
388 op->dest.reg = CFI_SP; in arch_decode_instruction()
401 ADD_OP(op) { in arch_decode_instruction()
402 op->src.type = OP_SRC_REG; in arch_decode_instruction()
403 op->src.reg = modrm_reg; in arch_decode_instruction()
404 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
405 op->dest.reg = CFI_BP; in arch_decode_instruction()
406 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
414 ADD_OP(op) { in arch_decode_instruction()
415 op->src.type = OP_SRC_REG; in arch_decode_instruction()
416 op->src.reg = modrm_reg; in arch_decode_instruction()
417 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
418 op->dest.reg = CFI_SP; in arch_decode_instruction()
419 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
433 ADD_OP(op) { in arch_decode_instruction()
434 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
435 op->src.reg = CFI_BP; in arch_decode_instruction()
436 op->src.offset = ins.displacement.value; in arch_decode_instruction()
437 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
438 op->dest.reg = modrm_reg; in arch_decode_instruction()
446 ADD_OP(op) { in arch_decode_instruction()
447 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
448 op->src.reg = CFI_SP; in arch_decode_instruction()
449 op->src.offset = ins.displacement.value; in arch_decode_instruction()
450 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
451 op->dest.reg = modrm_reg; in arch_decode_instruction()
482 ADD_OP(op) { in arch_decode_instruction()
483 op->src.offset = ins.displacement.value; in arch_decode_instruction()
484 if (!op->src.offset) { in arch_decode_instruction()
486 op->src.type = OP_SRC_REG; in arch_decode_instruction()
489 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
491 op->src.reg = modrm_rm; in arch_decode_instruction()
492 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
493 op->dest.reg = modrm_reg; in arch_decode_instruction()
499 ADD_OP(op) { in arch_decode_instruction()
500 op->src.type = OP_SRC_POP; in arch_decode_instruction()
501 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
511 ADD_OP(op) { in arch_decode_instruction()
512 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
513 op->dest.type = OP_DEST_PUSHF; in arch_decode_instruction()
519 ADD_OP(op) { in arch_decode_instruction()
520 op->src.type = OP_SRC_POPF; in arch_decode_instruction()
521 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
583 ADD_OP(op) { in arch_decode_instruction()
584 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
585 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
591 ADD_OP(op) { in arch_decode_instruction()
592 op->src.type = OP_SRC_POP; in arch_decode_instruction()
593 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
607 ADD_OP(op) { in arch_decode_instruction()
608 op->src.type = OP_SRC_REG; in arch_decode_instruction()
609 op->src.reg = CFI_BP; in arch_decode_instruction()
610 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
611 op->dest.reg = CFI_SP; in arch_decode_instruction()
613 ADD_OP(op) { in arch_decode_instruction()
614 op->src.type = OP_SRC_POP; in arch_decode_instruction()
615 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
616 op->dest.reg = CFI_BP; in arch_decode_instruction()
677 ADD_OP(op) { in arch_decode_instruction()
679 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
680 op->src.reg = CFI_SP; in arch_decode_instruction()
681 op->src.offset = 5*8; in arch_decode_instruction()
682 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
683 op->dest.reg = CFI_SP; in arch_decode_instruction()
707 ADD_OP(op) { in arch_decode_instruction()
708 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
709 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
742 ADD_OP(op) { in arch_decode_instruction()
743 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
744 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()