From: Hans-Peter Nilsson Date: Thu, 31 Dec 2020 23:47:36 +0000 (+0100) Subject: gas: Change to "swym 0" as canonical nop insn for MMIX X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64d05a4334bd7624e8e0905465b53ed7f0144cb2;p=binutils-gdb.git gas: Change to "swym 0" as canonical nop insn for MMIX While "set $0, $0" works, that's not the documented instruction to do nothing for MMIX. However, I'm not changing it for "nop_type 5" as seen in gas.exp and org-1.s, because "set $0, $0" seems like it could be re-used there, for some future ISA. gas/ * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0". --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 8cdf93b6a2e..b5a352f5736 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2021-01-01 Hans-Peter Nilsson + + * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0". + 2020-12-18 Alan Modra * ecoff.c (ecoff_frob_symbol): Rename scom_section to diff --git a/gas/config/tc-mmix.h b/gas/config/tc-mmix.h index 2d8e226dc80..bd597dbc075 100644 --- a/gas/config/tc-mmix.h +++ b/gas/config/tc-mmix.h @@ -229,4 +229,4 @@ extern void mmix_md_do_align (int, char *, int, int); /* MMIX has global register symbols. */ #define TC_GLOBAL_REGISTER_SYMBOL_OK -#define md_single_noop_insn "set $0, $0" +#define md_single_noop_insn "swym 0"