diff options
author | Ilya Tocar <ilya.tocar@intel.com> | 2014-11-17 14:19:41 +0300 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-11-17 05:56:37 -0800 |
commit | c5e7287a1a245a2043352e0db9c731fb7e31a90f (patch) | |
tree | 39d2c835943b95a01a9cb552d993ace4554091dc /opcodes/i386-dis.c | |
parent | a267f3ad3f8c3f76f46ed006ac11a88426414339 (diff) | |
download | fsf-binutils-gdb-c5e7287a1a245a2043352e0db9c731fb7e31a90f.zip fsf-binutils-gdb-c5e7287a1a245a2043352e0db9c731fb7e31a90f.tar.gz fsf-binutils-gdb-c5e7287a1a245a2043352e0db9c731fb7e31a90f.tar.bz2 |
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.
Diffstat (limited to 'opcodes/i386-dis.c')
-rw-r--r-- | opcodes/i386-dis.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index c7cfb55..ed710a5 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -899,6 +899,7 @@ enum PREFIX_0FAE_REG_1, PREFIX_0FAE_REG_2, PREFIX_0FAE_REG_3, + PREFIX_0FAE_REG_6, PREFIX_0FAE_REG_7, PREFIX_0FB8, PREFIX_0FBC, @@ -3982,6 +3983,13 @@ static const struct dis386 prefix_table[][4] = { { "wrgsbase", { Ev } }, }, + /* PREFIX_0FAE_REG_6 */ + { + { "xsaveopt", { FXSAVE } }, + { Bad_Opcode }, + { "clwb", { Mb } }, + }, + /* PREFIX_0FAE_REG_7 */ { { "clflush", { Mb } }, @@ -11749,7 +11757,7 @@ static const struct dis386 mod_table[][2] = { }, { /* MOD_0FAE_REG_6 */ - { "xsaveopt", { FXSAVE } }, + { PREFIX_TABLE (PREFIX_0FAE_REG_6) }, { RM_TABLE (RM_0FAE_REG_6) }, }, { |