diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2010-12-09 22:29:18 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2010-12-09 22:29:18 +0000 |
commit | a605d2b30b23ac325fcf9e14aa0e4589b119ec40 (patch) | |
tree | 7e5a42984e1ccd7968b56068de77ea960130850f /gas | |
parent | bbea7ebcc5c5ef8102fe45775c95cba5b854d4c1 (diff) | |
download | gdb-a605d2b30b23ac325fcf9e14aa0e4589b119ec40.zip gdb-a605d2b30b23ac325fcf9e14aa0e4589b119ec40.tar.gz gdb-a605d2b30b23ac325fcf9e14aa0e4589b119ec40.tar.bz2 |
* config/tc-mips.c (macro): Remove a trailing 0 from NOP
requests.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index d8feb68..aa6508f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2010-12-09 Maciej W. Rozycki <macro@codesourcery.com> + * config/tc-mips.c (macro): Remove a trailing 0 from NOP + requests. + +2010-12-09 Maciej W. Rozycki <macro@codesourcery.com> + * config/tc-mips.c (macro): Use EXTRACT_OPERAND to get register numbers. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 8a7456a..18db325 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 (); |