Lines Matching refs:strp
54 const char ** strp, in parse_shortregs() argument
61 errmsg = cgen_parse_keyword (cd, strp, keywords, regno); in parse_shortregs()
77 const char ** strp, in parse_uimm_not_reg() argument
82 return parse_simm_not_reg (cd, strp, opindex, svalp); in parse_uimm_not_reg()
89 const char ** strp, in parse_simm_not_reg() argument
112 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_gr_names,valuep); in parse_simm_not_reg()
116 errmsg = (sign ? cgen_parse_signed_integer (cd, strp, opindex, valuep) in parse_simm_not_reg()
117 : cgen_parse_unsigned_integer (cd, strp, opindex, in parse_simm_not_reg()
133 const char ** strp, in parse_postindex() argument
137 if (**strp == '#') in parse_postindex()
138 ++*strp; /* Skip leading hashes. */ in parse_postindex()
140 if (**strp == '-') in parse_postindex()
143 ++*strp; in parse_postindex()
145 else if (**strp == '+') in parse_postindex()
148 ++*strp; in parse_postindex()
158 const char ** strp, in parse_imm8() argument
173 if (!cgen_parse_keyword (cd, strp, &epiphany_cgen_opval_gr_names, &dummyval) in parse_imm8()
174 || !cgen_parse_keyword (cd, strp, &epiphany_cgen_opval_cr_names, in parse_imm8()
179 errmsg = cgen_parse_address (cd, strp, opindex, code, result_type, valuep); in parse_imm8()
196 const char ** strp, in parse_imm16() argument
209 if (strncasecmp (*strp, "%high(", 6) == 0) in parse_imm16()
211 *strp += 6; in parse_imm16()
212 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_EPIPHANY_HIGH, in parse_imm16()
214 if (**strp != ')') in parse_imm16()
216 ++*strp; in parse_imm16()
219 else if (strncasecmp (*strp, "%low(", 5) == 0) in parse_imm16()
221 *strp += 5; in parse_imm16()
222 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_EPIPHANY_LOW, in parse_imm16()
224 if (**strp != ')') in parse_imm16()
226 ++*strp; in parse_imm16()
228 else if (!cgen_parse_keyword (cd, strp, &epiphany_cgen_opval_gr_names, in parse_imm16()
230 || !cgen_parse_keyword (cd, strp, &epiphany_cgen_opval_cr_names, in parse_imm16()
235 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_16, in parse_imm16()
247 const char ** strp, in parse_branch_addr() argument
273 errmsg = cgen_parse_address (cd, strp, opindex, code, in parse_branch_addr()
321 const char ** strp, in epiphany_cgen_parse_operand() argument
331 …errmsg = parse_postindex (cd, strp, EPIPHANY_OPERAND_DIRECTION, (unsigned long *) (& fields->f_add… in epiphany_cgen_parse_operand()
334 …errmsg = parse_uimm_not_reg (cd, strp, EPIPHANY_OPERAND_DISP11, (unsigned long *) (& fields->f_dis… in epiphany_cgen_parse_operand()
337 …errmsg = cgen_parse_unsigned_integer (cd, strp, EPIPHANY_OPERAND_DISP3, (unsigned long *) (& field… in epiphany_cgen_parse_operand()
340 … errmsg = parse_postindex (cd, strp, EPIPHANY_OPERAND_DPMI, (unsigned long *) (& fields->f_subd)); in epiphany_cgen_parse_operand()
343 errmsg = parse_shortregs (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rd); in epiphany_cgen_parse_operand()
346 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rd6); in epiphany_cgen_parse_operand()
349 errmsg = parse_shortregs (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rm); in epiphany_cgen_parse_operand()
352 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rm6); in epiphany_cgen_parse_operand()
355 errmsg = parse_shortregs (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rn); in epiphany_cgen_parse_operand()
358 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rn6); in epiphany_cgen_parse_operand()
363 errmsg = parse_imm16 (cd, strp, EPIPHANY_OPERAND_IMM16, 0, NULL, & value); in epiphany_cgen_parse_operand()
370 errmsg = parse_imm8 (cd, strp, EPIPHANY_OPERAND_IMM8, 0, NULL, & value); in epiphany_cgen_parse_operand()
375 errmsg = parse_shortregs (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rd); in epiphany_cgen_parse_operand()
378 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rd6); in epiphany_cgen_parse_operand()
381 errmsg = parse_shortregs (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rm); in epiphany_cgen_parse_operand()
384 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rm6); in epiphany_cgen_parse_operand()
387 errmsg = parse_shortregs (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rn); in epiphany_cgen_parse_operand()
390 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_gr_names, & fields->f_rn6); in epiphany_cgen_parse_operand()
393 errmsg = parse_shortregs (cd, strp, & epiphany_cgen_opval_cr_names, & fields->f_sd); in epiphany_cgen_parse_operand()
396 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_cr_names, & fields->f_sd6); in epiphany_cgen_parse_operand()
399 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_crdma_names, & fields->f_sd6); in epiphany_cgen_parse_operand()
402 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_crmem_names, & fields->f_sd6); in epiphany_cgen_parse_operand()
405 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_crmesh_names, & fields->f_sd6); in epiphany_cgen_parse_operand()
408 …errmsg = cgen_parse_unsigned_integer (cd, strp, EPIPHANY_OPERAND_SHIFT, (unsigned long *) (& field… in epiphany_cgen_parse_operand()
411 … errmsg = parse_simm_not_reg (cd, strp, EPIPHANY_OPERAND_SIMM11, (long *) (& fields->f_sdisp11)); in epiphany_cgen_parse_operand()
416 errmsg = parse_branch_addr (cd, strp, EPIPHANY_OPERAND_SIMM24, 0, NULL, & value); in epiphany_cgen_parse_operand()
421 errmsg = parse_simm_not_reg (cd, strp, EPIPHANY_OPERAND_SIMM3, (long *) (& fields->f_sdisp3)); in epiphany_cgen_parse_operand()
426 errmsg = parse_branch_addr (cd, strp, EPIPHANY_OPERAND_SIMM8, 0, NULL, & value); in epiphany_cgen_parse_operand()
431 errmsg = parse_shortregs (cd, strp, & epiphany_cgen_opval_cr_names, & fields->f_sn); in epiphany_cgen_parse_operand()
434 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_cr_names, & fields->f_sn6); in epiphany_cgen_parse_operand()
437 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_crdma_names, & fields->f_sn6); in epiphany_cgen_parse_operand()
440 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_crmem_names, & fields->f_sn6); in epiphany_cgen_parse_operand()
443 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_crmesh_names, & fields->f_sn6); in epiphany_cgen_parse_operand()
446 …errmsg = parse_uimm_not_reg (cd, strp, EPIPHANY_OPERAND_SWI_NUM, (unsigned long *) (& fields->f_tr… in epiphany_cgen_parse_operand()
449 …errmsg = cgen_parse_unsigned_integer (cd, strp, EPIPHANY_OPERAND_TRAPNUM6, (unsigned long *) (& fi… in epiphany_cgen_parse_operand()
617 const char **strp, in parse_insn_normal() argument
622 const char *str = *strp; in parse_insn_normal()