Enable Intel AVX512_BITALG instructions.
authorIgor Tsimbalist <igor.v.tsimbalist@intel.com>
Fri, 20 Oct 2017 20:56:30 +0000 (23:56 +0300)
committerIgor Tsimbalist <igor.v.tsimbalist@intel.com>
Mon, 23 Oct 2017 12:58:18 +0000 (15:58 +0300)
commitee6872beb1912af41a506c8aea34af7d2f873d04
tree608938241e7f350c09c13fcee234f5c89aebf687
parent8cfcb7659cb844dff00efbbb644c15b650fb7e8b
Enable Intel AVX512_BITALG instructions.

Intel has disclosed a set of new instructions. The spec is
https://software.intel.com/sites/default/files/managed/c5/15/architecture-instruction-set-extensions-programming-reference.pdf

gas/

* config/tc-i386.c (cpu_arch): Add .avx512_bitalg.
(cpu_noarch): noavx512_bitalg.
* doc/c-i386.texi: Document .avx512_bitalg, noavx512_bitalg.
* testsuite/gas/i386/i386.exp: Add AVX512_BITALG tests.
* testsuite/gas/i386/avx512f_bitalg-intel.d: New test.
* testsuite/gas/i386/avx512f_bitalg.d: Likewise.
* testsuite/gas/i386/avx512f_bitalg.s: Likewise.
* testsuite/gas/i386/avx512vl_bitalg-intel.d: Likewise.
* testsuite/gas/i386/avx512vl_bitalg.d: Likewise.
* testsuite/gas/i386/avx512vl_bitalg.s: Likewise.
* testsuite/gas/i386/x86-64-avx512f_bitalg-intel.d: Likewise.
* testsuite/gas/i386/x86-64-avx512f_bitalg.d: Likewise.
* testsuite/gas/i386/x86-64-avx512f_bitalg.s: Likewise.
* testsuite/gas/i386/x86-64-avx512vl_bitalg-intel.d: Likewise.
* testsuite/gas/i386/x86-64-avx512vl_bitalg.d: Likewise.
* testsuite/gas/i386/x86-64-avx512vl_bitalg.s: Likewise.

opcodes/

* i386-dis.c (enum): Add PREFIX_EVEX_0F3854, PREFIX_EVEX_0F388F.
(enum): Add EVEX_W_0F3854_P_2.
* i386-dis-evex.h (evex_table): Updated.
* i386-gen.c (cpu_flag_init): Add CPU_AVX512_BITALG,
CPU_ANY_AVX512_BITALG_FLAGS. Update CPU_ANY_AVX512F_FLAGS.
(cpu_flags): Add CpuAVX512_BITALG.
* i386-opc.h (enum): Add CpuAVX512_BITALG.
(i386_cpu_flags): Add cpuavx512_bitalg..
* i386-opc.tbl: Add Intel AVX512_BITALG instructions.
* i386-init.h: Regenerate.
* i386-tbl.h: Likewise.
20 files changed:
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/gas/i386/avx512bitalg-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/avx512bitalg.d [new file with mode: 0644]
gas/testsuite/gas/i386/avx512bitalg.s [new file with mode: 0644]
gas/testsuite/gas/i386/avx512bitalg_vl-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/avx512bitalg_vl.d [new file with mode: 0644]
gas/testsuite/gas/i386/avx512bitalg_vl.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/x86-64-avx512bitalg-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-avx512bitalg.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-avx512bitalg.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-avx512bitalg_vl-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-avx512bitalg_vl.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-avx512bitalg_vl.s [new file with mode: 0644]
opcodes/i386-dis-evex.h
opcodes/i386-dis.c
opcodes/i386-gen.c
opcodes/i386-opc.h
opcodes/i386-opc.tbl