From c5e7287a1a245a2043352e0db9c731fb7e31a90f Mon Sep 17 00:00:00 2001 From: Ilya Tocar Date: Mon, 17 Nov 2014 14:19:41 +0300 Subject: Add clwb instruction gas/ * config/tc-i386.c (cpu_arch): Add .clwb. * doc/c-i386.texi: Document it. opcodes/ * i386-dis.c (PREFIX enum): Add PREFIX_0FAE_REG_6. (prefix_table): Add clwb. * i386-gen.c (cpu_flag_init): Add CPU_CLWB_FLAGS. (cpu_flags): Add CpuCLWB. * i386-opc.h (enum): Add CpuCLWB. (i386_cpu_flags): Add cpuclwb. * i386-opc.tbl: Add clwb. * i386-init.h: Regenerated. * i386-tbl.h: Likewise. gas/testsuite/ * gas/i386/i386.exp: Run new tests. * gas/i386/clwb-intel.d: New file. * gas/i386/clwb.d: Likewise. * gas/i386/clwb.s: Likewise. * gas/i386/x86-64-clwb-intel.d: Likewise. * gas/i386/x86-64-clwb.d: Likewise. * gas/i386/x86-64-clwb.s: 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 8806142..f65f317 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -184,6 +184,8 @@ enum CpuPREFETCHWT1, /* SE1 instruction required */ CpuSE1, + /* CLWB instruction required */ + CpuCLWB, /* 64bit support required */ Cpu64, /* Not supported in the 64bit mode */ @@ -283,6 +285,7 @@ typedef union i386_cpu_flags unsigned int cpuxsavec:1; unsigned int cpuprefetchwt1:1; unsigned int cpuse1:1; + unsigned int cpuclwb:1; unsigned int cpu64:1; unsigned int cpuno64:1; #ifdef CpuUnused -- cgit v1.1