aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-01-15 08:45:45 +0000
committerNick Clifton <nickc@redhat.com>2013-01-15 08:45:45 +0000
commitdd42f060364b48544301451a4b68e01bc978b281 (patch)
tree0107564ec6477f07134fef85de74b371b7d0f85d /gas/config
parent77bf820f915a0c12108e266b185430fb73561c94 (diff)
downloadgdb-dd42f060364b48544301451a4b68e01bc978b281.zip
gdb-dd42f060364b48544301451a4b68e01bc978b281.tar.gz
gdb-dd42f060364b48544301451a4b68e01bc978b281.tar.bz2
* config/tc-v850.c (md_assemble): Allow signed values for
V850E_IMMEDIATE. * gas/v850/basic.exp: Allow for variations in reloc names. * gas/v850/split-lo16.d: Likewise. * gas/v850/v850e1.s: Add more tests of the PREPARE insn. * gas/v850/v850e1.d: Update expected disassembly. * v850-dis.c (get_operand_value): Sign extend V850E_IMMEDIATE values. * v850-opc.c (IMM16LO): Add V850_OPERAND_SIGNED attribute.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-v850.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c
index 7053e93..ad1fb30 100644
--- a/gas/config/tc-v850.c
+++ b/gas/config/tc-v850.c
@@ -2350,7 +2350,8 @@ md_assemble (char *str)
}
if (operand->flags & V850E_IMMEDIATE16)
{
- if (ex.X_add_number & 0xffff0000)
+ if ((ex.X_add_number & 0xffff0000)
+ && ((ex.X_add_number & 0xffff0000) != 0xffff0000))
{
errmsg = _("constant too big to fit into instruction");
goto error;