From patchwork Fri Jan 18 00:40:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 1027060 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-494269-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=marvell.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="h/3EWRHN"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=marvell.com header.i=@marvell.com header.b="Vu047WGN"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=marvell.onmicrosoft.com header.i=@marvell.onmicrosoft.com header.b="cpUcHn+d"; dkim-atps=neutral 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 43ghtk194Nz9sCh for ; Fri, 18 Jan 2019 11:40:28 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:content-type:mime-version; q=dns; s=default; b=FL2gQL4JtNLVyvdj2PqFm359XMBXpN+C+wERKxgU8PR1tFjxTj PutvefsFUjvjrCnC/L0PywF4QARD6s5nNQ2juOYi8zKok3rV2jvyMGYSV80wgvLE nj0wURgtg5F1Tw24SAUG29eYaNYzOo7skQ63V7hp3a/jEz+d665OuowRs= 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:from :to:cc:subject:date:message-id:content-type:mime-version; s= default; bh=oAvdfJsofgBYAkqdwPcnlmZvvG0=; b=h/3EWRHNvmN/4wKiSlnN s5TAlvmVVCh4ri15lpJ3eaoa9toTP94dtt0xEWerjmojfjtPlrQsi46ybfPYedup cOl8TJPS3fumTeUESwZ/PQZ1t8oS6nrMszYODnjO+pnV0jMjI2xynOqf+Lta19aX 89GANmkuuAkMlfMc14xBBR8= Received: (qmail 33476 invoked by alias); 18 Jan 2019 00:40:21 -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 33456 invoked by uid 89); 18 Jan 2019 00:40:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=PURE, H*c:HHH X-HELO: mx0b-0016f401.pphosted.com Received: from mx0b-0016f401.pphosted.com (HELO mx0b-0016f401.pphosted.com) (67.231.156.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Jan 2019 00:40:18 +0000 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0I0ZCGS018119; Thu, 17 Jan 2019 16:40:16 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : content-type : mime-version; s=pfpt0818; bh=bh2nUW+oeEnvgLd+eyK3wX63Di3b9fwh4BQaKn6b0Nc=; b=Vu047WGNK/Fyz513KhjhcjFAzqw5NAy2/VSuxU81JFb0hT/tytp95YEBhdCLc4wyLP8T SNshrJ7LYe8Zx2LgL9VLDTPlJVlUHVQvm+e22bE3thVXiRC/Kx6gpXqw3BNRs6kg/vZk WUF+6sJxhTLYpDh6pbyuBZCp+k02L99z8mII3OfN/iSz6kdnGELOwWAO7wG/t2y1pS9q KJxy7I6cgtJgJ7ilqNYGakKkW/QFfomuIjjmvKhlTWCOpNEXhp2SllT44vGS6QwAJNhr GpeVuijY+cQpDIKWpeZYE4dKsRHRJL2wbiUAq2lCg7PP4j1FZPF4CONz8Sjn4hhq3JGy Uw== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2q2vuba4v5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 17 Jan 2019 16:40:16 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 17 Jan 2019 16:40:14 -0800 Received: from NAM05-DM3-obe.outbound.protection.outlook.com (104.47.49.54) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 17 Jan 2019 16:40:14 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bh2nUW+oeEnvgLd+eyK3wX63Di3b9fwh4BQaKn6b0Nc=; b=cpUcHn+d+ejQa0V6OAAKh/osI9ZsG8kujI81jKjlUlEZ39FGptjM/Pj7peXyRdBwHRvwVZZjyKCIly+56RGI6TXrg/r3/tJLFEg3q6xIVTAefXzkprCZ6/4K3drpXke1BAboGSROqHCoIRQeOK6TlsS9dwZ+ut1Zbh/6nl7/2iM= Received: from BN6PR1801MB2033.namprd18.prod.outlook.com (10.161.156.162) by BN6PR1801MB1907.namprd18.prod.outlook.com (10.161.156.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1516.18; Fri, 18 Jan 2019 00:40:09 +0000 Received: from BN6PR1801MB2033.namprd18.prod.outlook.com ([fe80::927:7ff8:1493:3882]) by BN6PR1801MB2033.namprd18.prod.outlook.com ([fe80::927:7ff8:1493:3882%4]) with mapi id 15.20.1537.028; Fri, 18 Jan 2019 00:40:09 +0000 From: Steve Ellcey To: "gcc-patches@gcc.gnu.org" CC: "kargl@gcc.gnu.org" , "ams@gcc.gnu.org" Subject: [PATCH] PR fortran/88898 - fix tests to check for warnings on aarch64 only Date: Fri, 18 Jan 2019 00:40:09 +0000 Message-ID: received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) MIME-Version: 1.0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901180003 I am going to check this patch in as obvious. My earlier patch for Aarch64 SIMD support added some warning tests to three Fortran gomp tests as they were needed for aarch64. Unfortunately, I forgot to add '{ target aarch64-*-* }' to the warning checks so the tests failed on x86 where the warning is not generated. The fix is just to add the target check to the new warnings I added earlier today. Sorry for the noise. Steve Ellcey sellcey@marvell.com 2018-01-17 Steve Ellcey PR fortran/88898 * gfortran.dg/gomp/declare-simd-2.f90: Add aarch64 target specifier to warning checks. * gfortran.dg/gomp/pr79154-1.f90: Ditto. * gfortran.dg/gomp/pr83977.f90: Ditto. diff --git a/gcc/testsuite/gfortran.dg/gomp/declare-simd-2.f90 b/gcc/testsuite/gfortran.dg/gomp/declare-simd-2.f90 index fd4e119744d..5852122a7de 100644 --- a/gcc/testsuite/gfortran.dg/gomp/declare-simd-2.f90 +++ b/gcc/testsuite/gfortran.dg/gomp/declare-simd-2.f90 @@ -1,6 +1,6 @@ ! { dg-do compile } -function f1 (a, b, c, d, e, f) ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" } +function f1 (a, b, c, d, e, f) ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64-*-* } } integer, value :: a, b, c integer :: d, e, f, f1 !$omp declare simd (f1) uniform(b) linear(c, d) linear(uval(e)) linear(ref(f)) @@ -12,7 +12,7 @@ function f1 (a, b, c, d, e, f) ! { dg-warning "GCC does not currently support mi f = f + 1 f1 = a + b + c + d + e + f end function f1 -integer function f2 (a, b) ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" } +integer function f2 (a, b) ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64-*-* } } integer :: a, b !$omp declare simd uniform(b) linear(ref(a):b) a = a + 1 diff --git a/gcc/testsuite/gfortran.dg/gomp/pr79154-1.f90 b/gcc/testsuite/gfortran.dg/gomp/pr79154-1.f90 index 953dcadd786..29a570a990f 100644 --- a/gcc/testsuite/gfortran.dg/gomp/pr79154-1.f90 +++ b/gcc/testsuite/gfortran.dg/gomp/pr79154-1.f90 @@ -1,7 +1,7 @@ ! PR fortran/79154 ! { dg-do compile } -pure real function foo (a, b) ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" } +pure real function foo (a, b) ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64-*-* } } !$omp declare simd(foo) ! { dg-bogus "may not appear in PURE or ELEMENTAL" } real, intent(in) :: a, b foo = a + b @@ -20,7 +20,7 @@ pure real function baz (a, b) real, intent(in) :: a, b baz = a + b end function baz -elemental real function fooe (a, b) ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" } +elemental real function fooe (a, b) ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64-*-* } } !$omp declare simd(fooe) ! { dg-bogus "may not appear in PURE or ELEMENTAL" } real, intent(in) :: a, b fooe = a + b diff --git a/gcc/testsuite/gfortran.dg/gomp/pr83977.f90 b/gcc/testsuite/gfortran.dg/gomp/pr83977.f90 index 6dfdbc32c2d..35fe2cc5edc 100644 --- a/gcc/testsuite/gfortran.dg/gomp/pr83977.f90 +++ b/gcc/testsuite/gfortran.dg/gomp/pr83977.f90 @@ -1,7 +1,7 @@ ! PR middle-end/83977 ! { dg-do compile } -integer function foo (a, b) ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" } +integer function foo (a, b) ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64-*-* } } integer :: a, b !$omp declare simd uniform(b) linear(ref(a):b) a = a + 1