From: Nick Clifton Date: Thu, 29 Nov 2001 09:41:34 +0000 (+0000) Subject: Remove case sensitivity in register names. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1000a02a2944998f22cae7fd82bff701f161f69a;p=binutils-gdb.git Remove case sensitivity in register names. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index b07bb46dc5b..2df90da091c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-11-29 Arati Dikey + + * tc-sh.c (parse_at): Removed case-sensitivity of index register + R8, R9. + 2001-11-28 Jakub Jelinek * write.c (adjust_reloc_syms): Mark SEC_MERGE symbols as used diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 654fc0f51dc..935a2876042 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -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;