Enable Intel RDPID instruction.
authorAlexander Fomin <alexander.fomin@intel.com>
Tue, 10 May 2016 18:35:52 +0000 (21:35 +0300)
committerAlexander Fomin <alexander.fomin@intel.com>
Tue, 10 May 2016 18:38:39 +0000 (21:38 +0300)
commit8bc526963edde8cf8789ce82072d05fd2bcc90c4
tree25c9322e513f282eeb724e0213b10bb27e1fddad
parent4f4faa4d43aeaf5dd0a5fe0aff2fde89df3e5b8c
Enable Intel RDPID instruction.

This patch enables Intel RDPID instruction described in Intel64 and
IA-32 Architectures Software Developer's Manual, April 2016.

gas/

* config/tc-i386.c (cpu_arch): Add RDPID.
* doc/c-i386.texi: Document RDPID.

gas/testsuite/

* gas/i386/i386.exp: Run RDPID tests.
* gas/i386/prefix.d: Adjust.
* gas/i386/rdpid.s: New test.
* gas/i386/rdpid.d: Ditto.
* gas/i386/rdpid-intel.d: Ditto.
* gas/i386/x86-64-rdpid.s: Ditto.
* gas/i386/x86-64-rdpid.d: Ditto.
* gas/i386/x86-64-rdpid-intel.d: Ditto.

opcodes/

* i386-dis.c (prefix_table): Add RDPID instruction.
* i386-gen.c (cpu_flag_init): Add RDPID flag.
(cpu_flags): Add RDPID bitfield.
* i386-opc.h (enum): Add RDPID element.
(i386_cpu_flags): Add RDPID field.
* i386-opc.tbl: Add RDPID instruction.
* i386-init.h: Regenerate.
* i386-tbl.h: Regenerate.
19 files changed:
gas/ChangeLog
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/ChangeLog [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/prefix.d
gas/testsuite/gas/i386/rdpid-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/rdpid.d [new file with mode: 0644]
gas/testsuite/gas/i386/rdpid.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-rdpid-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-rdpid.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-rdpid.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