2003-06-27 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 23 Jul 2003 21:14:54 +0000 (21:14 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 23 Jul 2003 21:14:54 +0000 (21:14 +0000)
        * gencode.c (gensim_caselist): The movy instructions use
        registers R6 and R7 (not R4 and R5 like the movx insns).

sim/sh/ChangeLog
sim/sh/gencode.c

index d069a81..0cd05f5 100644 (file)
@@ -4,6 +4,11 @@
 
 2003-06-27  Michael Snyder  <msnyder@redhat.com>
 
+       * gencode.c (gensim_caselist): The movy instructions use
+       registers R6 and R7 (not R4 and R5 like the movx insns).
+
+2003-06-27  Michael Snyder  <msnyder@redhat.com>
+
        * gencode.c (op movsxy_tab): Fix up some copy/paste errors
        in name: s/REG_x/REG_y/.
 
index a0f8b59..e5dee8f 100644 (file)
@@ -2159,7 +2159,7 @@ gensim_caselist (p)
              s += 2;
              break;
            case 'y':
-             printf ("      int n = ((iword >> 8) & 1) + 4;\n");
+             printf ("      int n = ((iword >> 8) & 1) + 6;\n");
              needn = 1;
              s += 2;
              break;