Optimize REP prefix check
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 28 Feb 2013 20:50:19 +0000 (20:50 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 28 Feb 2013 20:50:19 +0000 (20:50 +0000)
commitd5de92cf93a7ab93344b88c6bb54d1ebeadaa900
treee1b47a8f29e24afc988c76b2cbcda6449cd17fc2
parentddb08e9caa02b478b6f4f3969cf5a7142fc0035e
Optimize REP prefix check

gas/

* config/tc-i386.c (_i386_insn): Add rep_prefix.
(md_assemble): Check if REP prefix is OK.
(parse_insn): Remove expecting_string_instruction.  Set
i.rep_prefix.

gas/testsuite/

* gas/i386/i386.exp: Run inval-rep and x86-64-inval-rep.

* gas/i386/inval-rep.l: New file.
* gas/i386/inval-rep.s: Likewise.
* gas/i386/x86-64-inval-rep.l: Likewise.
* gas/i386/x86-64-inval-rep.s: Likewise.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/inval-rep.l [new file with mode: 0644]
gas/testsuite/gas/i386/inval-rep.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-inval-rep.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-inval-rep.s [new file with mode: 0644]