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] Add fido support (Part 5/n)


Hi,

Attached is the fifth in a series of patches to add fido support to
binutils.

This patch adds a warning for tbl instructions as they are not
supported on fido.

Tested by building binutils.  OK to apply?

Kazu Hirata

gas/
2006-12-25  Kazu Hirata  <kazu@codesourcery.com>

	* config/tc-m68k.c (m68k_ip): Do something.

Index: gas/config/tc-m68k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m68k.c,v
retrieving revision 1.80
diff -u -d -p -r1.80 tc-m68k.c
--- gas/config/tc-m68k.c	25 Dec 2006 22:39:21 -0000	1.80
+++ gas/config/tc-m68k.c	25 Dec 2006 22:40:19 -0000
@@ -1134,6 +1134,21 @@ m68k_ip (char *instring)
   opcode = (const struct m68k_incant *) hash_find (op_hash, instring);
   *p = c;
 
+  /* Fido does not support certain instructions.  Warn about uses
+     of those instructions.  */
+  if ((cpu_of_arch (current_architecture) & fido_a) != 0)
+    {
+      /* Recognize tbl[su]{n,}[bwl].  */
+      if (strncmp (instring, "tbl", 3) == 0
+	  && (instring[3] == 's' || instring[3] == 'u')
+	  && ((strchr ("bwl", instring[4]) != 0
+	       && instring[5] == '\0')
+	      || (instring[4] == 'n'
+		  && strchr ("bwl", instring[5]) != 0
+		  && instring[6] == '\0')))
+	as_warn (_("'%s' not supported on Fido"), instring);
+    }
+
   if (pdot != NULL)
     {
       for (pdotmove = p; pdotmove > pdot; pdotmove--)


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