« Return to Thread: [PATCH]: x86 gas: allow 'rep' prefix on 'bsf' and 'bsr' instructions

Re: [PATCH]: x86 gas: allow 'rep' prefix on 'bsf' and 'bsr' instructions

by H.J. Lu-30 :: Rate this Message:

| View in Thread

On Fri, Jun 22, 2012 at 9:43 AM, Roland McGrath <mcgrathr@...> wrote:

> Here is what I've committed.
>
>
> Thanks,
> Roland
>
>
> gas/
> 2012-06-22  Roland McGrath  <mcgrathr@...>
>
>        * config/tc-i386.c (parse_insn): Don't complain about REP prefix
>        when the template has opcode_modifier.repprefixok set.
>        * NEWS: Mention the change.
>
> gas/testsuite/
> 2012-06-22  Roland McGrath  <mcgrathr@...>
>
>        * gas/i386/rep-bsf.d: New file.
>        * gas/i386/rep-bsf.s: New file.
>        * gas/i386/i386.exp: Add the new test.
>
> opcodes/
> 2012-06-22  Roland McGrath  <mcgrathr@...>
>
>        * i386-opc.h (RepPrefixOk): New enum constant.
>        (i386_opcode_modifier): New bitfield 'repprefixok'.
>        * i386-gen.c (opcode_modifiers): Add RepPrefixOk.
>        * i386-opc.tbl: Add RepPrefixOk to bsf, bsr, and to all
>        instructions that have IsString.
>        * i386-tbl.h: Regenerate.
>

Perfect.   Thanks.

--
H.J.

 « Return to Thread: [PATCH]: x86 gas: allow 'rep' prefix on 'bsf' and 'bsr' instructions