x86: Check pseudo prefix without instruction
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 17 Dec 2017 17:40:54 +0000 (09:40 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 17 Dec 2017 17:49:11 +0000 (09:49 -0800)
commit390c91cfcffe1a0d75b6100d1542cda2544993b3
treed8ec475bc43d85d12726ba994953b79aa0097155
parentfd7055f4a7f8eef9dc926fae698ad297279726bb
x86: Check pseudo prefix without instruction

Pseudo prefixes must be used on an instruction.  Issue an error when
pseudo prefix is used without instruction.

PR gas/22623
* gas/config/tc-i386.c (output_insn): Check pseudo prefix
without instruction.
* testsuite/gas/i386/i386.exp: Run inval-pseudo.
* testsuite/gas/i386/inval-pseudo.l: New file.
* testsuite/gas/i386/inval-pseudo.s: Likewise.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/inval-pseudo.l [new file with mode: 0644]
gas/testsuite/gas/i386/inval-pseudo.s [new file with mode: 0644]