Lines Matching refs:errmsg
58 const char * errmsg; in parse_shortregs() local
61 errmsg = cgen_parse_keyword (cd, strp, keywords, regno); in parse_shortregs()
63 if (errmsg) in parse_shortregs()
64 return errmsg; in parse_shortregs()
67 errmsg = _("register unavailable for short instructions"); in parse_shortregs()
69 return errmsg; in parse_shortregs()
93 const char * errmsg; in parse_simm_not_reg() local
112 errmsg = cgen_parse_keyword (cd, strp, & epiphany_cgen_opval_gr_names,valuep); in parse_simm_not_reg()
113 if (!errmsg) in parse_simm_not_reg()
116 errmsg = (sign ? cgen_parse_signed_integer (cd, strp, opindex, valuep) in parse_simm_not_reg()
119 if (errmsg) in parse_simm_not_reg()
120 return errmsg; in parse_simm_not_reg()
123 errmsg = cgen_validate_signed_integer (*valuep, in parse_simm_not_reg()
126 errmsg = cgen_validate_unsigned_integer (*valuep, 0, (1L << bits) - 1); in parse_simm_not_reg()
128 return errmsg; in parse_simm_not_reg()
164 const char * errmsg; in parse_imm8() local
179 errmsg = cgen_parse_address (cd, strp, opindex, code, result_type, valuep); in parse_imm8()
180 if (errmsg) in parse_imm8()
181 return errmsg; in parse_imm8()
184 errmsg = cgen_validate_unsigned_integer (*valuep, 0, 0xff); in parse_imm8()
186 errmsg = _("byte relocation unsupported"); in parse_imm8()
189 return errmsg; in parse_imm8()
202 const char * errmsg; in parse_imm16() local
212 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_EPIPHANY_HIGH, in parse_imm16()
222 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_EPIPHANY_LOW, in parse_imm16()
235 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_16, in parse_imm16()
238 if (!errmsg && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) in parse_imm16()
239 errmsg = cgen_validate_unsigned_integer (*valuep, 0, 0xffff); in parse_imm16()
242 return errmsg; in parse_imm16()
253 const char * errmsg; in parse_branch_addr() local
269 errmsg = _("ABORT: unknown operand"); in parse_branch_addr()
270 return errmsg; in parse_branch_addr()
273 errmsg = cgen_parse_address (cd, strp, opindex, code, in parse_branch_addr()
275 if (errmsg == NULL) in parse_branch_addr()
284 errmsg = cgen_parse_address (cd, &bufp, opindex, code, &result_type, in parse_branch_addr()
295 errmsg = _("Not a pc-relative address."); in parse_branch_addr()
297 return errmsg; in parse_branch_addr()
324 const char * errmsg = NULL; in epiphany_cgen_parse_operand() local
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()
458 return errmsg; in epiphany_cgen_parse_operand()
623 const char *errmsg; in parse_insn_normal() local
708 errmsg = cd->parse_operand (cd, CGEN_SYNTAX_FIELD (*syn), &str, fields); in parse_insn_normal()
709 if (errmsg) in parse_insn_normal()
710 return errmsg; in parse_insn_normal()
762 char **errmsg) in epiphany_cgen_assemble_insn() argument
859 *errmsg = errbuf; in epiphany_cgen_assemble_insn()