2008-05-22 Paul Brook <paul@codesourcery.com>
gas/ * config/tc-arm.c (parse_cond): Covert to lowercase before matching.
This commit is contained in:
parent
10f4ecb8fa
commit
c462b453bd
2 changed files with 18 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
2008-05-22 Paul Brook <paul@codesourcery.com>
|
||||
|
||||
* config/tc-arm.c (parse_cond): Covert to lowercase before matching.
|
||||
|
||||
2008-05-21 I-Jui Sung <ijsung@gmail.com>
|
||||
|
||||
* config/tc-arm.c (arm_cpus): Add Faraday ARMv4 and ARMv5TE
|
||||
|
|
|
@ -5043,14 +5043,23 @@ parse_ror (char **str)
|
|||
static int
|
||||
parse_cond (char **str)
|
||||
{
|
||||
char *p, *q;
|
||||
char *q;
|
||||
const struct asm_cond *c;
|
||||
int n;
|
||||
/* Condition codes are always 2 characters, so matching up to
|
||||
3 characters is sufficient. */
|
||||
char cond[3];
|
||||
|
||||
p = q = *str;
|
||||
while (ISALPHA (*q))
|
||||
q++;
|
||||
q = *str;
|
||||
n = 0;
|
||||
while (ISALPHA (*q) && n < 3)
|
||||
{
|
||||
cond[n] = TOLOWER(*q);
|
||||
q++;
|
||||
n++;
|
||||
}
|
||||
|
||||
c = hash_find_n (arm_cond_hsh, p, q - p);
|
||||
c = hash_find_n (arm_cond_hsh, cond, n);
|
||||
if (!c)
|
||||
{
|
||||
inst.error = _("condition required");
|
||||
|
|
Loading…
Add table
Reference in a new issue