This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] x86: Add .nop directive to assembler


On Mon, Feb 26, 2018 at 11:17 AM, John Darrington
<john@darrington.wattle.id.au> wrote:
> On Mon, Feb 26, 2018 at 11:03:12AM -0800, H.J. Lu wrote:
>      On Mon, Feb 26, 2018 at 11:00 AM, John Darrington
>      <john@darrington.wattle.id.au> wrote:
>      > I haven't read every post in this thread, nor do I pretend to understand all the
>      > issues.
>      >
>      > But it this change seems to have the effect that any instruction called "NOP"
>      > in the .s file are completely ignored :(
>      >
>      > Many cpus have  a NOP instruction. It's often used in realtime systems to
>      > implement short delays.
>
>      Which target have you tried?
>
>
> hcs12z
>

I got

[hjl@gnu-cfl-1 gas]$ cat x.s
nop
[hjl@gnu-cfl-1 gas]$ ./as-new -o x.o x.s -m68hcs12
[hjl@gnu-cfl-1 gas]$ ../binutils/objdump -dw x.o

x.o:     file format elf32-m68hc12


Disassembly of section .text:

00000000 <.text>:
   0: a7          nop
[hjl@gnu-cfl-1 gas]$

Am I missing something?

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]