From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 9FF3E3858D37 for ; Wed, 30 Sep 2020 11:51:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9FF3E3858D37 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-596--7PTxYk9NleGX5D-LW1IMw-1; Wed, 30 Sep 2020 07:51:48 -0400 X-MC-Unique: -7PTxYk9NleGX5D-LW1IMw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 034111007B00; Wed, 30 Sep 2020 11:51:47 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-112-37.ams2.redhat.com [10.36.112.37]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 83EC15C1C4; Wed, 30 Sep 2020 11:51:46 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id 08UBphBZ019227; Wed, 30 Sep 2020 13:51:43 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id 08UBpgmn019226; Wed, 30 Sep 2020 13:51:42 +0200 Date: Wed, 30 Sep 2020 13:51:42 +0200 From: Jakub Jelinek To: Hongyu Wang Cc: Kirill Yukhin , Uros Bizjak , GCC Patches Subject: [committed] testsuite: Fix up amx* dg-do run tests with older binutils Message-ID: <20200930115142.GO2176@tucnak> Reply-To: Jakub Jelinek References: <20200903150743.gfzofhl3huifeq4x@kyukhin> <20200904140159.r6biwwb74qnj7dhc@kyukhin> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2020 11:51:55 -0000 On Fri, Sep 18, 2020 at 04:31:55PM +0800, Hongyu Wang via Gcc-patches wrote: > Very Appreciated for your review again > > I just update the patch with adding XSAVE dependency and use > __builtin_cpu_supports for runtime test. Several tests FAIL when using older binutils that don't support AMX. Fixed thusly, tested on x86_64-linux -m32/-m64, committed to trunk as obvious: 2020-09-30 Jakub Jelinek * gcc.target/i386/amxint8-dpbssd-2.c: Require effective targets amx_tile and amx_int8. * gcc.target/i386/amxint8-dpbsud-2.c: Likewise. * gcc.target/i386/amxint8-dpbusd-2.c: Likewise. * gcc.target/i386/amxint8-dpbuud-2.c: Likewise. * gcc.target/i386/amxbf16-dpbf16ps-2.c: Require effective targets amx_tile and amx_bf16. * gcc.target/i386/amxtile-2.c: Require effective target amx_tile. --- gcc/testsuite/gcc.target/i386/amxint8-dpbssd-2.c.jj 2020-09-29 11:32:02.950602758 +0200 +++ gcc/testsuite/gcc.target/i386/amxint8-dpbssd-2.c 2020-09-30 13:16:08.186445881 +0200 @@ -1,4 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ +/* { dg-require-effective-target amx_int8 } */ /* { dg-options "-O2 -mamx-tile -mamx-int8" } */ #include --- gcc/testsuite/gcc.target/i386/amxint8-dpbsud-2.c.jj 2020-09-29 11:32:02.950602758 +0200 +++ gcc/testsuite/gcc.target/i386/amxint8-dpbsud-2.c 2020-09-30 13:16:23.715221450 +0200 @@ -1,4 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ +/* { dg-require-effective-target amx_int8 } */ /* { dg-options "-O2 -mamx-tile -mamx-int8" } */ #include --- gcc/testsuite/gcc.target/i386/amxint8-dpbusd-2.c.jj 2020-09-29 11:32:02.950602758 +0200 +++ gcc/testsuite/gcc.target/i386/amxint8-dpbusd-2.c 2020-09-30 13:16:28.998145100 +0200 @@ -1,4 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ +/* { dg-require-effective-target amx_int8 } */ /* { dg-options "-O2 -mamx-tile -mamx-int8" } */ #include --- gcc/testsuite/gcc.target/i386/amxint8-dpbuud-2.c.jj 2020-09-29 11:32:02.950602758 +0200 +++ gcc/testsuite/gcc.target/i386/amxint8-dpbuud-2.c 2020-09-30 13:16:35.770047224 +0200 @@ -1,4 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ +/* { dg-require-effective-target amx_int8 } */ /* { dg-options "-O2 -mamx-tile -mamx-int8" } */ #include --- gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c.jj 2020-09-29 11:32:02.949602773 +0200 +++ gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c 2020-09-30 13:15:41.079837637 +0200 @@ -1,4 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ +/* { dg-require-effective-target amx_bf16 } */ /* { dg-options "-O2 -mamx-tile -mamx-bf16" } */ #include --- gcc/testsuite/gcc.target/i386/amxtile-2.c.jj 2020-09-29 11:32:02.950602758 +0200 +++ gcc/testsuite/gcc.target/i386/amxtile-2.c 2020-09-30 13:16:57.972726339 +0200 @@ -1,4 +1,5 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ /* { dg-options "-O2 -mamx-tile " } */ #include Jakub