From 165c94a8f266e47f1375037127eec89b1dc7d697 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Thu, 9 Dec 2010 22:45:12 +0000 Subject: [PATCH] * config/tc-mips.c (macro) : Fix the constant used to compare against for the always-false/true case. --- gas/ChangeLog | 6 ++++++ gas/config/tc-mips.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index aa6508f44..a3f72b785 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,11 @@ 2010-12-09 Maciej W. Rozycki + * config/tc-mips.c (macro) + : Fix the constant + used to compare against for the always-false/true case. + +2010-12-09 Maciej W. Rozycki + * 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 18db32532..3be00bcd6 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")); -- 2.11.4.GIT