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
221 ADD_OP(op) { in arch_decode_instruction()
222 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
223 op->src.reg = modrm_reg; in arch_decode_instruction()
224 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
225 op->dest.reg = CFI_SP; in arch_decode_instruction()
233 ADD_OP(op) { in arch_decode_instruction()
234 op->src.type = OP_SRC_REG; in arch_decode_instruction()
235 op->src.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
236 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
244 ADD_OP(op) { in arch_decode_instruction()
245 op->src.type = OP_SRC_POP; in arch_decode_instruction()
246 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
247 op->dest.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
255 ADD_OP(op) { in arch_decode_instruction()
256 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
257 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
303 ADD_OP(op) { in arch_decode_instruction()
304 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
305 op->src.reg = CFI_SP; in arch_decode_instruction()
306 op->src.offset = imm; in arch_decode_instruction()
307 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
308 op->dest.reg = CFI_SP; in arch_decode_instruction()
314 ADD_OP(op) { in arch_decode_instruction()
315 op->src.type = OP_SRC_AND; in arch_decode_instruction()
316 op->src.reg = CFI_SP; in arch_decode_instruction()
317 op->src.offset = ins.immediate.value; in arch_decode_instruction()
318 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
319 op->dest.reg = CFI_SP; in arch_decode_instruction()
338 ADD_OP(op) { in arch_decode_instruction()
339 op->src.type = OP_SRC_REG; in arch_decode_instruction()
340 op->src.reg = CFI_SP; in arch_decode_instruction()
341 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
342 op->dest.reg = modrm_rm; in arch_decode_instruction()
359 ADD_OP(op) { in arch_decode_instruction()
360 op->src.type = OP_SRC_REG; in arch_decode_instruction()
361 op->src.reg = CFI_SP; in arch_decode_instruction()
362 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
363 op->dest.reg = modrm_rm; in arch_decode_instruction()
364 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
375 ADD_OP(op) { in arch_decode_instruction()
376 op->src.type = OP_SRC_REG; in arch_decode_instruction()
377 op->src.reg = modrm_reg; in arch_decode_instruction()
378 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
379 op->dest.reg = CFI_SP; in arch_decode_instruction()
392 ADD_OP(op) { in arch_decode_instruction()
393 op->src.type = OP_SRC_REG; in arch_decode_instruction()
394 op->src.reg = modrm_reg; in arch_decode_instruction()
395 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
396 op->dest.reg = CFI_BP; in arch_decode_instruction()
397 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
405 ADD_OP(op) { in arch_decode_instruction()
406 op->src.type = OP_SRC_REG; in arch_decode_instruction()
407 op->src.reg = modrm_reg; in arch_decode_instruction()
408 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
409 op->dest.reg = CFI_SP; in arch_decode_instruction()
410 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
424 ADD_OP(op) { in arch_decode_instruction()
425 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
426 op->src.reg = CFI_BP; in arch_decode_instruction()
427 op->src.offset = ins.displacement.value; in arch_decode_instruction()
428 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
429 op->dest.reg = modrm_reg; in arch_decode_instruction()
437 ADD_OP(op) { in arch_decode_instruction()
438 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
439 op->src.reg = CFI_SP; in arch_decode_instruction()
440 op->src.offset = ins.displacement.value; in arch_decode_instruction()
441 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
442 op->dest.reg = modrm_reg; in arch_decode_instruction()
471 ADD_OP(op) { in arch_decode_instruction()
472 op->src.offset = ins.displacement.value; in arch_decode_instruction()
473 if (!op->src.offset) { in arch_decode_instruction()
475 op->src.type = OP_SRC_REG; in arch_decode_instruction()
478 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
480 op->src.reg = modrm_rm; in arch_decode_instruction()
481 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
482 op->dest.reg = modrm_reg; in arch_decode_instruction()
488 ADD_OP(op) { in arch_decode_instruction()
489 op->src.type = OP_SRC_POP; in arch_decode_instruction()
490 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
500 ADD_OP(op) { in arch_decode_instruction()
501 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
502 op->dest.type = OP_DEST_PUSHF; in arch_decode_instruction()
508 ADD_OP(op) { in arch_decode_instruction()
509 op->src.type = OP_SRC_POPF; in arch_decode_instruction()
510 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
569 ADD_OP(op) { in arch_decode_instruction()
570 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
571 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
577 ADD_OP(op) { in arch_decode_instruction()
578 op->src.type = OP_SRC_POP; in arch_decode_instruction()
579 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
593 ADD_OP(op) { in arch_decode_instruction()
594 op->src.type = OP_SRC_REG; in arch_decode_instruction()
595 op->src.reg = CFI_BP; in arch_decode_instruction()
596 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
597 op->dest.reg = CFI_SP; in arch_decode_instruction()
599 ADD_OP(op) { in arch_decode_instruction()
600 op->src.type = OP_SRC_POP; in arch_decode_instruction()
601 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
602 op->dest.reg = CFI_BP; in arch_decode_instruction()
663 ADD_OP(op) { in arch_decode_instruction()
665 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
666 op->src.reg = CFI_SP; in arch_decode_instruction()
667 op->src.offset = 5*8; in arch_decode_instruction()
668 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
669 op->dest.reg = CFI_SP; in arch_decode_instruction()
693 ADD_OP(op) { in arch_decode_instruction()
694 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
695 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
728 ADD_OP(op) { in arch_decode_instruction()
729 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
730 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()