bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/6957] i386 NOPs must be derived from march not mtune


From: hjl dot tools at gmail dot com
Subject: [Bug gas/6957] i386 NOPs must be derived from march not mtune
Date: 12 Oct 2008 21:35:10 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2008-10-12 
21:35 -------
This testcase works for me:

address@hidden tmp]$ cat nops.s
        .text
nop:
        movsbl %al,%esi
        .p2align 4
address@hidden tmp]$ as --32 -o nops.o nops.s -march=i486 -mtune=i686
address@hidden tmp]$ objdump -dw nops.o

nops.o:     file format elf32-i386


Disassembly of section .text:

00000000 <nop>:
   0:   0f be f0                movsbl %al,%esi
   3:   8d b6 00 00 00 00       lea    0x0(%esi),%esi
   9:   8d bc 27 00 00 00 00    lea    0x0(%edi,%eiz,1),%edi
address@hidden tmp]$ as --32 -o nops.o nops.s -march=i686 -mtune=i686
address@hidden tmp]$ objdump -dw nops.o

nops.o:     file format elf32-i386


Disassembly of section .text:

00000000 <nop>:
   0:   0f be f0                movsbl %al,%esi
   3:   66 66 66 66 2e 0f 1f 84 00 00 00 00 00  nopw   %cs:0x0(%eax,%eax,1)
address@hidden tmp]$

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


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

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