x86: Add CpuCMOV and CpuFXSR
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 11 Aug 2018 21:37:14 +0000 (14:37 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 11 Aug 2018 21:37:32 +0000 (14:37 -0700)
commitd871f3f48388d57721d8077e281041ed16a745cf
tree31db918f0c563c84b09de4674bb4af3548b1483c
parentab9e342807d132182892de1be1a92d6e91a5c1da
x86: Add CpuCMOV and CpuFXSR

There are separate CPUID feature bits for fxsave/fxrstor and cmovCC
instructions.  This patch adds CpuCMOV and CpuFXSR to replace Cpu686
on corresponding instructions.

gas/

* config/tc-i386.c (cpu_arch): Add .cmov and .fxsr.
(cpu_noarch): Add nocmov and nofxsr.
* doc/c-i386.texi: Document cmov and fxsr.

opcodes/

* i386-gen.c (cpu_flag_init): Add CpuCMOV and CpuFXSR to
CPU_I686_FLAGS.  Add CPU_CMOV_FLAGS, CPU_FXSR_FLAGS,
CPU_ANY_CMOV_FLAGS and CPU_ANY_FXSR_FLAGS.
(cpu_flags): Add CpuCMOV and CpuFXSR.
* i386-opc.tbl: Replace Cpu686 with CpuFXSR on fxsave, fxsave64,
fxrstor and fxrstor64.  Replace Cpu686 with CpuCMOV on cmovCC.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
gas/ChangeLog
gas/config/tc-i386.c
gas/doc/c-i386.texi
opcodes/ChangeLog
opcodes/i386-gen.c
opcodes/i386-init.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h
This page took 0.027598 seconds and 4 git commands to generate.