From 6ebff3867161b8f3a116db0e1530df0047a87c73 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 15 Jan 2013 08:45:40 +0000 Subject: * 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. --- opcodes/v850-dis.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'opcodes/v850-dis.c') diff --git a/opcodes/v850-dis.c b/opcodes/v850-dis.c index 5f9d87b8f8..7d2e72025a 100644 --- a/opcodes/v850-dis.c +++ b/opcodes/v850-dis.c @@ -118,6 +118,8 @@ get_operand_value (const struct v850_operand *operand, if (operand->flags & V850E_IMMEDIATE16HI) value <<= 16; + else if (value & 0x8000) + value |= (-1L << 16); return value; } -- cgit v1.2.1