From: H.J. Lu Date: Thu, 20 Sep 2012 14:43:20 +0000 (+0000) Subject: Add x86-64-arch-2-1/x86-64-arch-2-2 tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6788fa52419e74686cadbce7a92e4c10c5f76441;p=binutils-gdb.git Add x86-64-arch-2-1/x86-64-arch-2-2 tests * gas/i386/i386.exp: Run x86-64-arch-2-1 and x86-64-arch-2-2. * gas/i386/x86-64-arch-2-1.l: New file. * gas/i386/x86-64-arch-2-1.s: Likewise. * gas/i386/x86-64-arch-2-2.l: Likewise. * gas/i386/x86-64-arch-2-2.s: Likewise. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 07c73e09a0b..47baaff4022 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2012-09-20 H.J. Lu + + * gas/i386/i386.exp: Run x86-64-arch-2-1 and x86-64-arch-2-2. + + * gas/i386/x86-64-arch-2-1.l: New file. + * gas/i386/x86-64-arch-2-1.s: Likewise. + * gas/i386/x86-64-arch-2-2.l: Likewise. + * gas/i386/x86-64-arch-2-2.s: Likewise. + 2012-09-20 Michael Zolotukhin * gas/i386/x86-64-arch-2.s: Add test for cmpxchg16b. diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index 2cfe8ecfece..76eef3461fc 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -399,6 +399,8 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t run_dump_test "x86-64-arch-2-bdver2" run_dump_test "x86-64-arch-2-btver1" run_dump_test "x86-64-arch-2-btver2" + run_list_test "x86-64-arch-2-1" "-march=generic64 -I${srcdir}/$subdir -al" + run_list_test "x86-64-arch-2-2" "-march=generic64+cx16 -I${srcdir}/$subdir -al" run_dump_test "x86-64-xsave" run_dump_test "x86-64-xsave-intel" run_dump_test "x86-64-aes" diff --git a/gas/testsuite/gas/i386/x86-64-arch-2-1.l b/gas/testsuite/gas/i386/x86-64-arch-2-1.l new file mode 100644 index 00000000000..355b91cac1c --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-arch-2-1.l @@ -0,0 +1,97 @@ +.*: Assembler messages: +.*:16: Error: .* +.*:18: Error: .* +.*:20: Error: .* +.*:22: Error: .* +.*:24: Error: .* +.*:26: Error: .* +.*:28: Error: .* +.*:30: Error: .* +.*:32: Error: .* +.*:34: Error: .* +.*:36: Error: .* +.*:38: Error: .* +.*:40: Error: .* +.*:42: Error: .* +.*:44: Error: .* +.*:46: Error: .* +.*:48: Error: .* +.*:50: Error: .* +.*:52: Error: .* +.*:54: Error: .* +.*:56: Error: .* +.*:58: Error: .* +.*:60: Error: .* +.*:62: Error: .* +.*:64: Error: .* +GAS LISTING .* + + +[ ]*1[ ]+\.include "x86-64-arch-2\.s" +[ ]*1[ ]+\# Test -march= +[ ]*2[ ]+\.text +[ ]*3[ ]+\# cmov feature +[ ]*4[ ]+\?\?\?\? 0F44D8 cmove %eax,%ebx +[ ]*5[ ]+\# clflush +[ ]*6[ ]+\?\?\?\? 0FAE38 clflush \(%rax\) +[ ]*7[ ]+\# SYSCALL +[ ]*8[ ]+\?\?\?\? 0F05 syscall +[ ]*9[ ]+\# MMX +[ ]*10[ ]+\?\?\?\? 0FFCDC paddb %mm4,%mm3 +[ ]*11[ ]+\# SSE +[ ]*12[ ]+\?\?\?\? F30F58DC addss %xmm4,%xmm3 +[ ]*13[ ]+\# SSE2 +[ ]*14[ ]+\?\?\?\? F20F58DC addsd %xmm4,%xmm3 +[ ]*15[ ]+\# SSE3 +[ ]*16[ ]+addsubpd %xmm4,%xmm3 +[ ]*17[ ]+\# SSSE3 +[ ]*18[ ]+phaddw %xmm4,%xmm3 +[ ]*19[ ]+\# SSE4\.1 +[ ]*20[ ]+phminposuw %xmm1,%xmm3 +[ ]*21[ ]+\# SSE4\.2 +[ ]*22[ ]+crc32 %ecx,%ebx +[ ]*23[ ]+\# AVX +[ ]*24[ ]+vzeroall +[ ]*25[ ]+\# VMX +[ ]*26[ ]+vmxoff +[ ]*27[ ]+\# SMX +[ ]*28[ ]+getsec +[ ]*29[ ]+\# Xsave +[ ]*30[ ]+xgetbv +[ ]*31[ ]+\# Xsaveopt +[ ]*32[ ]+xsaveopt \(%rcx\) +[ ]*33[ ]+\# AES +[ ]*34[ ]+aesenc \(%rcx\),%xmm0 +[ ]*35[ ]+\# PCLMUL +[ ]*36[ ]+pclmulqdq \$8,%xmm1,%xmm0 +[ ]*37[ ]+\# AES \+ AVX +[ ]*38[ ]+vaesenc \(%rcx\),%xmm0,%xmm2 +[ ]*39[ ]+\# PCLMUL \+ AVX +[ ]*40[ ]+vpclmulqdq \$8,%xmm4,%xmm6,%xmm2 +[ ]*41[ ]+\# FMA +[ ]*42[ ]+vfmadd132pd %xmm4,%xmm6,%xmm2 +[ ]*43[ ]+\# MOVBE +[ ]*44[ ]+movbe \(%rcx\),%ebx +[ ]*45[ ]+\# CX16 +[ ]*46[ ]+cmpxchg16b \(%rsi\) +[ ]*47[ ]+\# EPT +[ ]*48[ ]+invept \(%rcx\),%rbx +[ ]*49[ ]+\# RDTSCP +[ ]*50[ ]+rdtscp +[ ]*51[ ]+\# 3DNow or PRFCHW +[ ]*52[ ]+prefetchw 0x1000\(,%rsi,2\) +[ ]*53[ ]+\# SSE4a +[ ]*54[ ]+insertq %xmm2,%xmm1 +[ ]*55[ ]+\# SVME +[ ]*56[ ]+vmload + GAS LISTING .* + + +[ ]*57[ ]+\# ABM/LZCNT +[ ]*58[ ]+lzcnt %ecx,%ebx +[ ]*59[ ]+\# PadLock +[ ]*60[ ]+xstorerng +[ ]*61[ ]+\# BMI +[ ]*62[ ]+blsr %ecx,%ebx +[ ]*63[ ]+\# TBM +[ ]*64[ ]+blcfill %ecx,%ebx diff --git a/gas/testsuite/gas/i386/x86-64-arch-2-1.s b/gas/testsuite/gas/i386/x86-64-arch-2-1.s new file mode 100644 index 00000000000..63544a1dfde --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-arch-2-1.s @@ -0,0 +1 @@ +.include "x86-64-arch-2.s" diff --git a/gas/testsuite/gas/i386/x86-64-arch-2-2.l b/gas/testsuite/gas/i386/x86-64-arch-2-2.l new file mode 100644 index 00000000000..2f8bf56d09a --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-arch-2-2.l @@ -0,0 +1,96 @@ +.*: Assembler messages: +.*:16: Error: .* +.*:18: Error: .* +.*:20: Error: .* +.*:22: Error: .* +.*:24: Error: .* +.*:26: Error: .* +.*:28: Error: .* +.*:30: Error: .* +.*:32: Error: .* +.*:34: Error: .* +.*:36: Error: .* +.*:38: Error: .* +.*:40: Error: .* +.*:42: Error: .* +.*:44: Error: .* +.*:48: Error: .* +.*:50: Error: .* +.*:52: Error: .* +.*:54: Error: .* +.*:56: Error: .* +.*:58: Error: .* +.*:60: Error: .* +.*:62: Error: .* +.*:64: Error: .* +GAS LISTING .* + + +[ ]*1[ ]+\.include "x86-64-arch-2\.s" +[ ]*1[ ]+\# Test -march= +[ ]*2[ ]+\.text +[ ]*3[ ]+\# cmov feature +[ ]*4[ ]+\?\?\?\? 0F44D8 cmove %eax,%ebx +[ ]*5[ ]+\# clflush +[ ]*6[ ]+\?\?\?\? 0FAE38 clflush \(%rax\) +[ ]*7[ ]+\# SYSCALL +[ ]*8[ ]+\?\?\?\? 0F05 syscall +[ ]*9[ ]+\# MMX +[ ]*10[ ]+\?\?\?\? 0FFCDC paddb %mm4,%mm3 +[ ]*11[ ]+\# SSE +[ ]*12[ ]+\?\?\?\? F30F58DC addss %xmm4,%xmm3 +[ ]*13[ ]+\# SSE2 +[ ]*14[ ]+\?\?\?\? F20F58DC addsd %xmm4,%xmm3 +[ ]*15[ ]+\# SSE3 +[ ]*16[ ]+addsubpd %xmm4,%xmm3 +[ ]*17[ ]+\# SSSE3 +[ ]*18[ ]+phaddw %xmm4,%xmm3 +[ ]*19[ ]+\# SSE4\.1 +[ ]*20[ ]+phminposuw %xmm1,%xmm3 +[ ]*21[ ]+\# SSE4\.2 +[ ]*22[ ]+crc32 %ecx,%ebx +[ ]*23[ ]+\# AVX +[ ]*24[ ]+vzeroall +[ ]*25[ ]+\# VMX +[ ]*26[ ]+vmxoff +[ ]*27[ ]+\# SMX +[ ]*28[ ]+getsec +[ ]*29[ ]+\# Xsave +[ ]*30[ ]+xgetbv +[ ]*31[ ]+\# Xsaveopt +[ ]*32[ ]+xsaveopt \(%rcx\) +[ ]*33[ ]+\# AES +[ ]*34[ ]+aesenc \(%rcx\),%xmm0 +[ ]*35[ ]+\# PCLMUL +[ ]*36[ ]+pclmulqdq \$8,%xmm1,%xmm0 +[ ]*37[ ]+\# AES \+ AVX +[ ]*38[ ]+vaesenc \(%rcx\),%xmm0,%xmm2 +[ ]*39[ ]+\# PCLMUL \+ AVX +[ ]*40[ ]+vpclmulqdq \$8,%xmm4,%xmm6,%xmm2 +[ ]*41[ ]+\# FMA +[ ]*42[ ]+vfmadd132pd %xmm4,%xmm6,%xmm2 +[ ]*43[ ]+\# MOVBE +[ ]*44[ ]+movbe \(%rcx\),%ebx +[ ]*45[ ]+\# CX16 +[ ]*46[ ]+\?\?\?\? 480FC70E cmpxchg16b \(%rsi\) +[ ]*47[ ]+\# EPT +[ ]*48[ ]+invept \(%rcx\),%rbx +[ ]*49[ ]+\# RDTSCP +[ ]*50[ ]+rdtscp +[ ]*51[ ]+\# 3DNow or PRFCHW +[ ]*52[ ]+prefetchw 0x1000\(,%rsi,2\) +[ ]*53[ ]+\# SSE4a +[ ]*54[ ]+insertq %xmm2,%xmm1 +[ ]*55[ ]+\# SVME +[ ]*56[ ]+vmload + GAS LISTING .* + + +[ ]*57[ ]+\# ABM/LZCNT +[ ]*58[ ]+lzcnt %ecx,%ebx +[ ]*59[ ]+\# PadLock +[ ]*60[ ]+xstorerng +[ ]*61[ ]+\# BMI +[ ]*62[ ]+blsr %ecx,%ebx +[ ]*63[ ]+\# TBM +[ ]*64[ ]+blcfill %ecx,%ebx diff --git a/gas/testsuite/gas/i386/x86-64-arch-2-2.s b/gas/testsuite/gas/i386/x86-64-arch-2-2.s new file mode 100644 index 00000000000..63544a1dfde --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-arch-2-2.s @@ -0,0 +1 @@ +.include "x86-64-arch-2.s"