bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/10964] New: objdump disassembles "lpm rX, Z" wrongly


From: elrond+sourceware dot org at samba-tng dot org
Subject: [Bug binutils/10964] New: objdump disassembles "lpm rX, Z" wrongly
Date: 15 Nov 2009 17:16:26 -0000

objdump disassemble "lpm rX, Z" as "lpm rX, Z+".

  avr% cat bug-lpm.c
  void try_asm(void) {
        __asm__ __volatile__(
        "lpm r18, Z+\n\t"
        "lpm r18, Z\n\t"
        ::);
  }
  avr% avr-gcc -Wall -mmcu=atmega8515 -O3 -Os -c bug-lpm.c
  avr% avr-objdump -d bug-lpm.o
  bug-lpm.o:     file format elf32-avr
  Disassembly of section .text:
  00000000 <try_asm>:
   0:   25 91           lpm     r18, Z+
   2:   24 91           lpm     r18, Z+
   4:   08 95           ret

Note the different opcodes (25 91 and 24 91).

Please fix the disassembly.

-- 
           Summary: objdump disassembles "lpm rX, Z" wrongly
           Product: binutils
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: elrond+sourceware dot org at samba-tng dot org
                CC: bug-binutils at gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: avr-*-*


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

------- 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]