Home | History | Annotate | Download | only in codeflinger

Lines Matching refs:token

95 static void get_token(const char *instr, uint32_t index, char *token)
102 token[j++] = instr[i];
111 token[j++] = instr[i];
114 token[j] = '\0';
134 static void decode_token(uint32_t code, char *token, char *instr_part)
136 if(strcmp(token, "<imm1>") == 0)
138 else if(strcmp(token, "<imm2>") == 0)
140 else if(strcmp(token, "<shift1>") == 0)
142 else if(strcmp(token, "<shift2>") == 0)
147 else if(strcmp(token, "<shift3>") == 0)
149 else if(strcmp(token, "<amt1>") == 0)
151 else if(strcmp(token, "<amt2>") == 0)
153 else if(strcmp(token, "<amt3>") == 0)
155 else if(strcmp(token, "<amt4>") == 0)
157 else if(strcmp(token, "<amt5>") == 0)
162 else if(strcmp(token, "<amt6>") == 0)
164 else if(strcmp(token, "<simm1>") == 0)
166 else if(strcmp(token, "<immr1>") == 0)
168 else if(strcmp(token, "<imms1>") == 0)
170 else if(strcmp(token, "<lsb1>") == 0)
172 else if(strcmp(token, "<cond1>") == 0)
174 else if(strcmp(token, "<cond2>") == 0)
176 else if(strcmp(token, "<r1>") == 0)
185 else if(strcmp(token, "<r2>") == 0)
193 else if(strcmp(token, "<m1>") == 0)
201 else if(strcmp(token, "<ext1>") == 0)
210 else if(strcmp(token, "<ext2>") == 0)
219 else if (strcmp(token, "<label1>") == 0)
227 else if (strcmp(token, "<xn|sp>") == 0)
235 else if (strcmp(token, "<xd|sp>") == 0)
243 else if (strcmp(token, "<xn>") == 0)
245 else if (strcmp(token, "<xd>") == 0)
247 else if (strcmp(token, "<xm>") == 0)
249 else if (strcmp(token, "<xa>") == 0)
251 else if (strcmp(token, "<xt>") == 0)
253 else if (strcmp(token, "<wn>") == 0)
255 else if (strcmp(token, "<wd>") == 0)
257 else if (strcmp(token, "<wm>") == 0)
259 else if (strcmp(token, "<wa>") == 0)
261 else if (strcmp(token, "<wt>") == 0)
273 char token[256];
302 get_token(entry->instr_template, index, token);
303 if(token[0] == '<')
305 decode_token(code, token, instr_part);
310 strcat(instr, token);
312 index += strlen(token);