From 594ab6a333bf85639e6839a924534fa264616c39 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 4 Apr 2008 16:34:23 +0000 Subject: gas/ 2008-04-04 H.J. Lu * NEWS: Mention XSAVE. Change CLMUL to PCLMUL. * config/tc-i386.c (cpu_arch): Add .pclmul. (md_show_usage): Replace clmul with pclmul. * doc/c-i386.texi: Likewise. gas/testsuite/ 2008-04-04 H.J. Lu * gas/i386/arch-10-1.l: Replace CLMUL with PCLMUL. * gas/i386/arch-10-2.l: Likewise. * gas/i386/arch-10-3.l: Likewise. * gas/i386/arch-10-4.l: Likewise. * gas/i386/arch-10.s: Likewise. * gas/i386/clmul-intel.d: Likewise. * gas/i386/clmul.d: Likewise. * gas/i386/clmul.s: Likewise. * gas/i386/x86-64-arch-2.s: Likewise. * gas/i386/x86-64-clmul-intel.d: Likewise. * gas/i386/x86-64-clmul.d: Likewise. * gas/i386/x86-64-clmul.s: Likewise. * gas/i386/arch-10.d: Replace clmul with pclmul. * gas/i386/x86-64-arch-2.d: Likewise. opcodes/ 2008-04-04 H.J. Lu * i386-gen.c (cpu_flag_init): Replace CPU_CLMUL_FLAGS/CpuCLMUL with CPU_PCLMUL_FLAGS/CpuPCLMUL. (cpu_flags): Replace CpuCLMUL with CpuPCLMUL. * i386-opc.tbl: Likewise. * i386-opc.h (CpuCLMUL): Renamed to ... (CpuPCLMUL): This. (CpuFMA): Updated. (i386_cpu_flags): Replace cpuclmul with cpupclmul. * i386-init.h: Regenerated. --- gas/ChangeLog | 8 ++++++++ gas/NEWS | 2 +- gas/config/tc-i386.c | 6 ++++-- gas/doc/c-i386.texi | 4 ++-- gas/testsuite/ChangeLog | 18 ++++++++++++++++++ gas/testsuite/gas/i386/arch-10-1.l | 2 +- gas/testsuite/gas/i386/arch-10-2.l | 2 +- gas/testsuite/gas/i386/arch-10-3.l | 2 +- gas/testsuite/gas/i386/arch-10-4.l | 2 +- gas/testsuite/gas/i386/arch-10.d | 2 +- gas/testsuite/gas/i386/arch-10.s | 2 +- gas/testsuite/gas/i386/clmul-intel.d | 2 +- gas/testsuite/gas/i386/clmul.d | 2 +- gas/testsuite/gas/i386/clmul.s | 2 +- gas/testsuite/gas/i386/x86-64-arch-2.d | 2 +- gas/testsuite/gas/i386/x86-64-arch-2.s | 2 +- gas/testsuite/gas/i386/x86-64-clmul-intel.d | 2 +- gas/testsuite/gas/i386/x86-64-clmul.d | 2 +- gas/testsuite/gas/i386/x86-64-clmul.s | 2 +- 19 files changed, 47 insertions(+), 19 deletions(-) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index fae8cb0..43945cc 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,11 @@ +2008-04-04 H.J. Lu + + * NEWS: Mention XSAVE. Change CLMUL to PCLMUL. + + * config/tc-i386.c (cpu_arch): Add .pclmul. + (md_show_usage): Replace clmul with pclmul. + * doc/c-i386.texi: Likewise. + 2008-04-03 H.J. Lu * NEWS: Mention AES, CLMUL, AVX/FMA and -msse2avx. diff --git a/gas/NEWS b/gas/NEWS index ce3cda1..20ac4bb 100644 --- a/gas/NEWS +++ b/gas/NEWS @@ -2,7 +2,7 @@ * New command line option -msse2avx for x86 target to encode SSE instructions with VEX prefix. -* Add Intel AES, CLMUL, AVX/FMA support for x86 target. +* Add Intel XSAVE, AES, PCLMUL, AVX/FMA support for x86 target. * New command line options, -march=CPU[,+EXTENSION...], -mtune=CPU, -mmnemonic=[att|intel], -msyntax=[att|intel], -mindex-reg, diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index e8e8031..4426697 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -647,8 +647,10 @@ static const arch_entry cpu_arch[] = CPU_XSAVE_FLAGS }, { ".aes", PROCESSOR_UNKNOWN, CPU_AES_FLAGS }, + { ".pclmul", PROCESSOR_UNKNOWN, + CPU_PCLMUL_FLAGS }, { ".clmul", PROCESSOR_UNKNOWN, - CPU_CLMUL_FLAGS }, + CPU_PCLMUL_FLAGS }, { ".fma", PROCESSOR_UNKNOWN, CPU_FMA_FLAGS }, { ".3dnow", PROCESSOR_UNKNOWN, @@ -8045,7 +8047,7 @@ md_show_usage (stream) generic32, generic64\n\ EXTENSION is combination of:\n\ mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, sse4,\n\ - avx, vmx, smx, xsave, aes, clmul, fma, 3dnow,\n\ + avx, vmx, smx, xsave, aes, pclmul, fma, 3dnow,\n\ 3dnowa, sse4a, sse5, svme, abm, padlock\n")); fprintf (stream, _("\ -mtune=CPU optimize for CPU, CPU is one of:\n\ diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi index 105330e..3e148a2 100644 --- a/gas/doc/c-i386.texi +++ b/gas/doc/c-i386.texi @@ -125,7 +125,7 @@ accept various extension mnemonics. For example, @code{smx}, @code{xsave}, @code{aes}, -@code{clmul}, +@code{pclmul}, @code{fma}, @code{3dnow}, @code{3dnowa}, @@ -832,7 +832,7 @@ supported on the CPU specified. The choices for @var{cpu_type} are: @item @samp{.mmx} @tab @samp{.sse} @tab @samp{.sse2} @tab @samp{.sse3} @item @samp{.ssse3} @tab @samp{.sse4.1} @tab @samp{.sse4.2} @tab @samp{.sse4} @item @samp{.avx} @tab @samp{.vmx} @tab @samp{.smx} @tab @samp{.xsave} -@item @samp{.aes} @tab @samp{.clmul} @tab @samp{.fma} +@item @samp{.aes} @tab @samp{.pclmul} @tab @samp{.fma} @item @samp{.3dnow} @tab @samp{.3dnowa} @tab @samp{.sse4a} @tab @samp{.sse5} @item @samp{.svme} @tab @samp{.abm} @item @samp{.padlock} diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index d7e72eb..dcb467e 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,21 @@ +2008-04-04 H.J. Lu + + * gas/i386/arch-10-1.l: Replace CLMUL with PCLMUL. + * gas/i386/arch-10-2.l: Likewise. + * gas/i386/arch-10-3.l: Likewise. + * gas/i386/arch-10-4.l: Likewise. + * gas/i386/arch-10.s: Likewise. + * gas/i386/clmul-intel.d: Likewise. + * gas/i386/clmul.d: Likewise. + * gas/i386/clmul.s: Likewise. + * gas/i386/x86-64-arch-2.s: Likewise. + * gas/i386/x86-64-clmul-intel.d: Likewise. + * gas/i386/x86-64-clmul.d: Likewise. + * gas/i386/x86-64-clmul.s: Likewise. + + * gas/i386/arch-10.d: Replace clmul with pclmul. + * gas/i386/x86-64-arch-2.d: Likewise. + 2008-04-03 H.J. Lu * gas/i386/i386.exp: Run aes, aes-intel, x86-64-aes, diff --git a/gas/testsuite/gas/i386/arch-10-1.l b/gas/testsuite/gas/i386/arch-10-1.l index af717c4..325e827 100644 --- a/gas/testsuite/gas/i386/arch-10-1.l +++ b/gas/testsuite/gas/i386/arch-10-1.l @@ -53,7 +53,7 @@ GAS LISTING .* [ ]*26[ ]+xgetbv [ ]*27[ ]+\# AES [ ]*28[ ]+aesenc \(%ecx\),%xmm0 -[ ]*29[ ]+\# CLMUL +[ ]*29[ ]+\# PCLMUL [ ]*30[ ]+pclmulqdq \$8,%xmm1,%xmm0 [ ]*31[ ]+\# FMA [ ]*32[ ]+vfmaddpd %ymm4,%ymm6,%ymm2,%ymm7 diff --git a/gas/testsuite/gas/i386/arch-10-2.l b/gas/testsuite/gas/i386/arch-10-2.l index 714c099..cac7448 100644 --- a/gas/testsuite/gas/i386/arch-10-2.l +++ b/gas/testsuite/gas/i386/arch-10-2.l @@ -52,7 +52,7 @@ GAS LISTING .* [ ]*26[ ]+xgetbv [ ]*27[ ]+\# AES [ ]*28[ ]+aesenc \(%ecx\),%xmm0 -[ ]*29[ ]+\# CLMUL +[ ]*29[ ]+\# PCLMUL [ ]*30[ ]+pclmulqdq \$8,%xmm1,%xmm0 [ ]*31[ ]+\# FMA [ ]*32[ ]+vfmaddpd %ymm4,%ymm6,%ymm2,%ymm7 diff --git a/gas/testsuite/gas/i386/arch-10-3.l b/gas/testsuite/gas/i386/arch-10-3.l index 3315a98..db521b3 100644 --- a/gas/testsuite/gas/i386/arch-10-3.l +++ b/gas/testsuite/gas/i386/arch-10-3.l @@ -48,7 +48,7 @@ GAS LISTING .* [ ]*26[ ]+xgetbv [ ]*27[ ]+\# AES [ ]*28[ ]+aesenc \(%ecx\),%xmm0 -[ ]*29[ ]+\# CLMUL +[ ]*29[ ]+\# PCLMUL [ ]*30[ ]+pclmulqdq \$8,%xmm1,%xmm0 [ ]*31[ ]+\# FMA [ ]*32[ ]+vfmaddpd %ymm4,%ymm6,%ymm2,%ymm7 diff --git a/gas/testsuite/gas/i386/arch-10-4.l b/gas/testsuite/gas/i386/arch-10-4.l index eec46a3..f60e80b 100644 --- a/gas/testsuite/gas/i386/arch-10-4.l +++ b/gas/testsuite/gas/i386/arch-10-4.l @@ -46,7 +46,7 @@ GAS LISTING .* [ ]*26[ ]+xgetbv [ ]*27[ ]+\# AES [ ]*28[ ]+aesenc \(%ecx\),%xmm0 -[ ]*29[ ]+\# CLMUL +[ ]*29[ ]+\# PCLMUL [ ]*30[ ]+pclmulqdq \$8,%xmm1,%xmm0 [ ]*31[ ]+\# FMA [ ]*32[ ]+vfmaddpd %ymm4,%ymm6,%ymm2,%ymm7 diff --git a/gas/testsuite/gas/i386/arch-10.d b/gas/testsuite/gas/i386/arch-10.d index 60b44d4..209949c 100644 --- a/gas/testsuite/gas/i386/arch-10.d +++ b/gas/testsuite/gas/i386/arch-10.d @@ -1,4 +1,4 @@ -#as: -march=i686+avx+vmx+smx+xsave+aes+clmul+fma+sse5+3dnowa+svme+padlock +#as: -march=i686+avx+vmx+smx+xsave+aes+pclmul+fma+sse5+3dnowa+svme+padlock #objdump: -dw #name: i386 arch 10 diff --git a/gas/testsuite/gas/i386/arch-10.s b/gas/testsuite/gas/i386/arch-10.s index afa3c3b..27f9f90 100644 --- a/gas/testsuite/gas/i386/arch-10.s +++ b/gas/testsuite/gas/i386/arch-10.s @@ -26,7 +26,7 @@ getsec xgetbv # AES aesenc (%ecx),%xmm0 -# CLMUL +# PCLMUL pclmulqdq $8,%xmm1,%xmm0 # FMA vfmaddpd %ymm4,%ymm6,%ymm2,%ymm7 diff --git a/gas/testsuite/gas/i386/clmul-intel.d b/gas/testsuite/gas/i386/clmul-intel.d index cd29bb4..c311860 100644 --- a/gas/testsuite/gas/i386/clmul-intel.d +++ b/gas/testsuite/gas/i386/clmul-intel.d @@ -1,6 +1,6 @@ #source: clmul.s #objdump: -dw -Mintel -#name: i386 CLMUL (Intel mode) +#name: i386 PCLMUL (Intel mode) .*: +file format .* diff --git a/gas/testsuite/gas/i386/clmul.d b/gas/testsuite/gas/i386/clmul.d index be1a549..b67e884 100644 --- a/gas/testsuite/gas/i386/clmul.d +++ b/gas/testsuite/gas/i386/clmul.d @@ -1,5 +1,5 @@ #objdump: -dw -#name: i386 CLMUL +#name: i386 PCLMUL .*: +file format .* diff --git a/gas/testsuite/gas/i386/clmul.s b/gas/testsuite/gas/i386/clmul.s index b77d558..2c53879 100644 --- a/gas/testsuite/gas/i386/clmul.s +++ b/gas/testsuite/gas/i386/clmul.s @@ -1,4 +1,4 @@ -# Check CLMUL new instructions. +# Check PCLMUL new instructions. .text foo: diff --git a/gas/testsuite/gas/i386/x86-64-arch-2.d b/gas/testsuite/gas/i386/x86-64-arch-2.d index 69cd92f..eac9dd3 100644 --- a/gas/testsuite/gas/i386/x86-64-arch-2.d +++ b/gas/testsuite/gas/i386/x86-64-arch-2.d @@ -1,4 +1,4 @@ -#as: -march=generic64+avx+vmx+smx+xsave+aes+clmul+fma+sse5+3dnowa+svme+padlock +#as: -march=generic64+avx+vmx+smx+xsave+aes+pclmul+fma+sse5+3dnowa+svme+padlock #objdump: -dw #name: x86-64 arch 2 diff --git a/gas/testsuite/gas/i386/x86-64-arch-2.s b/gas/testsuite/gas/i386/x86-64-arch-2.s index 73625e4..11f5ebf 100644 --- a/gas/testsuite/gas/i386/x86-64-arch-2.s +++ b/gas/testsuite/gas/i386/x86-64-arch-2.s @@ -26,7 +26,7 @@ getsec xgetbv # AES aesenc (%rcx),%xmm0 -# CLMUL +# PCLMUL pclmulqdq $8,%xmm1,%xmm0 # FMA vfmaddpd %ymm4,%ymm6,%ymm2,%ymm7 diff --git a/gas/testsuite/gas/i386/x86-64-clmul-intel.d b/gas/testsuite/gas/i386/x86-64-clmul-intel.d index 79a720c..908904f 100644 --- a/gas/testsuite/gas/i386/x86-64-clmul-intel.d +++ b/gas/testsuite/gas/i386/x86-64-clmul-intel.d @@ -1,7 +1,7 @@ #source: x86-64-clmul.s #as: -J #objdump: -dw -Mintel -#name: x86-64 CLMUL (Intel mode) +#name: x86-64 PCLMUL (Intel mode) .*: +file format .* diff --git a/gas/testsuite/gas/i386/x86-64-clmul.d b/gas/testsuite/gas/i386/x86-64-clmul.d index 5efd606..83bb9cf 100644 --- a/gas/testsuite/gas/i386/x86-64-clmul.d +++ b/gas/testsuite/gas/i386/x86-64-clmul.d @@ -1,6 +1,6 @@ #as: -J #objdump: -dw -#name: x86-64 CLMUL +#name: x86-64 PCLMUL .*: +file format .* diff --git a/gas/testsuite/gas/i386/x86-64-clmul.s b/gas/testsuite/gas/i386/x86-64-clmul.s index a62107c..0a61d98 100644 --- a/gas/testsuite/gas/i386/x86-64-clmul.s +++ b/gas/testsuite/gas/i386/x86-64-clmul.s @@ -1,4 +1,4 @@ -# Check 64bit CLMUL new instructions. +# Check 64bit PCLMUL new instructions. .text foo: -- cgit v1.1