aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2010-12-09 22:45:13 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2010-12-09 22:45:13 +0000
commitf01dc9538ad6f4f4cc5b33d37167d46948b70d1a (patch)
treea92e30e913084ec9a3042fec00cf70e070fc7898 /gas
parenta605d2b30b23ac325fcf9e14aa0e4589b119ec40 (diff)
downloadgdb-f01dc9538ad6f4f4cc5b33d37167d46948b70d1a.zip
gdb-f01dc9538ad6f4f4cc5b33d37167d46948b70d1a.tar.gz
gdb-f01dc9538ad6f4f4cc5b33d37167d46948b70d1a.tar.bz2
* config/tc-mips.c (macro)
<M_BGTUL_I, M_BGTU_I, M_BLEUL_I, M_BLEU_I>: Fix the constant used to compare against for the always-false/true case.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-mips.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index aa6508f..a3f72b7 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,11 @@
2010-12-09 Maciej W. Rozycki <macro@codesourcery.com>
+ * config/tc-mips.c (macro)
+ <M_BGTUL_I, M_BGTU_I, M_BLEUL_I, M_BLEU_I>: Fix the constant
+ used to compare against for the always-false/true case.
+
+2010-12-09 Maciej W. Rozycki <macro@codesourcery.com>
+
* config/tc-mips.c (macro): Remove a trailing 0 from NOP
requests.
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 18db325..3be00bc 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -5068,7 +5068,7 @@ macro (struct mips_cl_insn *ip)
if (sreg == 0
|| (HAVE_32BIT_GPRS
&& imm_expr.X_op == O_constant
- && imm_expr.X_add_number == (offsetT) 0xffffffff))
+ && imm_expr.X_add_number == -1))
goto do_false;
if (imm_expr.X_op != O_constant)
as_bad (_("Unsupported large constant"));
@@ -5203,7 +5203,7 @@ macro (struct mips_cl_insn *ip)
if (sreg == 0
|| (HAVE_32BIT_GPRS
&& imm_expr.X_op == O_constant
- && imm_expr.X_add_number == (offsetT) 0xffffffff))
+ && imm_expr.X_add_number == -1))
goto do_true;
if (imm_expr.X_op != O_constant)
as_bad (_("Unsupported large constant"));