committed, gas: Change to "swym 0" as canonical nop insn for MMIX

Message ID alpine.BSF.2.20.16.2012311848400.72483@arjuna.pair.com
State New
Headers show
Series
  • committed, gas: Change to "swym 0" as canonical nop insn for MMIX
Related show

Commit Message

Hans-Peter Nilsson Dec. 31, 2020, 11:50 p.m.
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.

HNY!

gas/
	* config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".



brgds, H-P

Patch

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