Remove case sensitivity in register names.

This commit is contained in:
Nick Clifton 2001-11-29 09:41:34 +00:00
parent d0ad30c93c
commit 1000a02a29
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2001-11-29 Arati Dikey <aratid@kpit.com>
* tc-sh.c (parse_at): Removed case-sensitivity of index register
R8, R9.
2001-11-28 Jakub Jelinek <jakub@redhat.com>
* write.c (adjust_reloc_syms): Mark SEC_MERGE symbols as used

View File

@ -994,15 +994,20 @@ parse_at (src, op)
}
if (src[0] == '+')
{
char l0, l1;
src++;
if ((src[0] == 'r' && src[1] == '8')
|| (src[0] == 'i' && (src[1] == 'x' || src[1] == 's')))
l0 = TOLOWER (src[0]);
l1 = TOLOWER (src[1]);
if ((l0 == 'r' && l1 == '8')
|| (l0 == 'i' && (l1 == 'x' || l1 == 's')))
{
src += 2;
op->type = A_PMOD_N;
}
if ((src[0] == 'r' && src[1] == '9')
|| (src[0] == 'i' && src[1] == 'y'))
if ((l0 == 'r' && l1 == '9')
|| (l0 == 'i' && l1 == 'y'))
{
src += 2;
op->type = A_PMODY_N;