From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51699 invoked by alias); 5 Apr 2019 19:44:00 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 51681 invoked by uid 89); 5 Apr 2019 19:44:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_SOFTFAIL autolearn=ham version=3.3.1 spammy=H*MI:hjl, property1 X-HELO: mga07.intel.com Received: from mga07.intel.com (HELO mga07.intel.com) (134.134.136.100) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 Apr 2019 19:43:58 +0000 Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Apr 2019 12:43:56 -0700 Received: from gnu-cfl-1.sc.intel.com ([172.25.70.237]) by fmsmga008.fm.intel.com with ESMTP; 05 Apr 2019 12:43:56 -0700 From: "H.J. Lu" To: binutils@sourceware.org Subject: [PATCH] x86: Add assembler -mx86-used-note=yes test Date: Fri, 05 Apr 2019 19:44:00 -0000 Message-Id: <20190405194356.31161-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00055.txt.bz2 Check assembler -mx86-used-note=yes option and readelf -n output. * testsuite/gas/i386/i386.exp: Run -mx86-used-note=yes tests. * testsuite/gas/i386/property-2.d: New file. * testsuite/gas/i386/property-2.s: Likewise. * testsuite/gas/i386/x86-64-property-2.d: Likewise. --- gas/ChangeLog | 7 +++++ gas/testsuite/gas/i386/i386.exp | 2 ++ gas/testsuite/gas/i386/property-2.d | 9 +++++++ gas/testsuite/gas/i386/property-2.s | 31 ++++++++++++++++++++++ gas/testsuite/gas/i386/x86-64-property-2.d | 10 +++++++ 5 files changed, 59 insertions(+) create mode 100644 gas/testsuite/gas/i386/property-2.d create mode 100644 gas/testsuite/gas/i386/property-2.s create mode 100644 gas/testsuite/gas/i386/x86-64-property-2.d diff --git a/gas/ChangeLog b/gas/ChangeLog index 27d3604e7b..25e3093710 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2019-04-05 H.J. Lu + + * testsuite/gas/i386/i386.exp: Run -mx86-used-note=yes tests. + * testsuite/gas/i386/property-2.d: New file. + * testsuite/gas/i386/property-2.s: Likewise. + * testsuite/gas/i386/x86-64-property-2.d: Likewise. + 2019-04-05 Xuepeng Guo * config/tc-i386.c (cpu_arch): Add .avx512_bf16. diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index 1dd131334e..7a36ae8a0d 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -549,6 +549,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "evex-no-scale-32" run_dump_test "property-1" + run_dump_test "property-2" if { [gas_64_check] } then { run_dump_test "att-regs" @@ -1062,6 +1063,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t run_dump_test "evex-no-scale-64" run_dump_test "x86-64-property-1" + run_dump_test "x86-64-property-2" } set ASFLAGS "$old_ASFLAGS" diff --git a/gas/testsuite/gas/i386/property-2.d b/gas/testsuite/gas/i386/property-2.d new file mode 100644 index 0000000000..4803a0a7dc --- /dev/null +++ b/gas/testsuite/gas/i386/property-2.d @@ -0,0 +1,9 @@ +#name: i386 property 2 +#as: -mx86-used-note=yes +#readelf: -n + +Displaying notes found in: .note.gnu.property + Owner Data size Description + GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0 + Properties: x86 ISA used: CMOV, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2, FMA, AVX512F, AVX512CD, AVX512ER, AVX512PF, AVX512VL, AVX512DQ, AVX512BW, AVX512_4FMAPS, AVX512_4VNNIW, AVX512_BITALG, AVX512_IFMA, AVX512_VBMI, AVX512_VBMI2, AVX512_VNNI + x86 feature used: x86, x87, MMX, XMM, YMM, ZMM, FXSR, XSAVE, XSAVEOPT, XSAVEC diff --git a/gas/testsuite/gas/i386/property-2.s b/gas/testsuite/gas/i386/property-2.s new file mode 100644 index 0000000000..ca73cb8ced --- /dev/null +++ b/gas/testsuite/gas/i386/property-2.s @@ -0,0 +1,31 @@ + .text + fsin + movq %mm0, %mm1 + fxsave (%eax) + xsave (%eax) + xsaveopt (%eax) + xsavec (%eax) + cmove %eax,%ebx + movaps %xmm0, %xmm1 + movapd %xmm0, %xmm1 + mwait + psignb %xmm0, %xmm1 + blendvpd %xmm0, %xmm1 + pcmpgtq %xmm0, %xmm1 + vmovaps %xmm0, %xmm1 + vpabsb %ymm0, %ymm1 + vfmadd231ps %ymm0, %ymm1, %ymm1 + vmovaps %zmm0, %zmm1 + vplzcntd %zmm0, %zmm1 + vrsqrt28pd %zmm0, %zmm1 + vscatterpf0dpd (%eax,%ymm1){%k1} + {evex} vpmovzxdq %xmm0, %xmm1 + vandnpd %zmm0, %zmm0, %zmm1 + vpmaxuw %zmm0, %zmm0, %zmm1 + v4fnmaddss (%ecx), %xmm4, %xmm1 + vpopcntb %zmm0, %zmm1 + vp4dpwssd (%ecx), %zmm0, %zmm1 + vpmadd52luq (%ecx), %zmm0, %zmm1 + vpermt2b (%ecx), %zmm0, %zmm1 + vpcompressb %zmm0, %zmm1 + vpdpwssds (%ecx), %zmm0, %zmm1 diff --git a/gas/testsuite/gas/i386/x86-64-property-2.d b/gas/testsuite/gas/i386/x86-64-property-2.d new file mode 100644 index 0000000000..6ac3d59b23 --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-property-2.d @@ -0,0 +1,10 @@ +#name: x86-64 property 2 +#source: property-2.s +#as: -mx86-used-note=yes +#readelf: -n + +Displaying notes found in: .note.gnu.property + Owner Data size Description + GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0 + Properties: x86 ISA used: CMOV, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2, FMA, AVX512F, AVX512CD, AVX512ER, AVX512PF, AVX512VL, AVX512DQ, AVX512BW, AVX512_4FMAPS, AVX512_4VNNIW, AVX512_BITALG, AVX512_IFMA, AVX512_VBMI, AVX512_VBMI2, AVX512_VNNI + x86 feature used: x86, x87, MMX, XMM, YMM, ZMM, FXSR, XSAVE, XSAVEOPT, XSAVEC -- 2.20.1