diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-10-21 12:16:32 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-10-21 12:16:32 -0700 |
commit | b5cefccad8bdeecaa3d0c548e32881466e021cb4 (patch) | |
tree | 6681b0abb5d11c513ccf7e4f952fcb0702f46f9f /gas | |
parent | ac423761af22f7858a1413cda5df3e1d5e88d4e4 (diff) | |
download | fsf-binutils-gdb-b5cefccad8bdeecaa3d0c548e32881466e021cb4.zip fsf-binutils-gdb-b5cefccad8bdeecaa3d0c548e32881466e021cb4.tar.gz fsf-binutils-gdb-b5cefccad8bdeecaa3d0c548e32881466e021cb4.tar.bz2 |
X86: Remove pcommit instruction
Remove x86 pcommit instruction support, which has been deprecated:
https://software.intel.com/en-us/blogs/2016/09/12/deprecate-pcommit-instruction
gas/
* config/tc-i386.c (cpu_arch): Remove .pcommit.
* doc/c-i386.texi: Likewise.
* testsuite/gas/i386/i386.exp: Remove pcommit tests.
* testsuite/gas/i386/pcommit-intel.d: Removed.
* testsuite/gas/i386/pcommit.d: Likewise.
* testsuite/gas/i386/pcommit.s: Likewise.
* testsuite/gas/i386/x86-64-pcommit-intel.d: Likewise.
* testsuite/gas/i386/x86-64-pcommit.d: Likewise.
* testsuite/gas/i386/x86-64-pcommit.s: Likewise.
opcodes/
* i386-dis.c (PREFIX_RM_0_0FAE_REG_7): Removed.
(prefix_table): Remove the PREFIX_RM_0_0FAE_REG_7 entry.
(rm_table): Update the RM_0FAE_REG_7 entry.
* i386-gen.c (cpu_flag_init): Remove CPU_PCOMMIT_FLAGS.
(cpu_flags): Remove CpuPCOMMIT.
* i386-opc.h (CpuPCOMMIT): Removed.
(i386_cpu_flags): Remove cpupcommit.
* i386-opc.tbl: Remove pcommit.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 12 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 2 | ||||
-rw-r--r-- | gas/doc/c-i386.texi | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/pcommit-intel.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/pcommit.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/pcommit.s | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-pcommit-intel.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-pcommit.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-pcommit.s | 10 |
10 files changed, 13 insertions, 84 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 50282ab..f51df74 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,15 @@ +2016-10-21 H.J. Lu <hongjiu.lu@intel.com> + + * config/tc-i386.c (cpu_arch): Remove .pcommit. + * doc/c-i386.texi: Likewise. + * testsuite/gas/i386/i386.exp: Remove pcommit tests. + * testsuite/gas/i386/pcommit-intel.d: Removed. + * testsuite/gas/i386/pcommit.d: Likewise. + * testsuite/gas/i386/pcommit.s: Likewise. + * testsuite/gas/i386/x86-64-pcommit-intel.d: Likewise. + * testsuite/gas/i386/x86-64-pcommit.d: Likewise. + * testsuite/gas/i386/x86-64-pcommit.s: Likewise. + 2016-10-20 H.J. Lu <hongjiu.lu@intel.com> PR binutis/20705 diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 0ab9e1e..6724bca 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -958,8 +958,6 @@ static const arch_entry cpu_arch[] = CPU_SE1_FLAGS, 0 }, { STRING_COMMA_LEN (".clwb"), PROCESSOR_UNKNOWN, CPU_CLWB_FLAGS, 0 }, - { STRING_COMMA_LEN (".pcommit"), PROCESSOR_UNKNOWN, - CPU_PCOMMIT_FLAGS, 0 }, { STRING_COMMA_LEN (".avx512ifma"), PROCESSOR_UNKNOWN, CPU_AVX512IFMA_FLAGS, 0 }, { STRING_COMMA_LEN (".avx512vbmi"), PROCESSOR_UNKNOWN, diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi index 5e9e2ef..43b4008 100644 --- a/gas/doc/c-i386.texi +++ b/gas/doc/c-i386.texi @@ -171,7 +171,6 @@ accept various extension mnemonics. For example, @code{clflushopt}, @code{se1}, @code{clwb}, -@code{pcommit}, @code{avx512f}, @code{avx512cd}, @code{avx512er}, @@ -1191,7 +1190,7 @@ supported on the CPU specified. The choices for @var{cpu_type} are: @item @samp{.clflushopt} @tab @samp{.xsavec} @tab @samp{.xsaves} @tab @samp{.se1} @item @samp{.avx512f} @tab @samp{.avx512cd} @tab @samp{.avx512er} @tab @samp{.avx512pf} @item @samp{.avx512vl} @tab @samp{.avx512bw} @tab @samp{.avx512dq} @tab @samp{.avx512ifma} -@item @samp{.avx512vbmi} @tab @samp{.clwb} @tab @samp{.pcommit} +@item @samp{.avx512vbmi} @tab @samp{.clwb} @item @samp{.3dnow} @tab @samp{.3dnowa} @tab @samp{.sse4a} @tab @samp{.sse5} @item @samp{.syscall} @tab @samp{.rdtscp} @tab @samp{.svme} @tab @samp{.abm} @item @samp{.lwp} @tab @samp{.fma4} @tab @samp{.xop} @tab @samp{.cx16} diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index e2b874d..7d04a5c 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -349,8 +349,6 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "avx512f-rcigrz" run_dump_test "clwb" run_dump_test "clwb-intel" - run_dump_test "pcommit" - run_dump_test "pcommit-intel" run_dump_test "avx512ifma" run_dump_test "avx512ifma-intel" run_dump_test "avx512ifma_vl" @@ -753,8 +751,6 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t run_dump_test "x86-64-avx512f-rcigrz" run_dump_test "x86-64-clwb" run_dump_test "x86-64-clwb-intel" - run_dump_test "x86-64-pcommit" - run_dump_test "x86-64-pcommit-intel" run_dump_test "x86-64-avx512ifma" run_dump_test "x86-64-avx512ifma-intel" run_dump_test "x86-64-avx512ifma_vl" diff --git a/gas/testsuite/gas/i386/pcommit-intel.d b/gas/testsuite/gas/i386/pcommit-intel.d deleted file mode 100644 index ff34d10..0000000 --- a/gas/testsuite/gas/i386/pcommit-intel.d +++ /dev/null @@ -1,14 +0,0 @@ -#as: -#objdump: -dw -Mintel -#name: i386 PCOMMIT insns (Intel disassembly) -#source: pcommit.s - -.*: +file format .* - - -Disassembly of section \.text: - -00000000 <_start>: -[ ]*[a-f0-9]+:[ ]*66 0f ae f8[ ]*pcommit -[ ]*[a-f0-9]+:[ ]*66 0f ae f8[ ]*pcommit -#pass diff --git a/gas/testsuite/gas/i386/pcommit.d b/gas/testsuite/gas/i386/pcommit.d deleted file mode 100644 index 2af4576..0000000 --- a/gas/testsuite/gas/i386/pcommit.d +++ /dev/null @@ -1,14 +0,0 @@ -#as: -#objdump: -dw -#name: i386 PCOMMIT insns -#source: pcommit.s - -.*: +file format .* - - -Disassembly of section \.text: - -00000000 <_start>: -[ ]*[a-f0-9]+:[ ]*66 0f ae f8[ ]*pcommit -[ ]*[a-f0-9]+:[ ]*66 0f ae f8[ ]*pcommit -#pass diff --git a/gas/testsuite/gas/i386/pcommit.s b/gas/testsuite/gas/i386/pcommit.s deleted file mode 100644 index b791376..0000000 --- a/gas/testsuite/gas/i386/pcommit.s +++ /dev/null @@ -1,10 +0,0 @@ -# Check 32bit PCOMMIT instructions - - .allow_index_reg - .text -_start: - - pcommit # PCOMMIT - - .intel_syntax noprefix - pcommit # PCOMMIT diff --git a/gas/testsuite/gas/i386/x86-64-pcommit-intel.d b/gas/testsuite/gas/i386/x86-64-pcommit-intel.d deleted file mode 100644 index ec9c1a6..0000000 --- a/gas/testsuite/gas/i386/x86-64-pcommit-intel.d +++ /dev/null @@ -1,14 +0,0 @@ -#as: -#objdump: -dw -Mintel -#name: x86_64 PCOMMIT insns (Intel disassembly) -#source: x86-64-pcommit.s - -.*: +file format .* - - -Disassembly of section \.text: - -0+ <_start>: -[ ]*[a-f0-9]+:[ ]*66 0f ae f8[ ]*pcommit -[ ]*[a-f0-9]+:[ ]*66 0f ae f8[ ]*pcommit -#pass diff --git a/gas/testsuite/gas/i386/x86-64-pcommit.d b/gas/testsuite/gas/i386/x86-64-pcommit.d deleted file mode 100644 index 1a378cf..0000000 --- a/gas/testsuite/gas/i386/x86-64-pcommit.d +++ /dev/null @@ -1,14 +0,0 @@ -#as: -#objdump: -dw -#name: x86_64 PCOMMIT insns -#source: x86-64-pcommit.s - -.*: +file format .* - - -Disassembly of section \.text: - -0+ <_start>: -[ ]*[a-f0-9]+:[ ]*66 0f ae f8[ ]*pcommit -[ ]*[a-f0-9]+:[ ]*66 0f ae f8[ ]*pcommit -#pass diff --git a/gas/testsuite/gas/i386/x86-64-pcommit.s b/gas/testsuite/gas/i386/x86-64-pcommit.s deleted file mode 100644 index b791376..0000000 --- a/gas/testsuite/gas/i386/x86-64-pcommit.s +++ /dev/null @@ -1,10 +0,0 @@ -# Check 32bit PCOMMIT instructions - - .allow_index_reg - .text -_start: - - pcommit # PCOMMIT - - .intel_syntax noprefix - pcommit # PCOMMIT |