MIPS/gas: SAA/SAAD macro clean-ups
authorMaciej W. Rozycki <macro@codesourcery.com>
Tue, 26 Aug 2014 12:18:30 +0000 (13:18 +0100)
committerMaciej W. Rozycki <macro@codesourcery.com>
Tue, 26 Aug 2014 12:18:30 +0000 (13:18 +0100)
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.

gas/ChangeLog
gas/config/tc-mips.c

index 6248909..5d08734 100644 (file)
@@ -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.
index 03f2b13..59d8635 100644 (file)
@@ -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;