From patchwork Thu Oct 27 07:09:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kewen.Lin" X-Patchwork-Id: 11620 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp76840wru; Thu, 27 Oct 2022 00:11:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74e7o9hpRjIEIcMtu0JblpjUIob3lqJd4V+dOAvXVm4N3+bcLCLs301NFiE1O3Xr2rRITf X-Received: by 2002:a17:906:eeca:b0:730:6880:c397 with SMTP id wu10-20020a170906eeca00b007306880c397mr40446344ejb.593.1666854659897; Thu, 27 Oct 2022 00:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666854659; cv=none; d=google.com; s=arc-20160816; b=es4g2BcxYp3hSwnWfrPxNEo6WddVO0KIwZdbZHlOsJ2ieH7sO7iRvxdnjpV2MtkpYx Wr3cpjHh2nb8EGlMbZaSxgfqTpnZgMozvKpors8+e93dh9nVxO2MQiSakim0pOxtLlNo sb0taW+zv2jnYXMpOGDXIn0iB5WSsp5SBOKHjX4LTXJT1kUkjtcuAZt3oQsYmfXoVZSe xh9p4XI4qax0thWl7DtV2PHdAHdKsBSa66vhmcayzD9fPHSTXqI8NySx4qdYzmuupS2P inz6ByjlMfQVsgV9VM5GeIXT5XRj9ealbIsnnbQotRHuxrTXg6c9CcuzFUSdLxf2Kht+ oH2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:subject:to:content-language:user-agent :mime-version:date:message-id:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=62jw0J0Ik2/vTy446T9DQue9tRfUz50ydXVLQS/1NJI=; b=R+21481kvS/J3lrBl+Oovu6s2VPjrCekZsMzLQD3D6aEuvX+1tpdUVLZ54fLPY97Gj gyy3J8GeWlAkx3AN+76AH5uyAU3rjLKckeSeE7n464qjSp4lV2Yj1McRKlQpGGgKL6um NITA0MXE/EIwBGR6KEgsSUBprRz+rmtnT0HEkX5F6d6125lBrE0aLY5Sk2U+dQKY6UPB hWNPH/e0duqJ+JZ4YzC/W7CM21O0xC4SwFeqfpApXDG/V9ecXeVKttTM87lpwJBfo6Oi I+yx+X/6x9alxflV/vvKkF4xW9RjVBdS5wAxIOT+nAbNNwLfhRaRDi1Y5Blp4T1PshaH Qh3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=yBNof81N; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id op3-20020a170906bce300b00782393c36cfsi610884ejb.336.2022.10.27.00.10.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 00:10:59 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=yBNof81N; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E16A23886C4B for ; Thu, 27 Oct 2022 07:10:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E16A23886C4B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666854658; bh=62jw0J0Ik2/vTy446T9DQue9tRfUz50ydXVLQS/1NJI=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=yBNof81NwdpSz7bV7wGzU6KqIW6Yo/fKiVcK/ZiLQJeFeumXI6rvaPlgegKpq+pRL g4HTf2n/HW0Ro7KYzQcxwW5OxWXMptzizc8UMxuCqiXr5cMG81CaaiR471k7e6RjLc qacOZXx86MEIOWFRHqjsCdIjPPGPzIuQAY7AoqRY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 35B99382DE25 for ; Thu, 27 Oct 2022 07:10:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 35B99382DE25 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29R6wjux004289; Thu, 27 Oct 2022 07:10:10 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3kfn6r8g51-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Oct 2022 07:10:09 +0000 Received: from m0098404.ppops.net (m0098404.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 29R6wsgO005733; Thu, 27 Oct 2022 07:10:09 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3kfn6r8g2c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Oct 2022 07:10:09 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 29R74v2O014784; Thu, 27 Oct 2022 07:10:06 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma03ams.nl.ibm.com with ESMTP id 3kfahqh9wr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Oct 2022 07:10:06 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 29R7A3XV2491060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Oct 2022 07:10:03 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B786C42041; Thu, 27 Oct 2022 07:10:03 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9140E42049; Thu, 27 Oct 2022 07:10:01 +0000 (GMT) Received: from [9.197.244.25] (unknown [9.197.244.25]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 27 Oct 2022 07:10:01 +0000 (GMT) Message-ID: Date: Thu, 27 Oct 2022 15:09:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Content-Language: en-US To: GCC Patches Subject: [PATCH] testsuite: Adjust vect-bitfield-read-* with vect_shift and vect_long_long [PR107240] X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: kir-W8zOv0gzC-aM1Sj3Cy7F3fROb8l- X-Proofpoint-GUID: OygTFt9sGWj8GktUVfHNjp9T0QGIidNr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-27_03,2022-10-26_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 spamscore=0 mlxlogscore=999 priorityscore=1501 suspectscore=0 impostorscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2210270036 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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-Patchwork-Original-From: "Kewen.Lin via Gcc-patches" From: "Kewen.Lin" Reply-To: "Kewen.Lin" Cc: Richard Sandiford , Peter Bergner , Segher Boessenkool Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747823791952571611?= X-GMAIL-MSGID: =?utf-8?q?1747823791952571611?= Hi, The test cases vect-bitfield-read-* requires vector shift target support, they need one explicit vect_shift effective target requirement checking. Besides, the vectype for struct in test cases vect-bitfield-read-{2,4} is vector of long long, we need to check effective target vect_long_long for them. This patch can help to fix remaining vect-bitfield-* test failures on powerpc. Tested on powerpc64-linux-gnu P7 and P8, as well as powerpc64le-linux-gnu P9 and P10. Is it ok for trunk? BR, Kewen ----- PR testsuite/107240 gcc/testsuite/ChangeLog: * gcc.dg/vect/vect-bitfield-read-1.c: Add effective target checking vect_shift. * gcc.dg/vect/vect-bitfield-read-3.c: Likewise. * gcc.dg/vect/vect-bitfield-read-5.c: Likewise. * gcc.dg/vect/vect-bitfield-read-6.c: Likewise. * gcc.dg/vect/vect-bitfield-read-7.c: Likewise. * gcc.dg/vect/vect-bitfield-read-2.c: Add effective target checking vect_shift and replace vect_int with vect_long_long. * gcc.dg/vect/vect-bitfield-read-4.c: Likewise. --- gcc/testsuite/gcc.dg/vect/vect-bitfield-read-1.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bitfield-read-2.c | 3 ++- gcc/testsuite/gcc.dg/vect/vect-bitfield-read-3.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bitfield-read-4.c | 3 ++- gcc/testsuite/gcc.dg/vect/vect-bitfield-read-5.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bitfield-read-6.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bitfield-read-7.c | 1 + 7 files changed, 9 insertions(+), 2 deletions(-) -- 2.27.0 diff --git a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-1.c b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-1.c index 01cf34fb444..42e50d9f0c8 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-1.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target vect_int } */ +/* { dg-require-effective-target vect_shift } */ #include #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-2.c b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-2.c index 1a4a1579c14..a9aeefcd72c 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-2.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-2.c @@ -1,4 +1,5 @@ -/* { dg-require-effective-target vect_int } */ +/* { dg-require-effective-target vect_shift } */ +/* { dg-require-effective-target vect_long_long } */ #include #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-3.c b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-3.c index 849f4a017e1..c7d0fd26bad 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-3.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-3.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target vect_int } */ +/* { dg-require-effective-target vect_shift } */ #include #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-4.c b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-4.c index 5bc9c412e96..6a3ed8c0c6f 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-4.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-4.c @@ -1,4 +1,5 @@ -/* { dg-require-effective-target vect_int } */ +/* { dg-require-effective-target vect_shift } */ +/* { dg-require-effective-target vect_long_long } */ #include #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-5.c b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-5.c index 1dc24d3eded..b2889df8a0a 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-5.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-5.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target vect_int } */ +/* { dg-require-effective-target vect_shift } */ #include #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-6.c b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-6.c index 7d24c299758..2445f531be2 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-6.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-6.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target vect_int } */ +/* { dg-require-effective-target vect_shift } */ #include #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-7.c b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-7.c index 3b505db2bd3..4b1ec8a6dab 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-7.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bitfield-read-7.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target vect_int } */ +/* { dg-require-effective-target vect_shift } */ #include #include "tree-vect.h"