From 2cc1b5aad8defa9b5e6d9b4920c4d2ab6cf1f02e Mon Sep 17 00:00:00 2001 From: Ilya Tocar Date: Mon, 17 Nov 2014 14:57:33 +0300 Subject: Add AVX512IFMA instructions gas/ * config/tc-i386.c (cpu_arch): Add .avx512ifma. * doc/c-i386.texi: Document it. opcodes/ * i386-dis-evex.c (evex_table): Add vpmadd52luq, vpmadd52huq. * i386-dis.c (PREFIX enum): Add PREFIX_EVEX_0F38B4, PREFIX_EVEX_0F38B5. * i386-gen.c (cpu_flag_init): Add CPU_AVX512IFMA_FLAGS. (cpu_flags): Add CpuAVX512IFMA. * i386-opc.h (enum): Add CpuAVX512IFMA. (i386_cpu_flags): Add cpuavx512ifma. * i386-opc.tbl: Add vpmadd52huq, vpmadd52luq. * i386-init.h: Regenerated. * i386-tbl.h: Likewise. /gas/testsuite/ * gas/i386/i386.exp: Run new tests. * gas/i386/avx512ifma-intel.d: New file. * gas/i386/avx512ifma.d: Likewise. * gas/i386/avx512ifma.s: Likewise. * gas/i386/avx512ifma_vl-intel.d: Likewise. * gas/i386/avx512ifma_vl.d: Likewise. * gas/i386/avx512ifma_vl.s: Likewise. * gas/i386/x86-64-avx512ifma-intel.d: Likewise. * gas/i386/x86-64-avx512ifma.d: Likewise. * gas/i386/x86-64-avx512ifma.s: Likewise. * gas/i386/x86-64-avx512ifma_vl-intel.d: Likewise. * gas/i386/x86-64-avx512ifma_vl.d: Likewise. * gas/i386/x86-64-avx512ifma_vl.s: Likewise. --- opcodes/i386-gen.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'opcodes/i386-gen.c') diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index b56ffdf..e11342c 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -241,6 +241,8 @@ static initializer cpu_flag_init[] = "CpuCLWB" }, { "CPU_PCOMMIT_FLAGS", "CpuPCOMMIT" }, + { "CPU_AVX512IFMA_FLAGS", + "CpuMMX|CpuSSE|CpuSSE2|CpuSSE3|CpuSSSE3|CpuSSE4_1|CpuSSE4_2|CpuAVX|CpuAVX2|CpuAVX512F|CpuAVX512IFMA" }, }; static initializer operand_type_init[] = @@ -442,6 +444,7 @@ static bitfield cpu_flags[] = BITFIELD (Cpu64), BITFIELD (CpuNo64), BITFIELD (CpuMPX), + BITFIELD (CpuAVX512IFMA), #ifdef CpuUnused BITFIELD (CpuUnused), #endif -- cgit v1.1