This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Patch SH Assembler: Generates error in case of instruction mov#Imm,rd
- From: Nick Clifton <nickc at redhat dot com>
- To: Anil Paranjape <AnilP1 at KPITCummins dot com>
- Cc: Andreas Schwab <schwab at suse dot de>, binutils at sources dot redhat dot com
- Date: Tue, 13 Apr 2004 18:19:28 +0100
- Subject: Re: Patch SH Assembler: Generates error in case of instruction mov#Imm,rd
- References: <69595093233BB547BB70CF5E492B63F205019135@sohm.kpit.com>
Hi Anil,
I think H8300-ELF assembler should generate error or warning like SH-ELF assembler does in case of following code,
.global _start
_start: mov.w #H'0f,r5
rts
.end
Any guidance on this is much appreciated.
Are you concerned about #H<expr> not being interpreted as a hexadecimal
value or the '0f being interpreted as 48f ?
Either way you probably want to examine/debug the function
gas/expr.c:integer_constant() which is where the work of converting a
string into an integer is performed.
Cheers
Nick