+2013-06-12 Sandra Loosemore <sandra@codesourcery.com>
+
+ * config/tc-nios2.c (md_apply_fix): Mask constant
+ BFD_RELOC_NIOS2_HIADJ16 value to 16 bits.
+
2013-06-10 Maciej W. Rozycki <macro@codesourcery.com>
* config/tc-mips.c (append_insn): Don't do branch relaxation for
fixup = fixup & 0xFFFF;
break;
case BFD_RELOC_NIOS2_HIADJ16:
- fixup = ((fixup >> 16) & 0xFFFF) + ((fixup >> 15) & 0x01);
+ fixup = ((((fixup >> 16) & 0xFFFF) + ((fixup >> 15) & 0x01))
+ & 0xFFFF);
break;
default:
{
+2013-06-12 Sandra Loosemore <sandra@codesourcery.com>
+
+ * gas/nios2/movia.s: Add additional test case with negative
+ constant value.
+ * gas/nios2/movia.d: Likewise.
+
2013-06-12 Sandra Loosemore <sandra@codesourcery.com>
* gas/nios2/tret.d: Correct eret encoding.
10: R_NIOS2_HIADJ16 sym-0x7fffffff
0+0014 <[^>]*> 21000004 addi r4,r4,0
14: R_NIOS2_LO16 sym-0x7fffffff
+0+0018 <[^>]*> 00800034 movhi r2,0
+0+001c <[^>]*> 10bffc04 addi r2,r2,-16
movia r2, 0x80808080
movia r3, sym + 0x80000000
movia r4, sym - 0x7fffffff
+ movia r2, 0xfffffff0