forked from Imagelibrary/binutils-gdb
[ gas/ChangeLog ]
* config/tc-mips.c (append_insn): Don't check the range of j or jal addresses. [ gas/testsuite/ChangeLog ] * gas/mips/jal-range.l: Don't check the range of j or jal addresses.
This commit is contained in:
@@ -2415,9 +2415,6 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr,
|
||||
if ((address_expr->X_add_number & 3) != 0)
|
||||
as_bad (_("jump to misaligned address (0x%lx)"),
|
||||
(unsigned long) address_expr->X_add_number);
|
||||
if (address_expr->X_add_number & ~0xfffffff)
|
||||
as_warn (_("jump address range overflow (0x%lx)"),
|
||||
(unsigned long) address_expr->X_add_number);
|
||||
ip->insn_opcode |= (address_expr->X_add_number >> 2) & 0x3ffffff;
|
||||
break;
|
||||
|
||||
@@ -2425,9 +2422,6 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr,
|
||||
if ((address_expr->X_add_number & 3) != 0)
|
||||
as_bad (_("jump to misaligned address (0x%lx)"),
|
||||
(unsigned long) address_expr->X_add_number);
|
||||
if (address_expr->X_add_number & ~0xfffffff)
|
||||
as_warn (_("jump address range overflow (0x%lx)"),
|
||||
(unsigned long) address_expr->X_add_number);
|
||||
ip->insn_opcode |=
|
||||
(((address_expr->X_add_number & 0x7c0000) << 3)
|
||||
| ((address_expr->X_add_number & 0xf800000) >> 7)
|
||||
|
||||
Reference in New Issue
Block a user