From 64d05a4334bd7624e8e0905465b53ed7f0144cb2 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Fri, 1 Jan 2021 00:47:36 +0100 Subject: [PATCH] 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". --- gas/ChangeLog | 4 ++++ gas/config/tc-mmix.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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" -- 2.30.2