bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug gas/5138] New: Bit range mismatch in config/tc-cris.c


From: Hans-Peter Nilsson
Subject: Re: [Bug gas/5138] New: Bit range mismatch in config/tc-cris.c
Date: Sun, 7 Oct 2007 17:59:09 -0400 (EDT)

On Sun, 7 Oct 2007, karvjorm at users dot sourceforge dot net wrote:
The following error message is a bit limited:

#: config/tc-cris.c:2110 config/tc-cris.c:2150
#, c-format
msgid "Immediate value not in 8 bit range: %ld"

source code:

if (instruction->imm_oprnd_size == SIZE_FIELD
 && (out_insnp->expr.X_add_number < -128
   || out_insnp->expr.X_add_number > 255))
     as_bad (_("Immediate value not in 8 bit range: %ld"),
                out_insnp->expr.X_add_number);

In the source code is actually checked, if value is below -128 or above 255 and
range is then greater than 8 bits.

Well, it's 8-bit signed *and* 8-bit unsigned: perhaps saying "not in 8-bit signed or unsigned range" would sound better to you?
If you have a better wording to suggest, feel free.

brgds, H-P




reply via email to

[Prev in Thread] Current Thread [Next in Thread]