Lines Matching refs:op

105 #define ADD_OP(op) \
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;
221 ADD_OP(op) {
222 op->src.type = OP_SRC_ADD;
223 op->src.reg = modrm_reg;
224 op->dest.type = OP_DEST_REG;
225 op->dest.reg = CFI_SP;
233 ADD_OP(op) {
234 op->src.type = OP_SRC_REG;
235 op->src.reg = (op1 & 0x7) + 8*rex_b;
236 op->dest.type = OP_DEST_PUSH;
244 ADD_OP(op) {
245 op->src.type = OP_SRC_POP;
246 op->dest.type = OP_DEST_REG;
247 op->dest.reg = (op1 & 0x7) + 8*rex_b;
255 ADD_OP(op) {
256 op->src.type = OP_SRC_CONST;
257 op->dest.type = OP_DEST_PUSH;
303 ADD_OP(op) {
304 op->src.type = OP_SRC_ADD;
305 op->src.reg = CFI_SP;
306 op->src.offset = imm;
307 op->dest.type = OP_DEST_REG;
308 op->dest.reg = CFI_SP;
314 ADD_OP(op) {
315 op->src.type = OP_SRC_AND;
316 op->src.reg = CFI_SP;
317 op->src.offset = ins.immediate.value;
318 op->dest.type = OP_DEST_REG;
319 op->dest.reg = CFI_SP;
338 ADD_OP(op) {
339 op->src.type = OP_SRC_REG;
340 op->src.reg = CFI_SP;
341 op->dest.type = OP_DEST_REG;
342 op->dest.reg = modrm_rm;
359 ADD_OP(op) {
360 op->src.type = OP_SRC_REG;
361 op->src.reg = CFI_SP;
362 op->dest.type = OP_DEST_REG_INDIRECT;
363 op->dest.reg = modrm_rm;
364 op->dest.offset = ins.displacement.value;
375 ADD_OP(op) {
376 op->src.type = OP_SRC_REG;
377 op->src.reg = modrm_reg;
378 op->dest.type = OP_DEST_REG;
379 op->dest.reg = CFI_SP;
392 ADD_OP(op) {
393 op->src.type = OP_SRC_REG;
394 op->src.reg = modrm_reg;
395 op->dest.type = OP_DEST_REG_INDIRECT;
396 op->dest.reg = CFI_BP;
397 op->dest.offset = ins.displacement.value;
405 ADD_OP(op) {
406 op->src.type = OP_SRC_REG;
407 op->src.reg = modrm_reg;
408 op->dest.type = OP_DEST_REG_INDIRECT;
409 op->dest.reg = CFI_SP;
410 op->dest.offset = ins.displacement.value;
424 ADD_OP(op) {
425 op->src.type = OP_SRC_REG_INDIRECT;
426 op->src.reg = CFI_BP;
427 op->src.offset = ins.displacement.value;
428 op->dest.type = OP_DEST_REG;
429 op->dest.reg = modrm_reg;
437 ADD_OP(op) {
438 op->src.type = OP_SRC_REG_INDIRECT;
439 op->src.reg = CFI_SP;
440 op->src.offset = ins.displacement.value;
441 op->dest.type = OP_DEST_REG;
442 op->dest.reg = modrm_reg;
473 ADD_OP(op) {
474 op->src.offset = ins.displacement.value;
475 if (!op->src.offset) {
477 op->src.type = OP_SRC_REG;
480 op->src.type = OP_SRC_ADD;
482 op->src.reg = modrm_rm;
483 op->dest.type = OP_DEST_REG;
484 op->dest.reg = modrm_reg;
490 ADD_OP(op) {
491 op->src.type = OP_SRC_POP;
492 op->dest.type = OP_DEST_MEM;
502 ADD_OP(op) {
503 op->src.type = OP_SRC_CONST;
504 op->dest.type = OP_DEST_PUSHF;
510 ADD_OP(op) {
511 op->src.type = OP_SRC_POPF;
512 op->dest.type = OP_DEST_MEM;
571 ADD_OP(op) {
572 op->src.type = OP_SRC_CONST;
573 op->dest.type = OP_DEST_PUSH;
579 ADD_OP(op) {
580 op->src.type = OP_SRC_POP;
581 op->dest.type = OP_DEST_MEM;
595 ADD_OP(op) {
596 op->src.type = OP_SRC_REG;
597 op->src.reg = CFI_BP;
598 op->dest.type = OP_DEST_REG;
599 op->dest.reg = CFI_SP;
601 ADD_OP(op) {
602 op->src.type = OP_SRC_POP;
603 op->dest.type = OP_DEST_REG;
604 op->dest.reg = CFI_BP;
665 ADD_OP(op) {
667 op->src.type = OP_SRC_ADD;
668 op->src.reg = CFI_SP;
669 op->src.offset = 5*8;
670 op->dest.type = OP_DEST_REG;
671 op->dest.reg = CFI_SP;
695 ADD_OP(op) {
696 op->src.type = OP_SRC_CONST;
697 op->dest.type = OP_DEST_PUSH;
730 ADD_OP(op) {
731 op->src.type = OP_SRC_CONST;
732 op->dest.type = OP_DEST_PUSH;