This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, moxie] Assemble 'bad' instruction


I have committed the following patch, which allows us to assemble the
'bad' (illegal) instruction.

2016-11-13  Anthony Green  <green@moxielogic.org>

    * config/tc-moxie.c (md_assemble): Assemble 'bad' opcode.


diff --git a/gas/config/tc-moxie.c b/gas/config/tc-moxie.c
index 7e6a8cf..80de828 100644
--- a/gas/config/tc-moxie.c
+++ b/gas/config/tc-moxie.c
@@ -535,6 +535,13 @@ md_assemble (char *str)
              BFD_RELOC_MOXIE_10_PCREL);
       }
       break;
+    case MOXIE_BAD:
+      iword = 0;
+      while (ISSPACE (*op_end))
+    op_end++;
+      if (*op_end != 0)
+    as_warn (_("extra stuff on line ignored"));
+      break;
     default:
       abort ();
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]