Home | History | Annotate | Download | only in opcodes

Lines Matching refs:op_num

332       unsigned int op_num;
716 for (op_num = 0; op_num < num_operands; op_num++)
737 switch (opc->operand_info[op_num].form)
741 operands_text[op_num] = true;
742 snprintf (operands[op_num], 24, "b15");
747 operands_text[op_num] = true;
748 snprintf (operands[op_num], 24, "%c0",
754 operands_text[op_num] = true;
755 snprintf (operands[op_num], 24, "%c3",
760 operands_text[op_num] = true;
761 snprintf (operands[op_num], 24, "irp");
765 operands_text[op_num] = true;
766 snprintf (operands[op_num], 24, "nrp");
770 operands_text[op_num] = true;
771 snprintf (operands[op_num], 24, "ilc");
775 operands_text[op_num] = true;
776 snprintf (operands[op_num], 24, "-1");
780 operands_text[op_num] = true;
781 snprintf (operands[op_num], 24, "0");
785 operands_text[op_num] = true;
786 snprintf (operands[op_num], 24, "1");
790 operands_text[op_num] = true;
791 snprintf (operands[op_num], 24, "5");
795 operands_text[op_num] = true;
796 snprintf (operands[op_num], 24, "16");
800 operands_text[op_num] = true;
801 snprintf (operands[op_num], 24, "24");
805 operands_text[op_num] = true;
806 snprintf (operands[op_num], 24, "31");
823 if (enc->operand_num != op_num)
843 switch (opc->operand_info[op_num].form)
847 operands_text[op_num] = true;
848 snprintf (operands[op_num], 24, "%u", fld_val);
857 printf ("opcode %x: illegal operand form for operand#%d\n", opcode, op_num);
863 operands_text[op_num] = true;
864 snprintf (operands[op_num], 24, "%u", fld_val << 16);
868 operands_text[op_num] = true;
879 snprintf (operands[op_num], 24, "%d", signed_fld_val);
883 operands_text[op_num] = true;
887 snprintf (operands[op_num], 24, "%d", signed_fld_val);
891 operands_text[op_num] = true;
892 snprintf (operands[op_num], 24, "%u", fld_val + 1);
905 operands_pcrel[op_num] = true;
906 operands_addresses[op_num] = fp_addr + signed_fld_val;
910 if (opc->operand_info[op_num].form != tic6x_operand_regpair)
912 operands_text[op_num] = true;
913 snprintf (operands[op_num], 24, "%c%u:%c%u",
919 operands_pcrel[op_num] = true;
920 operands_addresses[op_num] = fp_addr + 2 * fld_val;
931 switch (opc->operand_info[op_num].form)
939 operands_text[op_num] = true;
941 snprintf (operands[op_num], 24, "%c%u", reg_side, reg_base + fld_val);
945 operands_text[op_num] = true;
947 snprintf (operands[op_num], 24, "%c%u", reg_side, reg_base + fld_val);
951 operands_text[op_num] = true;
953 snprintf (operands[op_num], 24, "%c%u", reg_side, fld_val);
957 operands_text[op_num] = true;
958 snprintf (operands[op_num], 24, "b%u", reg_base + fld_val);
962 operands_text[op_num] = true;
963 snprintf (operands[op_num], 24, "b%u", fld_val);
967 operands_text[op_num] = true;
969 snprintf (operands[op_num], 24, "%c%u", reg_side, reg_base + fld_val);
973 operands_text[op_num] = true;
975 snprintf (operands[op_num], 24, "%c%u", reg_side, reg_base + fld_val);
979 operands_text[op_num] = true;
983 snprintf (operands[op_num], 24, "%c%u:%c%u",
989 operands_text[op_num] = true;
993 snprintf (operands[op_num], 24, "%c%u:%c%u",
1004 operands_text[op_num] = true;
1008 snprintf (operands[op_num], 24, "%c%u:%c%u",
1014 operands_text[op_num] = true;
1018 snprintf (operands[op_num], 24, "%c%u:%c%u",
1024 operands_text[op_num] = true;
1026 snprintf (operands[op_num], 24, "*%c%u", reg_side, reg_base + fld_val);
1037 opcode, opc->operand_info[op_num].form, op_num);
1043 switch (opc->operand_info[op_num].form)
1050 opcode, op_num, fld_val);
1059 opcode, opc->operand_info[op_num].form, op_num);
1065 switch (opc->operand_info[op_num].form)
1068 operands_text[op_num] = true;
1069 snprintf (operands[op_num], 24, "b%u",
1255 operands_text[op_num] = true;
1268 operands_text[op_num] = true;
1269 snprintf (operands[op_num], 24, "%u", t);
1273 operands_text[op_num] = true;
1274 snprintf (operands[op_num], 24, "%u",
1287 operands_text[op_num] = true;
1288 p = operands[op_num];
1315 if (operands_text[op_num] || operands_pcrel[op_num])
1320 operands_text[op_num] = true;
1321 snprintf (operands[op_num], 24, "*+b%u(%u)", mem_base_reg,
1322 mem_offset * opc->operand_info[op_num].size);
1327 || (opc->operand_info[op_num].form
1337 if (operands_text[op_num] || operands_pcrel[op_num])
1355 if (opc->operand_info[op_num].form
1363 if (opc->operand_info[op_num].form
1374 * opc->operand_info[op_num].size));
1383 operands_text[op_num] = true;
1387 snprintf (operands[op_num], 24, "*-%s%s", base, offsetp);
1391 snprintf (operands[op_num], 24, "*+%s%s", base, offsetp);
1400 snprintf (operands[op_num], 24, "*--%s%s", base,
1405 snprintf (operands[op_num], 24, "*++%s%s", base,
1410 snprintf (operands[op_num], 24, "*%s--%s", base,
1415 snprintf (operands[op_num], 24, "*%s++%s", base,
1430 if (operands_text[op_num] || operands_pcrel[op_num])
1436 rw = opc->operand_info[op_num].rw;
1459 operands_text[op_num] = true;
1464 operands_text[op_num] = true;
1465 snprintf (operands[op_num], 24, "%s",
1470 if (operands_text[op_num] || operands_pcrel[op_num]
1490 if (!operands_text[op_num] && !operands_pcrel[op_num])
1492 printf ("opcode: %x, operand #%d not decoded\n", opcode, op_num);
1496 /* end for op_num */
1505 for (op_num = 0; op_num < num_operands; op_num++)
1507 info->fprintf_func (info->stream, "%c", (op_num == 0 ? ' ' : ','));
1508 if (operands_pcrel[op_num])
1509 info->print_address_func (operands_addresses[op_num], info);
1511 info->fprintf_func (info->stream, "%s", operands[op_num]);