From 68830fbae98867f63720d250a18ce64f9f2f51fc Mon Sep 17 00:00:00 2001 From: "Cui,Lili" Date: Fri, 21 Oct 2022 10:01:12 +0800 Subject: Support Intel AMX-FP16 gas/ * NEWS: Add support for Intel AMX-FP16 instruction. * config/tc-i386.c: Add amx_fp16. * doc/c-i386.texi: Document .amx_fp16. * testsuite/gas/i386/i386.exp: Add AMX-FP16 tests. * testsuite/gas/i386/x86-64-amx-fp16-intel.d: New test. * testsuite/gas/i386/x86-64-amx-fp16.d: Likewise. * testsuite/gas/i386/x86-64-amx-fp16.s: Likewise. * testsuite/gas/i386/x86-64-amx-fp16-bad.d: Likewise. * testsuite/gas/i386/x86-64-amx-fp16-bad.s: Likewise. opcodes/ * i386-dis.c (MOD_VEX_0F385C_X86_64_P_3_W_0): New. (VEX_LEN_0F385C_X86_64_P_3_W_0_M_0): Likewise. (VEX_W_0F385C_X86_64_P_3): Likewise. (prefix_table): Add VEX_W_0F385C_X86_64_P_3. (vex_len_table): Add VEX_LEN_0F385C_X86_64_P_3_W_0_M_0. (vex_w_table): Add VEX_W_0F385C_X86_64_P_3. (mod_table): Add MOD_VEX_0F385C_X86_64_P_3_W_0. * i386-gen.c (cpu_flag_init): Add AMX-FP16_FLAGS. (CPU_ANY_AMX_TILE_FLAGS): Add CpuAMX_FP16. (cpu_flags): Add CpuAMX-FP16. * i386-opc.h (enum): Add CpuAMX-FP16. (i386_cpu_flags): Add cpuamx_fp16. * i386-opc.tbl: Add Intel AMX-FP16 instruction. * i386-init.h: Regenerate. * i386-tbl.h: Likewise. --- opcodes/i386-opc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'opcodes/i386-opc.h') diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index 11c8a0219f4..bc9ed61947e 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -226,6 +226,8 @@ enum CpuAMX_INT8, /* AMX-BF16 instructions required */ CpuAMX_BF16, + /* AMX-FP16 instructions required */ + CpuAMX_FP16, /* AMX-TILE instructions required */ CpuAMX_TILE, /* GFNI instructions required */ @@ -397,6 +399,7 @@ typedef union i386_cpu_flags unsigned int cpushstk:1; unsigned int cpuamx_int8:1; unsigned int cpuamx_bf16:1; + unsigned int cpuamx_fp16:1; unsigned int cpuamx_tile:1; unsigned int cpugfni:1; unsigned int cpuvaes:1; -- cgit v1.2.1