From a605d2b30b23ac325fcf9e14aa0e4589b119ec40 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Thu, 9 Dec 2010 22:29:18 +0000 Subject: [PATCH] * config/tc-mips.c (macro): Remove a trailing 0 from NOP requests. --- gas/ChangeLog | 5 +++++ gas/config/tc-mips.c | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index d8feb68b279..aa6508f4445 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2010-12-09 Maciej W. Rozycki + + * config/tc-mips.c (macro): Remove a trailing 0 from NOP + requests. + 2010-12-09 Maciej W. Rozycki * config/tc-mips.c (macro): Use EXTRACT_OPERAND to get register diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 8a7456ad2ff..18db3253214 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -4848,7 +4848,7 @@ macro (struct mips_cl_insn *ip) expr1.X_add_number = 8; macro_build (&expr1, "bgez", "s,p", sreg); if (dreg == sreg) - macro_build (NULL, "nop", "", 0); + macro_build (NULL, "nop", ""); else move_register (dreg, sreg); macro_build (NULL, dbl ? "dsub" : "sub", "d,v,t", dreg, 0, sreg); @@ -4999,7 +4999,7 @@ macro (struct mips_cl_insn *ip) do_false: /* Result is always false. */ if (! likely) - macro_build (NULL, "nop", "", 0); + macro_build (NULL, "nop", ""); else macro_build (&offset_expr, "bnel", "s,t,p", ZERO, ZERO); break; @@ -5415,7 +5415,7 @@ macro (struct mips_cl_insn *ip) { expr1.X_add_number = 8; macro_build (&expr1, "bne", "s,t,p", sreg, AT); - macro_build (NULL, "nop", "", 0); + macro_build (NULL, "nop", ""); /* We want to close the noreorder block as soon as possible, so that later insns are available for delay slot filling. */ @@ -7444,7 +7444,7 @@ macro (struct mips_cl_insn *ip) { expr1.X_add_number = 8; macro_build (&expr1, "beq", "s,t,p", dreg, AT); - macro_build (NULL, "nop", "", 0); + macro_build (NULL, "nop", ""); macro_build (NULL, "break", "c", 6); } end_noreorder (); @@ -7475,7 +7475,7 @@ macro (struct mips_cl_insn *ip) { expr1.X_add_number = 8; macro_build (&expr1, "beq", "s,t,p", AT, ZERO); - macro_build (NULL, "nop", "", 0); + macro_build (NULL, "nop", ""); macro_build (NULL, "break", "c", 6); } end_noreorder (); -- 2.30.2