Lines Matching refs:index
46 const struct spu_opcode *index; in get_index_for_opcode() local
54 if ((index = spu_disassemble_table[opcode & 0x780]) != 0 in get_index_for_opcode()
55 && index->insn_type == RRR) in get_index_for_opcode()
56 return index; in get_index_for_opcode()
58 if ((index = spu_disassemble_table[opcode & 0x7f0]) != 0 in get_index_for_opcode()
59 && (index->insn_type == RI18 || index->insn_type == LBT)) in get_index_for_opcode()
60 return index; in get_index_for_opcode()
62 if ((index = spu_disassemble_table[opcode & 0x7f8]) != 0 in get_index_for_opcode()
63 && index->insn_type == RI10) in get_index_for_opcode()
64 return index; in get_index_for_opcode()
66 if ((index = spu_disassemble_table[opcode & 0x7fc]) != 0 in get_index_for_opcode()
67 && (index->insn_type == RI16)) in get_index_for_opcode()
68 return index; in get_index_for_opcode()
70 if ((index = spu_disassemble_table[opcode & 0x7fe]) != 0 in get_index_for_opcode()
71 && (index->insn_type == RI8)) in get_index_for_opcode()
72 return index; in get_index_for_opcode()
74 if ((index = spu_disassemble_table[opcode & 0x7ff]) != 0) in get_index_for_opcode()
75 return index; in get_index_for_opcode()
87 const struct spu_opcode *index; in print_insn_spu() local
90 index = get_index_for_opcode (insn); in print_insn_spu()
92 if (index == 0) in print_insn_spu()
100 tag = (enum spu_insns)(index - spu_opcodes); in print_insn_spu()
101 printf("%s", index->mnemonic); in print_insn_spu()
114 if (index->arg[0] != 0) in print_insn_spu()
117 for (i = 1; i <= index->arg[0]; i++) in print_insn_spu()
119 int arg = index->arg[i]; in print_insn_spu()