Lines Matching refs:strp

59 	      const char ** strp,  in parse_disp26()  argument
68 if (strncasecmp (*strp, "plt(", 4) == 0) in parse_disp26()
72 *strp += 4; in parse_disp26()
73 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_OR1K_PLT26, in parse_disp26()
75 if (**strp != ')') in parse_disp26()
77 ++*strp; in parse_disp26()
84 return cgen_parse_address (cd, strp, opindex, opinfo, resultp, valuep); in parse_disp26()
88 parse_simm16 (CGEN_CPU_DESC cd, const char ** strp, int opindex, long * valuep) in parse_simm16() argument
94 if (**strp == '#') in parse_simm16()
95 ++*strp; in parse_simm16()
97 if (strncasecmp (*strp, "hi(", 3) == 0) in parse_simm16()
101 *strp += 3; in parse_simm16()
102 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_HI16, in parse_simm16()
104 if (**strp != ')') in parse_simm16()
106 ++*strp; in parse_simm16()
118 else if (strncasecmp (*strp, "lo(", 3) == 0) in parse_simm16()
122 *strp += 3; in parse_simm16()
123 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_LO16, in parse_simm16()
125 if (**strp != ')') in parse_simm16()
127 ++*strp; in parse_simm16()
137 else if (strncasecmp (*strp, "got(", 4) == 0) in parse_simm16()
141 *strp += 4; in parse_simm16()
142 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_OR1K_GOT16, in parse_simm16()
144 if (**strp != ')') in parse_simm16()
146 ++*strp; in parse_simm16()
153 else if (strncasecmp (*strp, "gotpchi(", 8) == 0) in parse_simm16()
157 *strp += 8; in parse_simm16()
158 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
161 if (**strp != ')') in parse_simm16()
163 ++*strp; in parse_simm16()
170 else if (strncasecmp (*strp, "gotpclo(", 8) == 0) in parse_simm16()
174 *strp += 8; in parse_simm16()
175 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
178 if (**strp != ')') in parse_simm16()
180 ++*strp; in parse_simm16()
187 else if (strncasecmp (*strp, "gotoffhi(", 9) == 0) in parse_simm16()
191 *strp += 9; in parse_simm16()
192 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
196 if (**strp != ')') in parse_simm16()
198 ++*strp; in parse_simm16()
205 else if (strncasecmp (*strp, "gotofflo(", 9) == 0) in parse_simm16()
209 *strp += 9; in parse_simm16()
210 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
213 if (**strp != ')') in parse_simm16()
215 ++*strp; in parse_simm16()
222 else if (strncasecmp (*strp, "tlsgdhi(", 8) == 0) in parse_simm16()
226 *strp += 8; in parse_simm16()
227 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
231 if (**strp != ')') in parse_simm16()
233 ++*strp; in parse_simm16()
240 else if (strncasecmp (*strp, "tlsgdlo(", 8) == 0) in parse_simm16()
244 *strp += 8; in parse_simm16()
245 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
248 if (**strp != ')') in parse_simm16()
250 ++*strp; in parse_simm16()
257 else if (strncasecmp (*strp, "tlsldmhi(", 9) == 0) in parse_simm16()
261 *strp += 9; in parse_simm16()
262 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
266 if (**strp != ')') in parse_simm16()
268 ++*strp; in parse_simm16()
275 else if (strncasecmp (*strp, "tlsldmlo(", 9) == 0) in parse_simm16()
279 *strp += 9; in parse_simm16()
280 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
283 if (**strp != ')') in parse_simm16()
285 ++*strp; in parse_simm16()
292 else if (strncasecmp (*strp, "dtpoffhi(", 9) == 0) in parse_simm16()
296 *strp += 9; in parse_simm16()
297 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
301 if (**strp != ')') in parse_simm16()
303 ++*strp; in parse_simm16()
310 else if (strncasecmp (*strp, "dtpofflo(", 9) == 0) in parse_simm16()
314 *strp += 9; in parse_simm16()
315 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
318 if (**strp != ')') in parse_simm16()
320 ++*strp; in parse_simm16()
327 else if (strncasecmp (*strp, "gottpoffhi(", 11) == 0) in parse_simm16()
331 *strp += 11; in parse_simm16()
332 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
336 if (**strp != ')') in parse_simm16()
338 ++*strp; in parse_simm16()
345 else if (strncasecmp (*strp, "gottpofflo(", 11) == 0) in parse_simm16()
349 *strp += 11; in parse_simm16()
350 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
353 if (**strp != ')') in parse_simm16()
355 ++*strp; in parse_simm16()
362 else if (strncasecmp (*strp, "tpoffhi(", 8) == 0) in parse_simm16()
366 *strp += 8; in parse_simm16()
367 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
371 if (**strp != ')') in parse_simm16()
373 ++*strp; in parse_simm16()
380 else if (strncasecmp (*strp, "tpofflo(", 8) == 0) in parse_simm16()
384 *strp += 8; in parse_simm16()
385 errmsg = cgen_parse_address (cd, strp, opindex, in parse_simm16()
388 if (**strp != ')') in parse_simm16()
390 ++*strp; in parse_simm16()
400 errmsg = cgen_parse_signed_integer (cd, strp, opindex, &value); in parse_simm16()
411 parse_uimm16 (CGEN_CPU_DESC cd, const char ** strp, int opindex, unsigned long * valuep) in parse_uimm16() argument
413 const char *errmsg = parse_simm16(cd, strp, opindex, (long *) valuep); in parse_uimm16()
441 const char ** strp, in or1k_cgen_parse_operand() argument
453 errmsg = parse_disp26 (cd, strp, OR1K_OPERAND_DISP26, 0, NULL, & value); in or1k_cgen_parse_operand()
458 errmsg = cgen_parse_keyword (cd, strp, & or1k_cgen_opval_h_gpr, & fields->f_r2); in or1k_cgen_parse_operand()
461 errmsg = cgen_parse_keyword (cd, strp, & or1k_cgen_opval_h_fdr, & fields->f_r1); in or1k_cgen_parse_operand()
464 errmsg = cgen_parse_keyword (cd, strp, & or1k_cgen_opval_h_fsr, & fields->f_r2); in or1k_cgen_parse_operand()
467 errmsg = cgen_parse_keyword (cd, strp, & or1k_cgen_opval_h_gpr, & fields->f_r3); in or1k_cgen_parse_operand()
470 errmsg = cgen_parse_keyword (cd, strp, & or1k_cgen_opval_h_fdr, & fields->f_r1); in or1k_cgen_parse_operand()
473 errmsg = cgen_parse_keyword (cd, strp, & or1k_cgen_opval_h_fsr, & fields->f_r3); in or1k_cgen_parse_operand()
476 errmsg = cgen_parse_keyword (cd, strp, & or1k_cgen_opval_h_gpr, & fields->f_r1); in or1k_cgen_parse_operand()
479 errmsg = cgen_parse_keyword (cd, strp, & or1k_cgen_opval_h_fdr, & fields->f_r1); in or1k_cgen_parse_operand()
482 errmsg = cgen_parse_keyword (cd, strp, & or1k_cgen_opval_h_fsr, & fields->f_r1); in or1k_cgen_parse_operand()
485 errmsg = parse_simm16 (cd, strp, OR1K_OPERAND_SIMM16, (long *) (& fields->f_simm16)); in or1k_cgen_parse_operand()
488 … errmsg = parse_simm16 (cd, strp, OR1K_OPERAND_SIMM16_SPLIT, (long *) (& fields->f_simm16_split)); in or1k_cgen_parse_operand()
491 errmsg = parse_uimm16 (cd, strp, OR1K_OPERAND_UIMM16, (unsigned long *) (& fields->f_uimm16)); in or1k_cgen_parse_operand()
494 …errmsg = parse_uimm16 (cd, strp, OR1K_OPERAND_UIMM16_SPLIT, (unsigned long *) (& fields->f_uimm16_… in or1k_cgen_parse_operand()
497 …errmsg = cgen_parse_unsigned_integer (cd, strp, OR1K_OPERAND_UIMM6, (unsigned long *) (& fields->f… in or1k_cgen_parse_operand()
665 const char **strp, in parse_insn_normal() argument
670 const char *str = *strp; in parse_insn_normal()