aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2000-06-28 19:06:25 +0000
committerAldy Hernandez <aldyh@redhat.com>2000-06-28 19:06:25 +0000
commit2ae7e77be88be49df7fc287199d2a7a4046f9205 (patch)
tree6a9562b304cd618831a0c47c8e9bf051eab0835b /gas/config
parentaddd3117d72ac1e1b19b7432f3085f3cb5952d13 (diff)
downloadgdb-2ae7e77be88be49df7fc287199d2a7a4046f9205.zip
gdb-2ae7e77be88be49df7fc287199d2a7a4046f9205.tar.gz
gdb-2ae7e77be88be49df7fc287199d2a7a4046f9205.tar.bz2
16 bit immediate expr support for mips
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 1b5c9c8..a4d25bc 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -7746,10 +7746,8 @@ mips_ip (str, ip)
if (insn + 1 < &mips_opcodes[NUMOPCODES] &&
!strcmp (insn->name, insn[1].name))
break;
- if (imm_expr.X_op != O_constant
- && imm_expr.X_op != O_big)
- insn_error = _("absolute expression required");
- else
+ if (imm_expr.X_op == O_constant
+ || imm_expr.X_op == O_big)
as_bad (_("16 bit expression not in range 0..65535"));
}
}
@@ -7785,10 +7783,8 @@ mips_ip (str, ip)
{
if (more)
break;
- if (imm_expr.X_op != O_constant
- && imm_expr.X_op != O_big)
- insn_error = _("absolute expression required");
- else
+ if (imm_expr.X_op == O_constant
+ || imm_expr.X_op == O_big)
as_bad (_("16 bit expression not in range -32768..32767"));
}
}