• Home
  • Raw
  • Download

Lines Matching refs:opc

264          if ((instr->opc == OPC_STP || instr->opc == OPC_LDP)) {  in ir3_collect_info()
270 if (instr->opc == OPC_STP) in ir3_collect_info()
276 if ((instr->opc == OPC_BARY_F) && (instr->dsts[0]->flags & IR3_REG_EI)) in ir3_collect_info()
282 if (instr->opc == OPC_NOP) { in ir3_collect_info()
286 info->instrs_per_cat[opc_cat(instr->opc)] += 1 + instr->repeat; in ir3_collect_info()
290 if (instr->opc == OPC_MOV) { in ir3_collect_info()
429 instr_create(struct ir3_block *block, opc_t opc, int ndst, int nsrc) in instr_create() argument
432 if (1 <= opc_cat(opc)) in instr_create()
453 ir3_instr_create(struct ir3_block *block, opc_t opc, int ndst, int nsrc) in ir3_instr_create() argument
455 struct ir3_instruction *instr = instr_create(block, opc, ndst, nsrc); in ir3_instr_create()
457 instr->opc = opc; in ir3_instr_create()
466 instr->block, instr->opc, instr->dsts_count, instr->srcs_count); in ir3_instr_clone()
680 switch (opc_cat(instr->opc)) { in ir3_set_dst_type()
690 instr->opc = cat4_half_opc(instr->opc); in ir3_set_dst_type()
692 instr->opc = cat4_full_opc(instr->opc); in ir3_set_dst_type()
712 switch (opc_cat(instr->opc)) { in ir3_fixup_src_type()
722 instr->opc = cat3_half_opc(instr->opc); in ir3_fixup_src_type()
724 instr->opc = cat3_full_opc(instr->opc); in ir3_fixup_src_type()
791 if ((flags & IR3_REG_SHARED) && opc_cat(instr->opc) > 3) in ir3_valid_flags()
836 switch (opc_cat(instr->opc)) { in ir3_valid_flags()
840 switch (instr->opc) { in ir3_valid_flags()
855 valid_flags = ir3_cat2_absneg(instr->opc) | IR3_REG_CONST | in ir3_valid_flags()
878 ir3_cat3_absneg(instr->opc) | IR3_REG_RELATIV | IR3_REG_SHARED; in ir3_valid_flags()
880 if (instr->opc == OPC_SHLG_B16) { in ir3_valid_flags()
925 if (is_store(instr) && (instr->opc != OPC_STG) && (n == 1)) in ir3_valid_flags()
928 if ((instr->opc == OPC_LDL) && (n == 0)) in ir3_valid_flags()
931 if ((instr->opc == OPC_STL) && (n != 2)) in ir3_valid_flags()
934 if ((instr->opc == OPC_LDP) && (n == 0)) in ir3_valid_flags()
937 if ((instr->opc == OPC_STP) && (n != 2)) in ir3_valid_flags()
940 if (instr->opc == OPC_STLW && n == 0) in ir3_valid_flags()
943 if (instr->opc == OPC_LDLW && n == 0) in ir3_valid_flags()
949 if (is_atomic(instr->opc) && (n != 0)) in ir3_valid_flags()
952 if (is_atomic(instr->opc) && !(instr->flags & IR3_INSTR_G)) in ir3_valid_flags()
955 if (instr->opc == OPC_STG && (n == 2)) in ir3_valid_flags()
958 if (instr->opc == OPC_STG_A && (n == 4)) in ir3_valid_flags()
964 switch (instr->opc) { in ir3_valid_flags()
985 if (instr->opc == OPC_MOV || is_meta(instr)) in ir3_valid_immediate()
989 switch (instr->opc) { in ir3_valid_immediate()