bug-binutils
[Top][All Lists]
Advanced

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

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


From: hp at bitrange dot com
Subject: [Bug gas/5138] Bit range mismatch in config/tc-cris.c
Date: 7 Oct 2007 21:59:18 -0000

------- Additional Comments From hp at bitrange dot com  2007-10-07 21:59 
-------
Subject: Re:  New: Bit range mismatch in config/tc-cris.c

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


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5138

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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