aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@codesourcery.com>2014-08-26 13:18:30 +0100
committerMaciej W. Rozycki <macro@codesourcery.com>2014-08-26 13:18:30 +0100
commit0db377d09c19fc0f9267ead1f75998b9f1eb38d1 (patch)
treef3fc258d89561e42a3251ab2d318e59d1d448c34
parent114dba3bbac4f54597734635c957979529177c71 (diff)
downloadgdb-0db377d09c19fc0f9267ead1f75998b9f1eb38d1.zip
gdb-0db377d09c19fc0f9267ead1f75998b9f1eb38d1.tar.gz
gdb-0db377d09c19fc0f9267ead1f75998b9f1eb38d1.tar.bz2
MIPS/gas: SAA/SAAD macro clean-ups
This change removes code duplication for the SAA macro in line with other such macros and also adds a !microMIPS internal consistency guard as there's no microMIPS encoding of the underlying SAA/SAAD instructions. * config/tc-mips.c (macro) <M_SAA_AB>: Remove duplicate code and jump to... <M_SAAD_AB>: ... here. Assert that !microMIPS.
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-mips.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 6248909..5d08734 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2014-08-26 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * config/tc-mips.c (macro) <M_SAA_AB>: Remove duplicate code and
+ jump to...
+ <M_SAAD_AB>: ... here. Assert that !microMIPS.
+
2014-08-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* config/tc-moxie.h (md_convert_frag): Silence warning.
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 03f2b13..59d8635 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -12206,11 +12206,11 @@ macro (struct mips_cl_insn *ip, char *str)
case M_SAA_AB:
s = "saa";
- offbits = 0;
- fmt = "t,(b)";
- goto ld_st;
+ goto saa_saad;
case M_SAAD_AB:
s = "saad";
+ saa_saad:
+ gas_assert (!mips_opts.micromips);
offbits = 0;
fmt = "t,(b)";
goto ld_st;