public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* committed, gas: Change to "swym 0" as canonical nop insn for MMIX
@ 2020-12-31 23:50 Hans-Peter Nilsson
  0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2020-12-31 23:50 UTC (permalink / raw)
  To: binutils

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

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


brgds, H-P

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-31 23:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-31 23:50 committed, gas: Change to "swym 0" as canonical nop insn for MMIX Hans-Peter Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).