Lines Matching refs:tm

83   const insn_template *tm;	/* Opcode template.  */  member
2960 insn_template *tm; in md_begin() local
2989 for (tm = (insn_template *) tic54x_optab; tm->name; tm++) in md_begin()
2991 if (hash_find (op_hash, tm->name)) in md_begin()
2993 hash_err = hash_insert (op_hash, tm->name, (char *) tm); in md_begin()
2996 tm->name, hash_err); in md_begin()
2999 for (tm = (insn_template *) tic54x_paroptab; tm->name; tm++) in md_begin()
3001 if (hash_find (parop_hash, tm->name)) in md_begin()
3003 hash_err = hash_insert (parop_hash, tm->name, (char *) tm); in md_begin()
3006 tm->name, hash_err); in md_begin()
3553 if (insn->tm->flags & FL_SMR) in encode_indirect()
3751 int ext = (insn->tm->flags & FL_EXT) != 0; in encode_operand()
4011 if (!(insn->tm->flags & FL_PAR)) in build_insn()
4028 insn->words = insn->tm->words + insn->is_lkaddr; in build_insn()
4030 insn->opcode[0].word = insn->tm->opcode; in build_insn()
4031 if (insn->tm->flags & FL_EXT) in build_insn()
4032 insn->opcode[1 + insn->is_lkaddr].word = insn->tm->opcode2; in build_insn()
4041 if (insn->tm->flags & FL_PAR) in build_insn()
4060 if (strcasecmp (insn->tm->name, "add") == 0) in optimize_insn()
4074 if ((OPTYPE (insn->tm->operand_types[0]) == OP_Xmem in optimize_insn()
4075 && OPTYPE (insn->tm->operand_types[1]) == OP_SHFT in optimize_insn()
4078 || (OPTYPE (insn->tm->operand_types[0]) == OP_Smem in optimize_insn()
4079 && OPTYPE (insn->tm->operand_types[1]) == OP_SHIFT in optimize_insn()
4088 else if (strcasecmp (insn->tm->name, "ld") == 0) in optimize_insn()
4092 if ((OPTYPE (insn->tm->operand_types[1]) == OP_SHIFT in optimize_insn()
4093 || OPTYPE (insn->tm->operand_types[1]) == OP_SHFT) in optimize_insn()
4095 && (OPTYPE (insn->tm->operand_types[0]) != OP_lk in optimize_insn()
4106 else if (strcasecmp (insn->tm->name, "sth") == 0 in optimize_insn()
4107 || strcasecmp (insn->tm->name, "stl") == 0) in optimize_insn()
4109 if ((OPTYPE (insn->tm->operand_types[1]) == OP_SHIFT in optimize_insn()
4110 || OPTYPE (insn->tm->operand_types[1]) == OP_SHFT) in optimize_insn()
4118 else if (strcasecmp (insn->tm->name, "sub") == 0) in optimize_insn()
4131 if ( ((OPTYPE (insn->tm->operand_types[0]) == OP_Smem in optimize_insn()
4132 && OPTYPE (insn->tm->operand_types[1]) == OP_SHIFT) in optimize_insn()
4133 || (OPTYPE (insn->tm->operand_types[0]) == OP_Xmem in optimize_insn()
4134 && OPTYPE (insn->tm->operand_types[1]) == OP_SHFT)) in optimize_insn()
4151 insn->tm = (insn_template *) hash_find (op_hash, insn->mnemonic); in tic54x_parse_insn()
4152 if (!insn->tm) in tic54x_parse_insn()
4163 while (insn->tm->name && strcasecmp (insn->tm->name, insn->mnemonic) == 0) in tic54x_parse_insn()
4165 if (insn->opcount >= insn->tm->minops in tic54x_parse_insn()
4166 && insn->opcount <= insn->tm->maxops in tic54x_parse_insn()
4168 insn->tm->operand_types, in tic54x_parse_insn()
4169 insn->tm->minops, insn->tm->maxops)) in tic54x_parse_insn()
4174 insn->tm = (insn_template *) hash_find (op_hash, in tic54x_parse_insn()
4181 ++(insn->tm); in tic54x_parse_insn()
4209 insn->tm = (insn_template *) hash_find (parop_hash, insn->mnemonic); in tic54x_parse_parallel_insn_firstline()
4210 if (!insn->tm) in tic54x_parse_parallel_insn_firstline()
4217 while (insn->tm->name && strcasecmp (insn->tm->name, in tic54x_parse_parallel_insn_firstline()
4225 insn->tm->operand_types, 2, 2)) in tic54x_parse_parallel_insn_firstline()
4229 ++(insn->tm); in tic54x_parse_parallel_insn_firstline()
4243 while (insn->tm->name && strcasecmp (insn->tm->name, in tic54x_parse_parallel_insn_lastline()
4246 if (strcasecmp (insn->tm->parname, insn->parmnemonic) == 0) in tic54x_parse_parallel_insn_lastline()
4250 if (insn->paropcount >= insn->tm->minops in tic54x_parse_parallel_insn_lastline()
4251 && insn->paropcount <= insn->tm->maxops in tic54x_parse_parallel_insn_lastline()
4254 insn->tm->paroperand_types, in tic54x_parse_parallel_insn_lastline()
4255 insn->tm->minops, insn->tm->maxops)) in tic54x_parse_parallel_insn_lastline()
4258 ++(insn->tm); in tic54x_parse_parallel_insn_lastline()
4896 if ((insn.tm->flags & FL_LP) in md_assemble()
4900 insn.tm->name); in md_assemble()
4903 if ((insn.tm->flags & FL_FAR) in md_assemble()
4907 insn.tm->name); in md_assemble()
4926 if (insn.tm->flags & FL_BMASK) in md_assemble()
4938 if (insn.tm->flags & FL_NR) in md_assemble()
4941 insn.tm->name); in md_assemble()
4950 if (insn.tm->flags & B_REPEAT) in md_assemble()
4956 if (insn.tm->flags & FL_DELAY) in md_assemble()