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)
119 struct stack_op *op = NULL; in arch_decode_instruction() local
172 ADD_OP(op) { in arch_decode_instruction()
173 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
174 op->src.reg = modrm_reg; in arch_decode_instruction()
175 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
176 op->dest.reg = CFI_SP; in arch_decode_instruction()
184 ADD_OP(op) { in arch_decode_instruction()
185 op->src.type = OP_SRC_REG; in arch_decode_instruction()
186 op->src.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
187 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
195 ADD_OP(op) { in arch_decode_instruction()
196 op->src.type = OP_SRC_POP; in arch_decode_instruction()
197 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
198 op->dest.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
206 ADD_OP(op) { in arch_decode_instruction()
207 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
208 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
254 ADD_OP(op) { in arch_decode_instruction()
255 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
256 op->src.reg = CFI_SP; in arch_decode_instruction()
257 op->src.offset = imm; in arch_decode_instruction()
258 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
259 op->dest.reg = CFI_SP; in arch_decode_instruction()
265 ADD_OP(op) { in arch_decode_instruction()
266 op->src.type = OP_SRC_AND; in arch_decode_instruction()
267 op->src.reg = CFI_SP; in arch_decode_instruction()
268 op->src.offset = insn.immediate.value; in arch_decode_instruction()
269 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
270 op->dest.reg = CFI_SP; in arch_decode_instruction()
289 ADD_OP(op) { in arch_decode_instruction()
290 op->src.type = OP_SRC_REG; in arch_decode_instruction()
291 op->src.reg = CFI_SP; in arch_decode_instruction()
292 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
293 op->dest.reg = modrm_rm; in arch_decode_instruction()
310 ADD_OP(op) { in arch_decode_instruction()
311 op->src.type = OP_SRC_REG; in arch_decode_instruction()
312 op->src.reg = CFI_SP; in arch_decode_instruction()
313 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
314 op->dest.reg = modrm_rm; in arch_decode_instruction()
315 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
326 ADD_OP(op) { in arch_decode_instruction()
327 op->src.type = OP_SRC_REG; in arch_decode_instruction()
328 op->src.reg = modrm_reg; in arch_decode_instruction()
329 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
330 op->dest.reg = CFI_SP; in arch_decode_instruction()
343 ADD_OP(op) { in arch_decode_instruction()
344 op->src.type = OP_SRC_REG; in arch_decode_instruction()
345 op->src.reg = modrm_reg; in arch_decode_instruction()
346 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
347 op->dest.reg = CFI_BP; in arch_decode_instruction()
348 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
356 ADD_OP(op) { in arch_decode_instruction()
357 op->src.type = OP_SRC_REG; in arch_decode_instruction()
358 op->src.reg = modrm_reg; in arch_decode_instruction()
359 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
360 op->dest.reg = CFI_SP; in arch_decode_instruction()
361 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
375 ADD_OP(op) { in arch_decode_instruction()
376 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
377 op->src.reg = CFI_BP; in arch_decode_instruction()
378 op->src.offset = insn.displacement.value; in arch_decode_instruction()
379 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
380 op->dest.reg = modrm_reg; in arch_decode_instruction()
388 ADD_OP(op) { in arch_decode_instruction()
389 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
390 op->src.reg = CFI_SP; in arch_decode_instruction()
391 op->src.offset = insn.displacement.value; in arch_decode_instruction()
392 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
393 op->dest.reg = modrm_reg; in arch_decode_instruction()
422 ADD_OP(op) { in arch_decode_instruction()
423 op->src.offset = insn.displacement.value; in arch_decode_instruction()
424 if (!op->src.offset) { in arch_decode_instruction()
426 op->src.type = OP_SRC_REG; in arch_decode_instruction()
429 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
431 op->src.reg = modrm_rm; in arch_decode_instruction()
432 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
433 op->dest.reg = modrm_reg; in arch_decode_instruction()
439 ADD_OP(op) { in arch_decode_instruction()
440 op->src.type = OP_SRC_POP; in arch_decode_instruction()
441 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
451 ADD_OP(op) { in arch_decode_instruction()
452 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
453 op->dest.type = OP_DEST_PUSHF; in arch_decode_instruction()
459 ADD_OP(op) { in arch_decode_instruction()
460 op->src.type = OP_SRC_POPF; in arch_decode_instruction()
461 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
497 ADD_OP(op) { in arch_decode_instruction()
498 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
499 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
505 ADD_OP(op) { in arch_decode_instruction()
506 op->src.type = OP_SRC_POP; in arch_decode_instruction()
507 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
521 ADD_OP(op) { in arch_decode_instruction()
522 op->src.type = OP_SRC_REG; in arch_decode_instruction()
523 op->src.reg = CFI_BP; in arch_decode_instruction()
524 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
525 op->dest.reg = CFI_SP; in arch_decode_instruction()
527 ADD_OP(op) { in arch_decode_instruction()
528 op->src.type = OP_SRC_POP; in arch_decode_instruction()
529 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
530 op->dest.reg = CFI_BP; in arch_decode_instruction()
586 ADD_OP(op) { in arch_decode_instruction()
588 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
589 op->src.reg = CFI_SP; in arch_decode_instruction()
590 op->src.offset = 5*8; in arch_decode_instruction()
591 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
592 op->dest.reg = CFI_SP; in arch_decode_instruction()
610 ADD_OP(op) { in arch_decode_instruction()
611 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
612 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
641 ADD_OP(op) { in arch_decode_instruction()
642 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
643 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()