Add support for monitorx/mwaitx instructions
authorAmit Pawar <Amit.Pawar@amd.com>
Tue, 30 Jun 2015 06:41:52 +0000 (12:11 +0530)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 30 Jun 2015 14:50:12 +0000 (07:50 -0700)
commit9916071f8df180400e39d1783d4a878cf57c61fe
tree852b09185d1208ac9f77d41e811300d55629fc0e
parent54f66250d79ec304ea427915bfd8b535ec249c3b
Add support for monitorx/mwaitx instructions

gas/

* config/tc-i386.c (cpu_arch): Add .mwaitx.
(process_immext): Check operands for monitorx/mwaitx instructions.
* doc/c-i386.texi: Document mwaitx.

gas/testsuite/

* gas/i386/i386.exp: Add new mwaitx test cases.
* gas/i386/mwaitx.s: New.
* gas/i386/mwaitx-bdver4.d: New.
* gas/i386/x86-64-mwaitx.s: New.
* gas/i386/x86-64-mwaitx-bdver4.d: New.
* gas/i386/mwaitx-reg.s: New.
* gas/i386/mwaitx-reg.l: New.
* gas/i386/x86-64-mwaitx-reg.l: New.
* gas/i386/x86-64-mwaitx-reg.s: New.
* gas/i386/arch-13.s: Updated.
* gas/i386/arch-13.d: Updated.
* gas/i386/arch-13-znver1.d: Updated.
* gas/i386/x86-64-arch-3.s: Updated.
* gas/i386/x86-64-arch-3.d: Updated.
* gas/i386/x86-64-arch-3-znver1.d: Updated.

opcodes/

* i386-dis.c (OP_Mwaitx): New.
(rm_table): Add monitorx/mwaitx.
* i386-gen.c (cpu_flag_init): Add CpuMWAITX to CPU_BDVER4_FLAGS
and CPU_ZNVER1_FLAGS.  Add CPU_MWAITX_FLAGS.
(operand_type_init): Add CpuMWAITX.
* i386-opc.h (CpuMWAITX): New.
(i386_cpu_flags): Add cpumwaitx.
* i386-opc.tbl: Add monitorx and mwaitx.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
26 files changed:
gas/ChangeLog
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/arch-13-znver1.d
gas/testsuite/gas/i386/arch-13.d
gas/testsuite/gas/i386/arch-13.s
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/mwaitx-bdver4.d [new file with mode: 0644]
gas/testsuite/gas/i386/mwaitx-reg.l [new file with mode: 0644]
gas/testsuite/gas/i386/mwaitx-reg.s [new file with mode: 0644]
gas/testsuite/gas/i386/mwaitx.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-arch-3-znver1.d
gas/testsuite/gas/i386/x86-64-arch-3.d
gas/testsuite/gas/i386/x86-64-arch-3.s
gas/testsuite/gas/i386/x86-64-mwaitx-bdver4.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-mwaitx-reg.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-mwaitx-reg.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-mwaitx.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/i386-dis.c
opcodes/i386-gen.c
opcodes/i386-init.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h