bool have_prefix;
/* Skip whitespace before the number. */
- while (*p == ' ' || *p == '\t')
+ while (is_whitespace (*p))
p = p + 1;
pa_number = -1;
*s += strlen (fp_cond_map[i].string);
/* If not a complete match, back up the input string and
report an error. */
- if (**s != ' ' && **s != '\t')
+ if (!is_whitespace (**s))
{
*s -= strlen (fp_cond_map[i].string);
break;
}
- while (**s == ' ' || **s == '\t')
+ while (is_whitespace (**s))
*s = *s + 1;
return cond;
}
as_bad (_("Invalid FP Compare Condition: %s"), *s);
/* Advance over the bogus completer. */
- while (**s != ',' && **s != ' ' && **s != '\t')
+ while (**s != ',' && !is_whitespace (**s))
*s += 1;
return 0;
char *s = *str;
/* Read past any whitespace. */
- while (*s == ' ' || *s == '\t')
+ while (is_whitespace (*s))
s++;
*str = s;
contain no whitespace. */
s = *strp;
- while (*s != ',' && *s != ' ' && *s != '\t')
+ while (*s != ',' && !is_whitespace (*s))
s++;
c = *s;
if (**s == ',')
{
*s += 1;
- while (**s != ',' && **s != ' ' && **s != '\t')
+ while (**s != ',' && !is_whitespace (**s))
*s += 1;
c = **s;
**s = 0x00;
if (**s == ',')
{
*s += 1;
- while (**s != ',' && **s != ' ' && **s != '\t')
+ while (**s != ',' && !is_whitespace (**s))
*s += 1;
c = **s;
**s = 0x00;
if (**s == ',')
{
*s += 1;
- while (**s != ',' && **s != ' ' && **s != '\t')
+ while (**s != ',' && !is_whitespace (**s))
*s += 1;
c = **s;
**s = 0x00;
if (**s == ',')
{
*s += 1;
- while (**s != ',' && **s != ' ' && **s != '\t')
+ while (**s != ',' && !is_whitespace (**s))
*s += 1;
c = **s;
**s = 0x00;
if (**s == ',')
{
*s += 1;
- while (**s != ',' && **s != ' ' && **s != '\t')
+ while (**s != ',' && !is_whitespace (**s))
*s += 1;
c = **s;
**s = 0x00;
if (**s == ',')
{
*s += 1;
- while (**s != ',' && **s != ' ' && **s != '\t')
+ while (**s != ',' && !is_whitespace (**s))
*s += 1;
c = **s;
**s = 0x00;
if (**s == ',')
{
*s += 1;
- while (**s != ',' && **s != ' ' && **s != '\t')
+ while (**s != ',' && !is_whitespace (**s))
*s += 1;
c = **s;
**s = 0x00;
/* Convert everything up to the first whitespace character into lower
case. */
- for (s = str; *s != ' ' && *s != '\t' && *s != '\n' && *s != '\0'; s++)
+ for (s = str; !is_whitespace (*s) && !is_end_of_stmt (*s); s++)
*s = TOLOWER (*s);
/* Skip to something interesting. */
/*FALLTHROUGH */
- case ' ':
+ zap_char:
*s++ = '\0';
break;
default:
+ if (is_whitespace (*s))
+ goto zap_char;
as_bad (_("Unknown opcode: `%s'"), str);
return;
}
for (args = insn->args;; ++args)
{
/* Absorb white space in instruction. */
- while (*s == ' ' || *s == '\t')
+ while (is_whitespace (*s))
s++;
switch (*args)
case '(':
case ')':
case ',':
- case ' ':
if (*s++ == *args)
continue;
break;
+ case ' ':
+ if (is_whitespace (*s++))
+ continue;
+ break;
+
/* Handle a 5 bit register or control register field at 10. */
case 'b':
case '^':
is there. */
case '!':
/* Skip whitespace before register. */
- while (*s == ' ' || *s == '\t')
+ while (is_whitespace (*s))
s = s + 1;
if (!strncasecmp (s, "%sar", 4))
break;
name = s;
- while (*s != ',' && *s != ' ' && *s != '\t')
+ while (*s != ',' && !is_whitespace (*s))
s += 1;
c = *s;
*s = 0x00;
break;
name = s;
- while (*s != ',' && *s != ' ' && *s != '\t')
+ while (*s != ',' && !is_whitespace (*s))
s += 1;
c = *s;
*s = 0x00;
break;
name = s;
- while (*s != ',' && *s != ' ' && *s != '\t')
+ while (*s != ',' && !is_whitespace (*s))
s += 1;
c = *s;
*s = 0x00;
break;
name = s;
- while (*s != ',' && *s != ' ' && *s != '\t')
+ while (*s != ',' && !is_whitespace (*s))
s += 1;
c = *s;
*s = 0x00;
s += 3;
}
/* ",*" is a valid condition. */
- else if (*args != 'U' || (*s != ' ' && *s != '\t'))
+ else if (*args != 'U' || !is_whitespace (*s))
as_bad (_("Invalid Unit Instruction Condition."));
}
/* 32-bit is default for no condition. */