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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils