bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/3134] New: objdump incompletely decodes mov disp:32 instru


From: markus+sw at gyger dot org
Subject: [Bug binutils/3134] New: objdump incompletely decodes mov disp:32 instruction
Date: 25 Aug 2006 17:13:04 -0000

objdump doesn't correctly disassemble the alternate coding of
MOV.L ERs, @(d:32, ERd)

>From the Notes of Table 2.2 in the 2.4 Instruction Code
section of the Renesas H8S/2600 Series Programming Manual
http://documentation.renesas.com/eng/products/mpumcu/rej09b0139_h8s2600.pdf

"2. Bit 7 of the 4th byte of the MOV.L ERs, @(d:32,ERd) instruction
can be either 1 or 0."

To reproduce:
h8300-elf-as mov.s
h8300-elf-objdump -wd a.out
[...]
   0:   01 00 78 80 6b a0 00 00 00 00   mov.l   er0,@(0x0:32,er0)
   a:   01 00 78 80 6b a0 00 00 00 00   mov.l   er0,@(0x0:32,er0)
  14:   01 00                           .word   H'1,H'0
  16:   78 00 6b a0 00 00 00 00         mov.w   r0,@(0x0:32,er0)

Content of mov.s:
.h8300s
mov er0, @(0:32,er0)
.byte 1, 0, 0x78, 0x80, 0x6b, 0xa0, 0, 0, 0, 0
.byte 1, 0, 0x78, 0x00, 0x6b, 0xa0, 0, 0, 0, 0

-- 
           Summary: objdump incompletely decodes mov disp:32 instruction
           Product: binutils
           Version: 2.17
            Status: NEW
          Severity: minor
          Priority: P3
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: markus+sw at gyger dot org
                CC: bug-binutils at gnu dot org
 GCC build triplet: i386-pc-solaris2.10
  GCC host triplet: i386-pc-solaris2.10
GCC target triplet: h8300-elf


http://sourceware.org/bugzilla/show_bug.cgi?id=3134

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]