Patch SH Assembler: Generates error in case of instruction mov #Imm,rd
Nick Clifton
nickc@redhat.com
Tue Apr 13 17:20:00 GMT 2004
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
More information about the Binutils
mailing list