Lines Matching refs:strp
117 parse_csrn (CGEN_CPU_DESC cd, const char **strp,
123 err = cgen_parse_keyword (cd, strp, keyword_table, field);
127 err = cgen_parse_unsigned_integer (cd, strp, MEP_OPERAND_CSRN_IDX, & value);
142 const char **strp,
146 return cgen_parse_keyword (cd, strp, & mep_cgen_opval_h_cr_ivc2, field);
155 const char **strp,
159 return cgen_parse_keyword (cd, strp, & mep_cgen_opval_h_ccr_ivc2, field);
164 parse_tpreg (CGEN_CPU_DESC cd, const char ** strp,
169 err = cgen_parse_keyword (cd, strp, keyword_table, field);
178 parse_spreg (CGEN_CPU_DESC cd, const char ** strp,
183 err = cgen_parse_keyword (cd, strp, keyword_table, field);
192 parse_mep_align (CGEN_CPU_DESC cd, const char ** strp,
204 err = cgen_parse_signed_integer (cd, strp, type, field);
212 err = cgen_parse_unsigned_integer (cd, strp, type, (unsigned long *) field);
249 parse_mep_alignu (CGEN_CPU_DESC cd, const char ** strp,
252 return parse_mep_align (cd, strp, type, (long *) field);
261 const char **strp,
265 return parse_lo16 (cd, strp, opindex, valuep, 1);
270 const char **strp,
279 if (strncasecmp (*strp, "%lo(", 4) == 0)
281 *strp += 4;
282 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_MEP_LOW16,
284 if (**strp != ')')
286 ++*strp;
297 if (strncasecmp (*strp, "%hi(", 4) == 0)
299 *strp += 4;
300 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_MEP_HI16S,
302 if (**strp != ')')
304 ++*strp;
312 if (strncasecmp (*strp, "%uhi(", 5) == 0)
314 *strp += 5;
315 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_MEP_HI16U,
317 if (**strp != ')')
319 ++*strp;
327 if (strncasecmp (*strp, "%sdaoff(", 8) == 0)
329 *strp += 8;
330 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_MEP_GPREL,
332 if (**strp != ')')
334 ++*strp;
339 if (strncasecmp (*strp, "%tpoff(", 7) == 0)
341 *strp += 7;
342 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_MEP_TPREL,
344 if (**strp != ')')
346 ++*strp;
351 if (**strp == '%')
354 return cgen_parse_signed_integer (cd, strp, opindex, valuep);
359 const char **strp,
363 return parse_lo16 (cd, strp, opindex, (long *) valuep, 0);
368 const char **strp,
375 errmsg = cgen_parse_signed_integer (cd, strp, opindex, & value);
388 const char **strp,
395 errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, & value);
409 parse_zero (CGEN_CPU_DESC cd, const char **strp, int opindex, long *valuep)
415 /*fprintf(stderr, "dj: signed parse opindex `%s'\n", *strp);*/
420 if (strncmp (*strp, "($", 2) == 0)
423 if (strncasecmp (*strp, "%lo(", 4) == 0)
425 *strp += 4;
426 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_MEP_LOW16,
428 if (**strp != ')')
430 ++*strp;
438 if (strncasecmp (*strp, "%hi(", 4) == 0)
440 *strp += 4;
441 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_MEP_HI16S,
443 if (**strp != ')')
445 ++*strp;
453 if (strncasecmp (*strp, "%uhi(", 5) == 0)
455 *strp += 5;
456 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_MEP_HI16U,
458 if (**strp != ')')
460 ++*strp;
468 if (strncasecmp (*strp, "%sdaoff(", 8) == 0)
470 *strp += 8;
471 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_MEP_GPREL,
473 if (**strp != ')')
475 ++*strp;
483 if (strncasecmp (*strp, "%tpoff(", 7) == 0)
485 *strp += 7;
486 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_MEP_TPREL,
488 if (**strp != ')')
490 ++*strp;
498 if (**strp == '%')
501 errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_NONE,
511 parse_unsigned7 (CGEN_CPU_DESC cd, const char **strp,
517 /* fprintf(stderr, "dj: unsigned7 parse `%s'\n", *strp); */
519 if (strncasecmp (*strp, "%tpoff(", 7) == 0)
522 *strp += 7;
538 errmsg = cgen_parse_address (cd, strp, opindex, reloc,
540 if (**strp != ')')
542 ++*strp;
547 if (**strp == '%')
550 return parse_mep_alignu (cd, strp, opindex, valuep);
555 const char **strp,
582 if (strncmp (*strp, "0x0", 3) == 0
583 || (**strp == '0' && *(*strp + 1) != 'x'))
586 errmsg = cgen_parse_signed_integer (cd, strp, opindex, & value);
832 const char **strp = 0;
839 strp = (const char **)(&str);
841 errmsg = mep_cgen_parse_operand (cd, opindex, strp, fields);