[PATCH] x86 gas: allow 'rep nop'

H.J. Lu hjl.tools@gmail.com
Mon Jul 2 17:10:00 GMT 2012


On Mon, Jul 2, 2012 at 9:39 AM, Roland McGrath <mcgrathr@google.com> wrote:
> There is another 'rep;INSN' form that GCC likes to emit, this one
> 'rep;nop' as an alias for 'pause'.  It's nicer to accept 'rep nop'
> for this one too.
>
> Ok for trunk?
>
>
> Thanks,
> Roland
>
>
> gas/testsuite/
> 2012-07-02  Roland McGrath  <mcgrathr@google.com>
>
>         * gas/i386/rep-nop.d: New file.
>         * gas/i386/rep-nop.s: New file.
>         * gas/i386/i386.exp: Add the new test.
>
> opcodes/
> 2012-07-02  Roland McGrath  <mcgrathr@google.com>
>
>         * i386-opc.tbl: Add RepPrefixOk to nop.
>

I checked in a patch:

http://sourceware.org/ml/binutils/2012-07/msg00019.html

to move rep tests for bsf/bsr/ret to rep-suffix.  Please add the
rep nop test to both rep-suffix.s and x86-64-rep-suffix.s.  OK
with this change.

Thanks.

-- 
H.J.



More information about the Binutils mailing list