Lines Matching refs:opcode

58     Opcode opcode;  member
69 unsigned int (*lookup_function)(int startbit, int width, uint32_t opcode);
116 { .type = DECTREE_TERMINAL, .opcode = TAG },
124 #define INVALID() { .type = DECTREE_ENTRY_INVALID, .opcode = XX_LAST_OPCODE },
150 { .type = DECTREE_ENTRY_INVALID, .opcode = XX_LAST_OPCODE },
255 if (GET_ATTRIB(packet->insn[i].opcode, A_DOTNEWVALUE) && in decode_fill_newvalue_regno()
256 !GET_ATTRIB(packet->insn[i].opcode, A_EXTENSION)) { in decode_fill_newvalue_regno()
257 use_opcode = packet->insn[i].opcode; in decode_fill_newvalue_regno()
276 if (GET_ATTRIB(packet->insn[i - j - 1].opcode, A_IT_EXTENDER)) { in decode_fill_newvalue_regno()
292 def_opcode = packet->insn[def_idx].opcode; in decode_fill_newvalue_regno()
344 if (GET_ATTRIB(pkt->insn[i].opcode, A_NEWCMPJUMP)) { in decode_split_cmpjump()
361 static bool decode_opcode_can_jump(int opcode) in decode_opcode_can_jump() argument
363 if ((GET_ATTRIB(opcode, A_JUMP)) || in decode_opcode_can_jump()
364 (GET_ATTRIB(opcode, A_CALL)) || in decode_opcode_can_jump()
365 (opcode == J2_trap0) || in decode_opcode_can_jump()
366 (opcode == J2_pause)) { in decode_opcode_can_jump()
368 if (opcode == J4_hintjumpr) { in decode_opcode_can_jump()
377 static bool decode_opcode_ends_loop(int opcode) in decode_opcode_ends_loop() argument
379 return GET_ATTRIB(opcode, A_HWLOOP0_END) || in decode_opcode_ends_loop()
380 GET_ATTRIB(opcode, A_HWLOOP1_END); in decode_opcode_ends_loop()
388 uint16_t opcode; in decode_set_insn_attr_fields() local
396 opcode = pkt->insn[i].opcode; in decode_set_insn_attr_fields()
401 if (GET_ATTRIB(opcode, A_DCZEROA)) { in decode_set_insn_attr_fields()
405 if (GET_ATTRIB(opcode, A_STORE)) { in decode_set_insn_attr_fields()
406 if (GET_ATTRIB(opcode, A_SCALAR_STORE) && in decode_set_insn_attr_fields()
407 !GET_ATTRIB(opcode, A_MEMSIZE_0B)) { in decode_set_insn_attr_fields()
416 if (decode_opcode_can_jump(opcode)) { in decode_set_insn_attr_fields()
423 pkt->insn[i].is_endloop = decode_opcode_ends_loop(opcode); in decode_set_insn_attr_fields()
453 if (decode_opcode_ends_loop(packet->insn[last_insn].opcode)) { in decode_shuffle_for_execution()
467 int opcode = packet->insn[i].opcode; in decode_shuffle_for_execution() local
469 if (flag && GET_ATTRIB(opcode, A_STORE)) { in decode_shuffle_for_execution()
473 } else if (GET_ATTRIB(opcode, A_STORE)) { in decode_shuffle_for_execution()
475 } else if (GET_ATTRIB(opcode, A_LOAD)) { in decode_shuffle_for_execution()
481 } else if (GET_ATTRIB(opcode, A_DOTNEWVALUE)) { in decode_shuffle_for_execution()
496 int opcode = packet->insn[i].opcode; in decode_shuffle_for_execution() local
498 if ((strstr(opcode_wregs[opcode], "Pd4") || in decode_shuffle_for_execution()
499 strstr(opcode_wregs[opcode], "Pe4")) && in decode_shuffle_for_execution()
500 GET_ATTRIB(opcode, A_STORE) == 0) { in decode_shuffle_for_execution()
507 } else if (GET_ATTRIB(opcode, A_IMPLICIT_WRITES_P3) && in decode_shuffle_for_execution()
508 !decode_opcode_ends_loop(packet->insn[i].opcode)) { in decode_shuffle_for_execution()
519 } else if (GET_ATTRIB(opcode, A_IMPLICIT_WRITES_P0) && in decode_shuffle_for_execution()
520 !GET_ATTRIB(opcode, A_NEWCMPJUMP)) { in decode_shuffle_for_execution()
540 if (GET_ATTRIB(packet->insn[i].opcode, A_DOTNEWVALUE)) { in decode_shuffle_for_execution()
553 immed_num = opcode_which_immediate_is_extended(pkt->insn[i].opcode); in apply_extender()
563 if (GET_ATTRIB(packet->insn[i].opcode, A_IT_EXTENDER)) { in decode_apply_extenders()
574 if (GET_ATTRIB(packet->insn[i].opcode, A_IT_EXTENDER)) { in decode_remove_extenders()
588 if (GET_ATTRIB(pkt->insn[slot].opcode, A_EXTENSION)) { in get_valid_slots()
589 return mmvec_ext_decode_find_iclass_slots(pkt->insn[slot].opcode); in get_valid_slots()
591 return find_iclass_slots(pkt->insn[slot].opcode, in get_valid_slots()
652 insn->opcode = tag; in decode_op()
699 opc = table->table[i].opcode; in decode_subinsn_tablewalk()
745 opc = table->table[i].opcode; in decode_insns_tablewalk()
781 insn->opcode = J2_endloop01; in decode_add_endloop_insn()
784 insn->opcode = J2_endloop1; in decode_add_endloop_insn()
787 insn->opcode = J2_endloop0; in decode_add_endloop_insn()
806 if (decode_opcode_ends_loop(insn->opcode)) { in has_valid_slot_assignment()
850 if ((GET_ATTRIB(pkt->insn[i].opcode, A_MEMLIKE) || in decode_set_slot_number()
851 GET_ATTRIB(pkt->insn[i].opcode, A_MEMLIKE_PACKET_RULES)) && in decode_set_slot_number()
859 if ((GET_ATTRIB(pkt->insn[i].opcode, A_MEMLIKE) || in decode_set_slot_number()
860 GET_ATTRIB(pkt->insn[i].opcode, A_MEMLIKE_PACKET_RULES)) && in decode_set_slot_number()
869 if (GET_ATTRIB(pkt->insn[i].opcode, A_SUBINSN) && !hit_duplex) { in decode_set_slot_number()
876 if (GET_ATTRIB(pkt->insn[i].opcode, A_SUBINSN) && hit_duplex) { in decode_set_slot_number()
885 bool is_endloop = (pkt->insn[i].opcode == J2_endloop01); in decode_set_slot_number()
886 is_endloop |= (pkt->insn[i].opcode == J2_endloop0); in decode_set_slot_number()
887 is_endloop |= (pkt->insn[i].opcode == J2_endloop1); in decode_set_slot_number()
941 if (pkt->insn[num_insns].opcode == A4_ext) { in decode_packet()
957 GET_ATTRIB(pkt->insn[i].opcode, A_CVI); in decode_packet()