Lines Matching refs:op

75 #define ADD_OP(op) \  argument
76 if (!(op = calloc(1, sizeof(*op)))) \
78 else for (list_add_tail(&op->list, ops_list); op; op = NULL)
117 struct stack_op *op = NULL; in arch_decode_instruction() local
170 ADD_OP(op) { in arch_decode_instruction()
171 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
172 op->src.reg = modrm_reg; in arch_decode_instruction()
173 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
174 op->dest.reg = CFI_SP; in arch_decode_instruction()
182 ADD_OP(op) { in arch_decode_instruction()
183 op->src.type = OP_SRC_REG; in arch_decode_instruction()
184 op->src.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
185 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
193 ADD_OP(op) { in arch_decode_instruction()
194 op->src.type = OP_SRC_POP; in arch_decode_instruction()
195 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
196 op->dest.reg = (op1 & 0x7) + 8*rex_b; in arch_decode_instruction()
204 ADD_OP(op) { in arch_decode_instruction()
205 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
206 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
252 ADD_OP(op) { in arch_decode_instruction()
253 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
254 op->src.reg = CFI_SP; in arch_decode_instruction()
255 op->src.offset = imm; in arch_decode_instruction()
256 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
257 op->dest.reg = CFI_SP; in arch_decode_instruction()
263 ADD_OP(op) { in arch_decode_instruction()
264 op->src.type = OP_SRC_AND; in arch_decode_instruction()
265 op->src.reg = CFI_SP; in arch_decode_instruction()
266 op->src.offset = insn.immediate.value; in arch_decode_instruction()
267 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
268 op->dest.reg = CFI_SP; in arch_decode_instruction()
287 ADD_OP(op) { in arch_decode_instruction()
288 op->src.type = OP_SRC_REG; in arch_decode_instruction()
289 op->src.reg = CFI_SP; in arch_decode_instruction()
290 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
291 op->dest.reg = modrm_rm; in arch_decode_instruction()
308 ADD_OP(op) { in arch_decode_instruction()
309 op->src.type = OP_SRC_REG; in arch_decode_instruction()
310 op->src.reg = CFI_SP; in arch_decode_instruction()
311 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
312 op->dest.reg = modrm_rm; in arch_decode_instruction()
313 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
324 ADD_OP(op) { in arch_decode_instruction()
325 op->src.type = OP_SRC_REG; in arch_decode_instruction()
326 op->src.reg = modrm_reg; 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()
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_INDIRECT; in arch_decode_instruction()
345 op->dest.reg = CFI_BP; in arch_decode_instruction()
346 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
354 ADD_OP(op) { in arch_decode_instruction()
355 op->src.type = OP_SRC_REG; in arch_decode_instruction()
356 op->src.reg = modrm_reg; in arch_decode_instruction()
357 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
358 op->dest.reg = CFI_SP; in arch_decode_instruction()
359 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
373 ADD_OP(op) { in arch_decode_instruction()
374 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
375 op->src.reg = CFI_BP; in arch_decode_instruction()
376 op->src.offset = insn.displacement.value; in arch_decode_instruction()
377 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
378 op->dest.reg = modrm_reg; in arch_decode_instruction()
386 ADD_OP(op) { in arch_decode_instruction()
387 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
388 op->src.reg = CFI_SP; in arch_decode_instruction()
389 op->src.offset = insn.displacement.value; in arch_decode_instruction()
390 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
391 op->dest.reg = modrm_reg; in arch_decode_instruction()
420 ADD_OP(op) { in arch_decode_instruction()
421 op->src.offset = insn.displacement.value; in arch_decode_instruction()
422 if (!op->src.offset) { in arch_decode_instruction()
424 op->src.type = OP_SRC_REG; in arch_decode_instruction()
427 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
429 op->src.reg = modrm_rm; in arch_decode_instruction()
430 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
431 op->dest.reg = modrm_reg; in arch_decode_instruction()
437 ADD_OP(op) { in arch_decode_instruction()
438 op->src.type = OP_SRC_POP; in arch_decode_instruction()
439 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
449 ADD_OP(op) { in arch_decode_instruction()
450 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
451 op->dest.type = OP_DEST_PUSHF; in arch_decode_instruction()
457 ADD_OP(op) { in arch_decode_instruction()
458 op->src.type = OP_SRC_POPF; in arch_decode_instruction()
459 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
495 ADD_OP(op) { in arch_decode_instruction()
496 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
497 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
503 ADD_OP(op) { in arch_decode_instruction()
504 op->src.type = OP_SRC_POP; in arch_decode_instruction()
505 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
519 ADD_OP(op) { in arch_decode_instruction()
520 op->src.type = OP_SRC_REG; in arch_decode_instruction()
521 op->src.reg = CFI_BP; in arch_decode_instruction()
522 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
523 op->dest.reg = CFI_SP; in arch_decode_instruction()
525 ADD_OP(op) { in arch_decode_instruction()
526 op->src.type = OP_SRC_POP; in arch_decode_instruction()
527 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
528 op->dest.reg = CFI_BP; in arch_decode_instruction()
554 ADD_OP(op) { in arch_decode_instruction()
556 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
557 op->src.reg = CFI_SP; in arch_decode_instruction()
558 op->src.offset = 5*8; in arch_decode_instruction()
559 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
560 op->dest.reg = CFI_SP; in arch_decode_instruction()
578 ADD_OP(op) { in arch_decode_instruction()
579 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
580 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
609 ADD_OP(op) { in arch_decode_instruction()
610 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
611 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()