Lines Matching refs:op

82 #define ADD_OP(op) \  argument
83 if (!(op = calloc(1, sizeof(*op)))) \
85 else for (list_add_tail(&op->list, ops_list); op; op = NULL)
98 struct stack_op *op = NULL; in arch_decode_instruction() local
147 ADD_OP(op) { in arch_decode_instruction()
148 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
149 op->src.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
150 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
151 op->dest.reg = CFI_SP; in arch_decode_instruction()
159 ADD_OP(op) { in arch_decode_instruction()
160 op->src.type = OP_SRC_REG; in arch_decode_instruction()
161 op->src.reg = op_to_cfi_reg[op1 & 0x7][rex_b]; in arch_decode_instruction()
162 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
170 ADD_OP(op) { in arch_decode_instruction()
171 op->src.type = OP_SRC_POP; in arch_decode_instruction()
172 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
173 op->dest.reg = op_to_cfi_reg[op1 & 0x7][rex_b]; in arch_decode_instruction()
181 ADD_OP(op) { in arch_decode_instruction()
182 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
183 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
198 ADD_OP(op) { in arch_decode_instruction()
199 op->src.type = OP_SRC_AND; in arch_decode_instruction()
200 op->src.reg = CFI_SP; in arch_decode_instruction()
201 op->src.offset = insn.immediate.value; in arch_decode_instruction()
202 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
203 op->dest.reg = CFI_SP; in arch_decode_instruction()
216 ADD_OP(op) { in arch_decode_instruction()
217 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
218 op->src.reg = CFI_SP; in arch_decode_instruction()
219 op->src.offset = insn.immediate.value * sign; in arch_decode_instruction()
220 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
221 op->dest.reg = CFI_SP; in arch_decode_instruction()
229 ADD_OP(op) { in arch_decode_instruction()
230 op->src.type = OP_SRC_REG; in arch_decode_instruction()
231 op->src.reg = CFI_SP; in arch_decode_instruction()
232 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
233 op->dest.reg = op_to_cfi_reg[modrm_rm][rex_b]; in arch_decode_instruction()
241 ADD_OP(op) { in arch_decode_instruction()
242 op->src.type = OP_SRC_REG; in arch_decode_instruction()
243 op->src.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
244 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
245 op->dest.reg = CFI_SP; in arch_decode_instruction()
256 ADD_OP(op) { in arch_decode_instruction()
257 op->src.type = OP_SRC_REG; in arch_decode_instruction()
258 op->src.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
259 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
260 op->dest.reg = CFI_BP; in arch_decode_instruction()
261 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
267 ADD_OP(op) { in arch_decode_instruction()
268 op->src.type = OP_SRC_REG; in arch_decode_instruction()
269 op->src.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
270 op->dest.type = OP_DEST_REG_INDIRECT; in arch_decode_instruction()
271 op->dest.reg = CFI_SP; in arch_decode_instruction()
272 op->dest.offset = insn.displacement.value; in arch_decode_instruction()
282 ADD_OP(op) { in arch_decode_instruction()
283 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
284 op->src.reg = CFI_BP; in arch_decode_instruction()
285 op->src.offset = insn.displacement.value; in arch_decode_instruction()
286 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
287 op->dest.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
294 ADD_OP(op) { in arch_decode_instruction()
295 op->src.type = OP_SRC_REG_INDIRECT; in arch_decode_instruction()
296 op->src.reg = CFI_SP; in arch_decode_instruction()
297 op->src.offset = insn.displacement.value; in arch_decode_instruction()
298 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
299 op->dest.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
308 ADD_OP(op) { in arch_decode_instruction()
311 op->src.type = OP_SRC_REG; in arch_decode_instruction()
314 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
315 op->src.offset = insn.displacement.value; in arch_decode_instruction()
317 op->src.reg = CFI_SP; in arch_decode_instruction()
318 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
319 op->dest.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction()
325 ADD_OP(op) { in arch_decode_instruction()
326 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
327 op->src.reg = CFI_BP; in arch_decode_instruction()
328 op->src.offset = insn.displacement.value; 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()
342 ADD_OP(op) { in arch_decode_instruction()
343 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
344 op->src.reg = CFI_R10; in arch_decode_instruction()
345 op->src.offset = -8; in arch_decode_instruction()
346 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
347 op->dest.reg = CFI_SP; in arch_decode_instruction()
359 ADD_OP(op) { in arch_decode_instruction()
360 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
361 op->src.reg = CFI_R13; in arch_decode_instruction()
362 op->src.offset = -16; in arch_decode_instruction()
363 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
364 op->dest.reg = CFI_SP; in arch_decode_instruction()
372 ADD_OP(op) { in arch_decode_instruction()
373 op->src.type = OP_SRC_POP; in arch_decode_instruction()
374 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
384 ADD_OP(op) { in arch_decode_instruction()
385 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
386 op->dest.type = OP_DEST_PUSHF; in arch_decode_instruction()
392 ADD_OP(op) { in arch_decode_instruction()
393 op->src.type = OP_SRC_POPF; in arch_decode_instruction()
394 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
430 ADD_OP(op) { in arch_decode_instruction()
431 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
432 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
438 ADD_OP(op) { in arch_decode_instruction()
439 op->src.type = OP_SRC_POP; in arch_decode_instruction()
440 op->dest.type = OP_DEST_MEM; in arch_decode_instruction()
454 ADD_OP(op) in arch_decode_instruction()
455 op->dest.type = OP_DEST_LEAVE; in arch_decode_instruction()
486 ADD_OP(op) { in arch_decode_instruction()
488 op->src.type = OP_SRC_ADD; in arch_decode_instruction()
489 op->src.reg = CFI_SP; in arch_decode_instruction()
490 op->src.offset = 5*8; in arch_decode_instruction()
491 op->dest.type = OP_DEST_REG; in arch_decode_instruction()
492 op->dest.reg = CFI_SP; in arch_decode_instruction()
510 ADD_OP(op) { in arch_decode_instruction()
511 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
512 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()
541 ADD_OP(op) { in arch_decode_instruction()
542 op->src.type = OP_SRC_CONST; in arch_decode_instruction()
543 op->dest.type = OP_DEST_PUSH; in arch_decode_instruction()