Support AVX Programming Reference (June, 2010)
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 1 Jul 2010 21:55:02 +0000 (21:55 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 1 Jul 2010 21:55:02 +0000 (21:55 +0000)
commitc7b8aa3a72401a50a5736ed70ad8be809f82321c
treefa5c00a2fd93fdf002378367c943893fc8b5b898
parentd41c0fc8a94bc29f0490c841c2823657ad71a279
Support AVX Programming Reference (June, 2010)

gas/

2010-07-01  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (June, 2010)
* config/tc-i386.c (cpu_arch): Add .xsaveopt, .fsgsbase, .rdrnd
and .f16c.

* doc/c-i386.texi: Document xsaveopt, fsgsbase, rdrnd and f16c.

gas/testsuite/

2010-07-01  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (June, 2010)
* gas/i386/arch-10.s: Add xsaveopt.
* gas/i386/x86-64-arch-2.s: Likwise.

* gas/i386/arch-10.d: Updated.
* gas/i386/arch-10-1.l: Likewise.
* gas/i386/arch-10-2.l: Likewise.
* gas/i386/arch-10-3.l: Likewise.
* gas/i386/arch-10-4.l: Likewise.
* gas/i386/x86-64-arch-2.d: Likewise.

* gas/i386/f16c-intel.d: New.
* gas/i386/f16c.d: Likewise.
* gas/i386/f16c.s: Likewise.
* gas/i386/fsgs-intel.d: Likewise.
* gas/i386/fsgs.d: Likewise.
* gas/i386/fsgs.s: Likewise.
* gas/i386/rdrnd-intel.d: Likewise.
* gas/i386/rdrnd.d: Likewise.
* gas/i386/rdrnd.s: Likewise.
* gas/i386/x86-64-f16c-intel.d: Likewise.
* gas/i386/x86-64-f16c.d: Likewise.
* gas/i386/x86-64-f16c.s: Likewise.
* gas/i386/x86-64-fsgs-intel.d: Likewise.
* gas/i386/x86-64-fsgs.d: Likewise.
* gas/i386/x86-64-fsgs.s: Likewise.
* gas/i386/x86-64-rdrnd-intel.d: Likewise.
* gas/i386/x86-64-rdrnd.d: Likewise.
* gas/i386/x86-64-rdrnd.s: Likewise.

* gas/i386/i386.exp: Run f16c, f16c-intel, fsgs, fsgs-intel,
rdrnd, rdrnd-intel, x86-64-f16c, x86-64-f16c-intel, x86-64-fsgs,
x86-64-fsgs-intel, x86-64-rdrnd, x86-64-rdrnd-intel.

* gas/i386/x86-64-xsave.s: Add tests for xsaveopt64.

* gas/i386/x86-64-xsave-intel.d: Updated.
* gas/i386/x86-64-xsave.d: Likewise.

opcodes/

2010-07-01  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (June, 2010)
* i386-dis.c (PREFIX_0FAE_REG_0): New.
(PREFIX_0FAE_REG_1): Likewise.
(PREFIX_0FAE_REG_2): Likewise.
(PREFIX_0FAE_REG_3): Likewise.
(PREFIX_VEX_3813): Likewise.
(PREFIX_VEX_3A1D): Likewise.
(prefix_table): Add PREFIX_0FAE_REG_0, PREFIX_0FAE_REG_1,
PREFIX_0FAE_REG_2, PREFIX_0FAE_REG_3, PREFIX_VEX_3813 and
PREFIX_VEX_3A1D.
(vex_table): Add PREFIX_VEX_3813 and PREFIX_VEX_3A1D.
(mod_table): Add PREFIX_0FAE_REG_0, PREFIX_0FAE_REG_1,
PREFIX_0FAE_REG_2, PREFIX_0FAE_REG_3 xsaveopt and rdrnd.

* i386-gen.c (cpu_flag_init): Add CPU_XSAVEOPT_FLAGS,
CPU_FSGSBASE_FLAGS, CPU_RDRND_FLAGS and CPU_F16C_FLAGS.
(cpu_flags): Add CpuXsaveopt, CpuFSGSBase, CpuRdRnd and CpuF16C.

* i386-opc.h (CpuXsaveopt): New.
(CpuFSGSBase):Likewise.
(CpuRdRnd): Likewise.
(CpuF16C): Likewise.
(i386_cpu_flags): Add cpuxsaveopt, cpufsgsbase, cpurdrnd and
cpuf16c.

* i386-opc.tbl: Add xsaveopt, rdfsbase, rdgsbase, rdrnd,
wrfsbase, wrgsbase, vcvtph2ps and vcvtps2ph.
44 files changed:
gas/ChangeLog
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/arch-10-1.l
gas/testsuite/gas/i386/arch-10-2.l
gas/testsuite/gas/i386/arch-10-3.l
gas/testsuite/gas/i386/arch-10-4.l
gas/testsuite/gas/i386/arch-10.d
gas/testsuite/gas/i386/arch-10.s
gas/testsuite/gas/i386/f16c-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/f16c.d [new file with mode: 0644]
gas/testsuite/gas/i386/f16c.s [new file with mode: 0644]
gas/testsuite/gas/i386/fsgs-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/fsgs.d [new file with mode: 0644]
gas/testsuite/gas/i386/fsgs.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/rdrnd-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/rdrnd.d [new file with mode: 0644]
gas/testsuite/gas/i386/rdrnd.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-arch-2.d
gas/testsuite/gas/i386/x86-64-arch-2.s
gas/testsuite/gas/i386/x86-64-f16c-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-f16c.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-f16c.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-fsgs-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-fsgs.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-fsgs.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-rdrnd-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-rdrnd.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-rdrnd.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-xsave-intel.d
gas/testsuite/gas/i386/x86-64-xsave.d
gas/testsuite/gas/i386/x86-64-xsave.s
gas/testsuite/gas/i386/xsave-intel.d
gas/testsuite/gas/i386/xsave.d
gas/testsuite/gas/i386/xsave.s
opcodes/ChangeLog
opcodes/i386-dis.c
opcodes/i386-gen.c
opcodes/i386-init.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h