aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@bitrange.com>2021-01-01 00:47:36 +0100
committerHans-Peter Nilsson <hp@bitrange.com>2021-01-01 00:47:36 +0100
commit64d05a4334bd7624e8e0905465b53ed7f0144cb2 (patch)
tree84d09ef981bb351f8ed100343712dc78eb45b3d6
parent9b243007ba0701c7ae07dc11d0f4a0c81b1bc49f (diff)
downloadgdb-64d05a4334bd7624e8e0905465b53ed7f0144cb2.zip
gdb-64d05a4334bd7624e8e0905465b53ed7f0144cb2.tar.gz
gdb-64d05a4334bd7624e8e0905465b53ed7f0144cb2.tar.bz2
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".
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-mmix.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 8cdf93b..b5a352f 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
diff --git a/gas/config/tc-mmix.h b/gas/config/tc-mmix.h
index 2d8e226..bd597db 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"