This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch SH Assembler: Generates error in case of instruction mov#Imm,rd


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]