* gencode.c (build_instruction): Handle "pext5" according to
authorJeff Law <law@redhat.com>
Wed, 2 Jul 1997 18:41:22 +0000 (18:41 +0000)
committerJeff Law <law@redhat.com>
Wed, 2 Jul 1997 18:41:22 +0000 (18:41 +0000)
        version 1.95 of the r5900 ISA.
Fixes pr12413 (c/h from toshiba).

sim/mips/ChangeLog
sim/mips/gencode.c

index 27a0027..c654013 100644 (file)
@@ -1,6 +1,9 @@
 Wed Jul  2 11:54:10 1997  Jeffrey A Law  (law@cygnus.com)
 
 start-sanitize-r5900
+       * gencode.c (build_instruction): Handle "pext5" according to
+       version 1.95 of the r5900 ISA.
+
        * gencode.c (build_instruction): Handle "ppac5" according to
        version 1.95 of the r5900 ISA.
 end-sanitize-r5900
index fbe9c52..ceb471d 100644 (file)
@@ -3982,7 +3982,7 @@ build_instruction (doisa, features, mips16, insn)
       printf("for(i=0;i<WORDS_IN_MMI_REGS;i++)\n");
       printf("  {\n");
       printf("  int x = RT_UW(i);\n");
-      printf("  GPR_UW(destreg,i) = ((x & (1  << 15)) << (24 - 15))  \n");
+      printf("  GPR_UW(destreg,i) = ((x & (1  << 15)) << (31 - 15))  \n");
       printf("                    | ((x & (31 << 10)) << (19 - 10))  \n");
       printf("                    | ((x & (31 << 5))  << (11 - 5))   \n");
       printf("                    | ((x & (31 << 0))  << (3  - 0));  \n");