Lines Matching refs:tm

83   const insn_template *tm;	/* Opcode template.  */  member
2988 insn_template *tm; in md_begin() local
3017 for (tm = (insn_template *) tic54x_optab; tm->name; tm++) in md_begin()
3019 if (hash_find (op_hash, tm->name)) in md_begin()
3021 hash_err = hash_insert (op_hash, tm->name, (char *) tm); in md_begin()
3024 tm->name, hash_err); in md_begin()
3027 for (tm = (insn_template *) tic54x_paroptab; tm->name; tm++) in md_begin()
3029 if (hash_find (parop_hash, tm->name)) in md_begin()
3031 hash_err = hash_insert (parop_hash, tm->name, (char *) tm); in md_begin()
3034 tm->name, hash_err); in md_begin()
3581 if (insn->tm->flags & FL_SMR) in encode_indirect()
3779 int ext = (insn->tm->flags & FL_EXT) != 0; in encode_operand()
4038 if (!(insn->tm->flags & FL_PAR)) in build_insn()
4055 insn->words = insn->tm->words + insn->is_lkaddr; in build_insn()
4057 insn->opcode[0].word = insn->tm->opcode; in build_insn()
4058 if (insn->tm->flags & FL_EXT) in build_insn()
4059 insn->opcode[1 + insn->is_lkaddr].word = insn->tm->opcode2; in build_insn()
4068 if (insn->tm->flags & FL_PAR) in build_insn()
4087 if (strcasecmp (insn->tm->name, "add") == 0) in optimize_insn()
4101 if ((OPTYPE (insn->tm->operand_types[0]) == OP_Xmem in optimize_insn()
4102 && OPTYPE (insn->tm->operand_types[1]) == OP_SHFT in optimize_insn()
4105 || (OPTYPE (insn->tm->operand_types[0]) == OP_Smem in optimize_insn()
4106 && OPTYPE (insn->tm->operand_types[1]) == OP_SHIFT in optimize_insn()
4115 else if (strcasecmp (insn->tm->name, "ld") == 0) in optimize_insn()
4119 if ((OPTYPE (insn->tm->operand_types[1]) == OP_SHIFT in optimize_insn()
4120 || OPTYPE (insn->tm->operand_types[1]) == OP_SHFT) in optimize_insn()
4122 && (OPTYPE (insn->tm->operand_types[0]) != OP_lk in optimize_insn()
4133 else if (strcasecmp (insn->tm->name, "sth") == 0 in optimize_insn()
4134 || strcasecmp (insn->tm->name, "stl") == 0) in optimize_insn()
4136 if ((OPTYPE (insn->tm->operand_types[1]) == OP_SHIFT in optimize_insn()
4137 || OPTYPE (insn->tm->operand_types[1]) == OP_SHFT) in optimize_insn()
4145 else if (strcasecmp (insn->tm->name, "sub") == 0) in optimize_insn()
4158 if ( ((OPTYPE (insn->tm->operand_types[0]) == OP_Smem in optimize_insn()
4159 && OPTYPE (insn->tm->operand_types[1]) == OP_SHIFT) in optimize_insn()
4160 || (OPTYPE (insn->tm->operand_types[0]) == OP_Xmem in optimize_insn()
4161 && OPTYPE (insn->tm->operand_types[1]) == OP_SHFT)) in optimize_insn()
4178 insn->tm = (insn_template *) hash_find (op_hash, insn->mnemonic); in tic54x_parse_insn()
4179 if (!insn->tm) in tic54x_parse_insn()
4190 while (insn->tm->name && strcasecmp (insn->tm->name, insn->mnemonic) == 0) in tic54x_parse_insn()
4192 if (insn->opcount >= insn->tm->minops in tic54x_parse_insn()
4193 && insn->opcount <= insn->tm->maxops in tic54x_parse_insn()
4195 insn->tm->operand_types, in tic54x_parse_insn()
4196 insn->tm->minops, insn->tm->maxops)) in tic54x_parse_insn()
4201 insn->tm = (insn_template *) hash_find (op_hash, in tic54x_parse_insn()
4208 ++(insn->tm); in tic54x_parse_insn()
4236 insn->tm = (insn_template *) hash_find (parop_hash, insn->mnemonic); in tic54x_parse_parallel_insn_firstline()
4237 if (!insn->tm) in tic54x_parse_parallel_insn_firstline()
4244 while (insn->tm->name && strcasecmp (insn->tm->name, in tic54x_parse_parallel_insn_firstline()
4252 insn->tm->operand_types, 2, 2)) in tic54x_parse_parallel_insn_firstline()
4256 ++(insn->tm); in tic54x_parse_parallel_insn_firstline()
4270 while (insn->tm->name && strcasecmp (insn->tm->name, in tic54x_parse_parallel_insn_lastline()
4273 if (strcasecmp (insn->tm->parname, insn->parmnemonic) == 0) in tic54x_parse_parallel_insn_lastline()
4277 if (insn->paropcount >= insn->tm->minops in tic54x_parse_parallel_insn_lastline()
4278 && insn->paropcount <= insn->tm->maxops in tic54x_parse_parallel_insn_lastline()
4281 insn->tm->paroperand_types, in tic54x_parse_parallel_insn_lastline()
4282 insn->tm->minops, insn->tm->maxops)) in tic54x_parse_parallel_insn_lastline()
4285 ++(insn->tm); in tic54x_parse_parallel_insn_lastline()
4932 if ((insn.tm->flags & FL_LP) in md_assemble()
4936 insn.tm->name); in md_assemble()
4939 if ((insn.tm->flags & FL_FAR) in md_assemble()
4943 insn.tm->name); in md_assemble()
4962 if (insn.tm->flags & FL_BMASK) in md_assemble()
4974 if (insn.tm->flags & FL_NR) in md_assemble()
4977 insn.tm->name); in md_assemble()
4986 if (insn.tm->flags & B_REPEAT) in md_assemble()
4992 if (insn.tm->flags & FL_DELAY) in md_assemble()