[PATCH] For SH target,DSP index register instruction is case sensitive
Nick Clifton
nickc@cambridge.redhat.com
Thu Nov 29 01:40:00 GMT 2001
More information about the Binutils mailing list
Thu Nov 29 01:40:00 GMT 2001
- Previous message (by thread): [PATCH] For SH target,DSP index register instruction is case sensitive
- Next message (by thread): d10v: don't silently turn @-r# into @-sp
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Arati, > The DSP instruction MOVX.W @R4+R8,X0 gives Assembler error "invalid > operands for opcode". On analyzing the code, I found that in > tc-sh.c, in function parse_at(), r8 and r9 were checked without > fisrt calling tolower() function as is done in the other parse > functions. This can be solved with the patch below. > Changelog > 2001-11-29 Arati Dikey <aratid@kpit.com> > * tc-sh.c (parse_at): Removed case-sensitivity of index > register R8, R9. Thanks for submitting this patch. I have applied it, in a slightly extended version (see below). Cheers Nick Index: gas/config/tc-sh.c =================================================================== RCS file: /cvs/src/src/gas/config/tc-sh.c,v retrieving revision 1.47 diff -p -c -r1.47 tc-sh.c *** tc-sh.c 2001/11/15 21:28:58 1.47 --- tc-sh.c 2001/11/29 09:38:20 *************** parse_at (src, op) *** 994,1008 **** } if (src[0] == '+') { src++; ! if ((src[0] == 'r' && src[1] == '8') ! || (src[0] == 'i' && (src[1] == 'x' || src[1] == 's'))) { src += 2; op->type = A_PMOD_N; } ! if ((src[0] == 'r' && src[1] == '9') ! || (src[0] == 'i' && src[1] == 'y')) { src += 2; op->type = A_PMODY_N; --- 994,1013 ---- } if (src[0] == '+') { + char l0, l1; + src++; ! 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 ((l0 == 'r' && l1 == '9') ! || (l0 == 'i' && l1 == 'y')) { src += 2; op->type = A_PMODY_N;
- Previous message (by thread): [PATCH] For SH target,DSP index register instruction is case sensitive
- Next message (by thread): d10v: don't silently turn @-r# into @-sp
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list