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

H.J. Lu hjl.tools@gmail.com
Fri Jun 22 16:46:00 GMT 2012
On Fri, Jun 22, 2012 at 9:43 AM, Roland McGrath <mcgrathr@google.com> wrote:
> Here is what I've committed.
>
>
> Thanks,
> Roland
>
>
> gas/
> 2012-06-22  Roland McGrath  <mcgrathr@google.com>
>
>        * 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@google.com>
>
>        * 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@google.com>
>
>        * 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.



More information about the Binutils mailing list