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".
This commit is contained in:
Hans-Peter Nilsson 2021-01-01 00:47:36 +01:00
parent 9b243007ba
commit 64d05a4334
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
* config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
2020-12-18 Alan Modra <amodra@gmail.com>
* ecoff.c (ecoff_frob_symbol): Rename scom_section to

View File

@ -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"