Lines Matching refs:insn_word
72 get_tic30_instruction (unsigned long insn_word, struct instruction *insn) in get_tic30_instruction() argument
74 switch (GET_TYPE (insn_word)) in get_tic30_instruction()
85 if (GET_TYPE (current_optab->base_opcode) == GET_TYPE (insn_word)) in get_tic30_instruction()
89 if (current_optab->base_opcode == insn_word) in get_tic30_instruction()
95 else if ((current_optab->base_opcode & NORMAL_IDEN) == (insn_word & NORMAL_IDEN)) in get_tic30_instruction()
112 if (GET_TYPE (current_optab->base_opcode) == GET_TYPE (insn_word)) in get_tic30_instruction()
115 == (insn_word & PAR_STORE_IDEN)) in get_tic30_instruction()
132 if (GET_TYPE (current_optab->base_opcode) == GET_TYPE (insn_word)) in get_tic30_instruction()
135 == (insn_word & MUL_ADD_IDEN)) in get_tic30_instruction()
152 if (GET_TYPE (current_optab->base_opcode) == GET_TYPE (insn_word)) in get_tic30_instruction()
157 == (insn_word & BR_IMM_IDEN)) in get_tic30_instruction()
166 == (insn_word & BR_COND_IDEN)) in get_tic30_instruction()
175 == (insn_word & (BR_COND_IDEN | 0x00800000))) in get_tic30_instruction()
339 unsigned long insn_word, in print_two_operand() argument
370 get_register_operand ((insn_word & 0x001F0000) >> 16, operand[dest_op]); in print_two_operand()
372 switch (insn_word & AddressMode) in print_two_operand()
377 get_register_operand ((insn_word & 0x0000001F), operand[src_op]); in print_two_operand()
380 sprintf (operand[src_op], "@0x%lX", (insn_word & 0x0000FFFF)); in print_two_operand()
383 get_indirect_operand ((insn_word & 0x0000FFFF), 2, operand[src_op]); in print_two_operand()
390 cnvt_tmsfloat_ieee ((insn_word & 0x0000FFFF), 2, &f_number); in print_two_operand()
394 sprintf (operand[src_op], "%d", (short) (insn_word & 0x0000FFFF)); in print_two_operand()
397 sprintf (operand[src_op], "%lu", (insn_word & 0x0000FFFF)); in print_two_operand()
403 if ((insn_word & 0xFFFFFF00) == LDP_INSN) in print_two_operand()
406 sprintf (operand[0], "0x%06lX", (insn_word & 0x000000FF) << 16); in print_two_operand()
415 get_register_operand ((insn_word & 0x001F0000) >> 16, operand[0]); in print_two_operand()
427 unsigned long insn_word, in print_three_operand() argument
439 switch (insn_word & AddressMode) in print_three_operand()
442 get_register_operand ((insn_word & 0x000000FF), operand[0]); in print_three_operand()
443 get_register_operand ((insn_word & 0x0000FF00) >> 8, operand[1]); in print_three_operand()
446 get_register_operand ((insn_word & 0x000000FF), operand[0]); in print_three_operand()
447 get_indirect_operand ((insn_word & 0x0000FF00) >> 8, 1, operand[1]); in print_three_operand()
450 get_indirect_operand ((insn_word & 0x000000FF), 1, operand[0]); in print_three_operand()
451 get_register_operand ((insn_word & 0x0000FF00) >> 8, operand[1]); in print_three_operand()
454 get_indirect_operand ((insn_word & 0x000000FF), 1, operand[0]); in print_three_operand()
455 get_indirect_operand ((insn_word & 0x0000FF00) >> 8, 1, operand[1]); in print_three_operand()
461 get_register_operand ((insn_word & 0x001F0000) >> 16, operand[2]); in print_three_operand()
471 unsigned long insn_word, in print_par_insn() argument
510 get_indirect_operand ((insn_word & 0x000000FF), 1, operand[0][0]); in print_par_insn()
511 get_indirect_operand ((insn_word & 0x0000FF00) >> 8, 1, operand[1][1]); in print_par_insn()
512 get_register_operand ((insn_word >> 16) & 0x07, operand[1][0]); in print_par_insn()
513 get_register_operand ((insn_word >> 22) & 0x07, operand[0][1]); in print_par_insn()
516 get_indirect_operand ((insn_word & 0x000000FF), 1, operand[0][0]); in print_par_insn()
517 get_indirect_operand ((insn_word & 0x0000FF00) >> 8, 1, operand[1][0]); in print_par_insn()
518 get_register_operand ((insn_word >> 19) & 0x07, operand[1][1]); in print_par_insn()
519 get_register_operand ((insn_word >> 22) & 0x07, operand[0][1]); in print_par_insn()
522 get_indirect_operand ((insn_word & 0x000000FF), 1, operand[0][1]); in print_par_insn()
523 get_indirect_operand ((insn_word & 0x0000FF00) >> 8, 1, operand[1][1]); in print_par_insn()
524 get_register_operand ((insn_word >> 16) & 0x07, operand[1][0]); in print_par_insn()
525 get_register_operand ((insn_word >> 22) & 0x07, operand[0][0]); in print_par_insn()
528 get_indirect_operand ((insn_word & 0x000000FF), 1, operand[0][0]); in print_par_insn()
529 get_indirect_operand ((insn_word & 0x0000FF00) >> 8, 1, operand[1][1]); in print_par_insn()
530 get_register_operand ((insn_word >> 16) & 0x07, operand[1][0]); in print_par_insn()
531 get_register_operand ((insn_word >> 19) & 0x07, operand[0][1]); in print_par_insn()
532 get_register_operand ((insn_word >> 22) & 0x07, operand[0][2]); in print_par_insn()
535 get_indirect_operand ((insn_word & 0x000000FF), 1, operand[0][1]); in print_par_insn()
536 get_indirect_operand ((insn_word & 0x0000FF00) >> 8, 1, operand[1][1]); in print_par_insn()
537 get_register_operand ((insn_word >> 16) & 0x07, operand[1][0]); in print_par_insn()
538 get_register_operand ((insn_word >> 19) & 0x07, operand[0][0]); in print_par_insn()
539 get_register_operand ((insn_word >> 22) & 0x07, operand[0][2]); in print_par_insn()
542 if (insn_word & 0x00800000) in print_par_insn()
546 if (insn_word & 0x00400000) in print_par_insn()
550 switch (insn_word & P_FIELD) in print_par_insn()
553 get_indirect_operand ((insn_word & 0x000000FF), 1, operand[0][1]); in print_par_insn()
554 get_indirect_operand ((insn_word & 0x0000FF00) >> 8, 1, operand[0][0]); in print_par_insn()
555 get_register_operand ((insn_word >> 16) & 0x07, operand[1][1]); in print_par_insn()
556 get_register_operand ((insn_word >> 19) & 0x07, operand[1][0]); in print_par_insn()
559 get_indirect_operand ((insn_word & 0x000000FF), 1, operand[1][0]); in print_par_insn()
560 get_indirect_operand ((insn_word & 0x0000FF00) >> 8, 1, operand[0][0]); in print_par_insn()
561 get_register_operand ((insn_word >> 16) & 0x07, operand[1][1]); in print_par_insn()
562 get_register_operand ((insn_word >> 19) & 0x07, operand[0][1]); in print_par_insn()
565 get_indirect_operand ((insn_word & 0x000000FF), 1, operand[1][1]); in print_par_insn()
566 get_indirect_operand ((insn_word & 0x0000FF00) >> 8, 1, operand[1][0]); in print_par_insn()
567 get_register_operand ((insn_word >> 16) & 0x07, operand[0][1]); in print_par_insn()
568 get_register_operand ((insn_word >> 19) & 0x07, operand[0][0]); in print_par_insn()
571 get_indirect_operand ((insn_word & 0x000000FF), 1, operand[1][1]); in print_par_insn()
572 get_indirect_operand ((insn_word & 0x0000FF00) >> 8, 1, operand[0][0]); in print_par_insn()
573 get_register_operand ((insn_word >> 16) & 0x07, operand[1][0]); in print_par_insn()
574 get_register_operand ((insn_word >> 19) & 0x07, operand[0][1]); in print_par_insn()
595 unsigned long insn_word, in print_branch() argument
611 address = insn_word & 0x00FFFFFF; in print_branch()
618 address = insn_word & 0x0000001F; in print_branch()
623 address = insn_word & 0x0000FFFF; in print_branch()
627 get_register_operand (((insn_word & 0x01C00000) >> 22) + REG_AR0, operand[0]); in print_branch()
628 if (insn_word & PCRel) in print_branch()
634 get_register_operand (insn_word & 0x0000001F, operand[1]); in print_branch()
639 if (insn_word & PCRel) in print_branch()
646 get_register_operand (insn_word & 0x0000001F, operand[0]); in print_branch()
658 if ((insn->tm->opcode_modifier == PCRel) && (insn_word & PCRel)) in print_branch()
662 if (insn_word & 0x00200000) in print_branch()
682 unsigned long insn_word; in print_insn_tic30() local
687 insn_word = (*(info->buffer + bufaddr) << 24) | (*(info->buffer + bufaddr + 1) << 16) | in print_insn_tic30()
692 if (!get_tic30_instruction (insn_word, &insn)) in print_insn_tic30()
694 switch (GET_TYPE (insn_word)) in print_insn_tic30()
698 if (!print_two_operand (info, insn_word, &insn)) in print_insn_tic30()
702 if (!print_three_operand (info, insn_word, &insn)) in print_insn_tic30()
707 if (!print_par_insn (info, insn_word, &insn)) in print_insn_tic30()
711 if (!print_branch (info, insn_word, &insn)) in print_insn_tic30()