* ia64-dis.c (print_insn_ia64): Get byte skip count correct
authorRichard Henderson <rth@redhat.com>
Mon, 7 Aug 2000 21:44:26 +0000 (21:44 +0000)
committerRichard Henderson <rth@redhat.com>
Mon, 7 Aug 2000 21:44:26 +0000 (21:44 +0000)
        for MLI templates.  Handle IA64_OPND_TGT64.

opcodes/ChangeLog
opcodes/ia64-dis.c

index 04440c283c94b991f4e90b7508edb7cd61663f9a..21402f66b2edacd5091cca6b9210195181c0753d 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-07  Richard Henderson  <rth@cygnus.com>
+
+       * ia64-dis.c (print_insn_ia64): Get byte skip count correct
+       for MLI templates.  Handle IA64_OPND_TGT64.
+
 2000-07-29  Marek Michalkiewicz  <marekm@linux.org.pl>
 
        * avr-dis.c (avr_operand): Use PARAMS macro in declaration.
index d4ea62b505dfff86bc4dbbd622ad957e6aa4e0e8..629a76820d3780304ac68c917991422d210eac1e 100644 (file)
@@ -117,7 +117,7 @@ print_insn_ia64 (bfd_vma memaddr, struct disassemble_info *info)
     {
       /* skip L slot in MLI template: */
       slotnum = 2;
-      retval += slot_multiplier;
+      retval = 16 - slot_multiplier;
     }
 
   insn = slot[slotnum];
@@ -165,6 +165,13 @@ print_insn_ia64 (bfd_vma memaddr, struct disassemble_info *info)
             | (((insn >> 36) & 0x1) << 20)
             | ((insn >> 6) & 0xfffff);
         }
+      else if (odesc - elf64_ia64_operands == IA64_OPND_TGT64)
+       {
+         /* 60-bit immedate for long branches.  */
+         value = (((insn >> 13) & 0xfffff)
+                  | (((insn >> 36) & 1) << 59)
+                  | (slot[1] << 20)) << 4;
+       }
       else
        {
          err = (*odesc->extract) (odesc, insn, &value);
This page took 0.044408 seconds and 4 git commands to generate.