From patchwork Sat Apr 29 08:50:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 756696 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wFPYH2m3Fz9s3s for ; Sat, 29 Apr 2017 18:51:13 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Eya3GWLg"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=UrfRq6actAJlfEGe7PF5k5vM4y189+gi3g8J+0t84l9ZDQKN80 dVdMdFed9ga4Se2FCQUHdsp1M2s1ICaI8M1Hzw/7sNy48sVO/4Q75MaakEZwOuXN s921d8khDVkiRSacHggcATrH593L9wlYOOHF++lNeRTvGtf9eeJyGeLyI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=jd2BmH86Q5uSHAASixv7JZu7Ucc=; b=Eya3GWLgY7k++kD2JBAA 5kvOxfzOhhrtiwMaDYijlmwHA+JaEqLS96IA5HgaFohtPf3WT/qdrWkh06jk/SHM 5QbwtayKhPUpqdgitTV9ACVTppnd/N07nkpGEql7TxQo7URbPqagpSb0e7u77IXX WGv5AGMhIVv4jaknCiSvAy4= Received: (qmail 61242 invoked by alias); 29 Apr 2017 08:51:00 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 61219 invoked by uid 89); 29 Apr 2017 08:50:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 29 Apr 2017 08:50:57 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1d4O5g-0000qv-UC from Tom_deVries@mentor.com for gcc-patches@gcc.gnu.org; Sat, 29 Apr 2017 01:50:57 -0700 Received: from [127.0.0.1] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sat, 29 Apr 2017 09:50:53 +0100 To: GCC Patches From: Tom de Vries Subject: [testsuite, committed] Require effective target avx512f for tree-prof/pr66295.c Message-ID: <46f18f2c-2fa7-b685-6997-102e6e025ad8@mentor.com> Date: Sat, 29 Apr 2017 10:50:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Hi, tree-prof/pr66295.c fails for me with: ... /tmp/ccNQJq0U.s: Assembler messages: /tmp/ccNQJq0U.s:102: Error: no such instruction: `vpxord %zmm0,%zmm0,%zmm0' /tmp/ccNQJq0U.s:127: Error: no such instruction: `vpxord %zmm0,%zmm0,%zmm0' ... The test-case builds clones for the following architectures: ... __attribute__ ((target_clones("avx,avx2,avx512f,default"))); ... Following the logic in check_effective_target_vect_simd_clones: ... # On i?86/x86_64 #pragma omp declare simd builds a sse2, avx, # avx2 and avx512f clone. Only the right clone for the # specified arch will be chosen, but still we need to at least # be able to assemble avx512f. if { (([istarget i?86-*-*] || [istarget x86_64-*-*]) && [check_effective_target_avx512f]) } { set et_vect_simd_clones_saved($et_index) 1 } ... we fix the fail by adding a check for effective target avx512f. Tested on x86_64 with -m64/-m32. Committed as trivial. Thanks, - Tom Require effective target avx512f for tree-prof/pr66295.c 2017-04-29 Tom de Vries * gcc.dg/tree-prof/pr66295.c: Require effective target avx512f. --- gcc/testsuite/gcc.dg/tree-prof/pr66295.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/tree-prof/pr66295.c b/gcc/testsuite/gcc.dg/tree-prof/pr66295.c index d7d64c4..36a30ac 100644 --- a/gcc/testsuite/gcc.dg/tree-prof/pr66295.c +++ b/gcc/testsuite/gcc.dg/tree-prof/pr66295.c @@ -1,5 +1,6 @@ /* { dg-require-ifunc "" } */ /* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } } */ +/* { dg-require-effective-target avx512f } */ /* { dg-options "-O2" } */ static double bar (double *__restrict, double *__restrict, int)