Lines Matching refs:op

76 #define ADD_OP(op) \  argument
77 if (!(op = calloc(1, sizeof(*op)))) \
79 else for (list_add_tail(&op->list, ops_list); op; op = NULL)
131 struct stack_op *op = NULL; in arch_decode_instruction() local
187 ADD_OP(op) { in arch_decode_instruction()
188 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
189 op->src.reg = modrm_reg; in arch_decode_instruction()
190 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
191 op->dest.reg = CFI_SP; in arch_decode_instruction()
199 ADD_OP(op) { in arch_decode_instruction()
200 op->src.type = OP_SRC_REG; in arch_decode_instruction()
201 op->src.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
202 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
210 ADD_OP(op) { in arch_decode_instruction()
211 op->src.type = OP_SRC_POP; in arch_decode_instruction()
212 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
213 op->dest.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
221 ADD_OP(op) { in arch_decode_instruction()
222 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
223 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
269 ADD_OP(op) { in arch_decode_instruction()
270 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
271 op->src.reg = CFI_SP; in arch_decode_instruction()
272 op->src.offset = imm; in arch_decode_instruction()
273 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
274 op->dest.reg = CFI_SP; in arch_decode_instruction()
280 ADD_OP(op) { in arch_decode_instruction()
281 op->src.type = OP_SRC_AND; in arch_decode_instruction()
282 op->src.reg = CFI_SP; in arch_decode_instruction()
283 op->src.offset = insn.immediate.value; in arch_decode_instruction()
284 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
285 op->dest.reg = CFI_SP; in arch_decode_instruction()
304 ADD_OP(op) { in arch_decode_instruction()
305 op->src.type = OP_SRC_REG; in arch_decode_instruction()
306 op->src.reg = CFI_SP; in arch_decode_instruction()
307 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
308 op->dest.reg = modrm_rm; in arch_decode_instruction()
325 ADD_OP(op) { in arch_decode_instruction()
326 op->src.type = OP_SRC_REG; in arch_decode_instruction()
327 op->src.reg = CFI_SP; in arch_decode_instruction()
328 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
329 op->dest.reg = modrm_rm; in arch_decode_instruction()
330 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
341 ADD_OP(op) { in arch_decode_instruction()
342 op->src.type = OP_SRC_REG; in arch_decode_instruction()
343 op->src.reg = modrm_reg; in arch_decode_instruction()
344 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
345 op->dest.reg = CFI_SP; in arch_decode_instruction()
358 ADD_OP(op) { in arch_decode_instruction()
359 op->src.type = OP_SRC_REG; in arch_decode_instruction()
360 op->src.reg = modrm_reg; in arch_decode_instruction()
361 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
362 op->dest.reg = CFI_BP; in arch_decode_instruction()
363 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
371 ADD_OP(op) { in arch_decode_instruction()
372 op->src.type = OP_SRC_REG; in arch_decode_instruction()
373 op->src.reg = modrm_reg; in arch_decode_instruction()
374 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
375 op->dest.reg = CFI_SP; in arch_decode_instruction()
376 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
390 ADD_OP(op) { in arch_decode_instruction()
391 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
392 op->src.reg = CFI_BP; in arch_decode_instruction()
393 op->src.offset = insn.displacement.value; in arch_decode_instruction()
394 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
395 op->dest.reg = modrm_reg; in arch_decode_instruction()
403 ADD_OP(op) { in arch_decode_instruction()
404 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
405 op->src.reg = CFI_SP; in arch_decode_instruction()
406 op->src.offset = insn.displacement.value; in arch_decode_instruction()
407 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
408 op->dest.reg = modrm_reg; in arch_decode_instruction()
437 ADD_OP(op) { in arch_decode_instruction()
438 op->src.offset = insn.displacement.value; in arch_decode_instruction()
439 if (!op->src.offset) { in arch_decode_instruction()
441 op->src.type = OP_SRC_REG; in arch_decode_instruction()
444 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
446 op->src.reg = modrm_rm; in arch_decode_instruction()
447 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
448 op->dest.reg = modrm_reg; in arch_decode_instruction()
454 ADD_OP(op) { in arch_decode_instruction()
455 op->src.type = OP_SRC_POP; in arch_decode_instruction()
456 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
466 ADD_OP(op) { in arch_decode_instruction()
467 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
468 op->dest.type = OP_DEST_PUSHF; in arch_decode_instruction()
474 ADD_OP(op) { in arch_decode_instruction()
475 op->src.type = OP_SRC_POPF; in arch_decode_instruction()
476 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
526 ADD_OP(op) { in arch_decode_instruction()
527 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
528 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
534 ADD_OP(op) { in arch_decode_instruction()
535 op->src.type = OP_SRC_POP; in arch_decode_instruction()
536 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
550 ADD_OP(op) { in arch_decode_instruction()
551 op->src.type = OP_SRC_REG; in arch_decode_instruction()
552 op->src.reg = CFI_BP; in arch_decode_instruction()
553 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
554 op->dest.reg = CFI_SP; in arch_decode_instruction()
556 ADD_OP(op) { in arch_decode_instruction()
557 op->src.type = OP_SRC_POP; in arch_decode_instruction()
558 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
559 op->dest.reg = CFI_BP; in arch_decode_instruction()
620 ADD_OP(op) { in arch_decode_instruction()
622 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
623 op->src.reg = CFI_SP; in arch_decode_instruction()
624 op->src.offset = 5*8; in arch_decode_instruction()
625 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
626 op->dest.reg = CFI_SP; in arch_decode_instruction()
650 ADD_OP(op) { in arch_decode_instruction()
651 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
652 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
685 ADD_OP(op) { in arch_decode_instruction()
686 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
687 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()