Message ID | e6303ed9-5ba8-ac10-719c-9eb2a414d5f4@linux.ibm.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3455270wrd; Tue, 28 Feb 2023 21:56:52 -0800 (PST) X-Google-Smtp-Source: AK7set+u0WNSxpt2yTjcL9c4DvfP32WmsIG294mWKbzUEAJexndRiHf4jOjDL40JJRCInkDwoQaE X-Received: by 2002:a17:906:ca1:b0:8b1:7fa:6588 with SMTP id k1-20020a1709060ca100b008b107fa6588mr5348359ejh.12.1677650212134; Tue, 28 Feb 2023 21:56:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677650212; cv=none; d=google.com; s=arc-20160816; b=u5CEkhPkBClw6juTvaeYKoO/IkACpRPIQ+E/H+6tpiSTPU+8Mc2fzYwwNXekeqaRFB cnYVkx1CunD+XzSp9pydPbuij4msf83dniOBr13ykdc3LUASUKyU3rwu5bfowu/aEvhK 1Q00H6DpSD1o5zbdN32A2J3JtEMesOVtEVWWKOQIL2nZfcsd6N5GaLOM6lDCuagdh51A Cn7FPmsJAkNgNIkRWRxlLnaVcc++ZeA8X9eziRzOHqUHwYtZrkXU7UkIAR0SN63aj/SU T9CWbLQhzwAR821YV4fvojHjEUFH/wke/tCq63j1hcGH1hMlAJDMAsS8E3NhDSQenvnY 6wzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:subject:cc:to:content-language:user-agent :mime-version:date:message-id:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=11NdQA+4nY6DhA97fu2q9i/4SWcaqtTzk0XW5WZ9bWY=; b=MKdRUAN24mWSlVkj0ro2yUY9+xwI1yw+89TGXvSRqyary8p/IwFtf/WG45m2mlKC06 Y7pfqAIs2cw7OMO61QyqLLzD4R9rP79JXp1yQD/MNRsCk1aFlxZhoBlqeiuf6k19D5ko 8Xzx/hYWmGun3bTn123kfylUKlQRvgTkVqi8L3TCr/EIhIrJFUEasQq/B5yno+00vfmq Yl74P+N1Vk+rYBD2s3hXuyLsaTXoQmgQsL/FYPO5OGp8L3YZWxxxaFcikXDqknTog1xy JQehun+yAEBICd2nhvs96ePt2Z4+SnfJAX/YOIjjQF1wdXtNgo2lQEqS4Wl+djjLuJQM HFbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=NdEaLJoJ; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id k8-20020a17090632c800b008e7916f0d11si14210772ejk.774.2023.02.28.21.56.51 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 21:56:52 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=NdEaLJoJ; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 74A7C385842A for <ouuuleilei@gmail.com>; Wed, 1 Mar 2023 05:56:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74A7C385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677650210; bh=11NdQA+4nY6DhA97fu2q9i/4SWcaqtTzk0XW5WZ9bWY=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=NdEaLJoJOZK8820fx1rFRd6wQX6JlrxP1HLjzXjvsXyMzHxi15Ohm/jOSaYtW+uNt 0TarkrpJ/T8npiuAGWOoYyRmDIurHSroDVMpibkFvp9eTvQXGQgp6M34UXW8l1IqMp gwEHQSZ9k1t9EMeG1Eav8ngHVz1kz/DDL0ZdyGcc= 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 D1E4F3858C5E for <gcc-patches@gcc.gnu.org>; Wed, 1 Mar 2023 05:56:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D1E4F3858C5E Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3214sZbK020042; Wed, 1 Mar 2023 05:56:03 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3p203hh82a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Mar 2023 05:56:02 +0000 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3215qRnd027015; Wed, 1 Mar 2023 05:56:02 GMT Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3p203hh81w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Mar 2023 05:56:02 +0000 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 31SIMTjE017670; Wed, 1 Mar 2023 05:55:59 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma05fra.de.ibm.com (PPS) with ESMTPS id 3nybbyu0df-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Mar 2023 05:55:59 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3215tvjl66650424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Mar 2023 05:55:57 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 080442004D; Wed, 1 Mar 2023 05:55:57 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7E03A2004B; Wed, 1 Mar 2023 05:55:55 +0000 (GMT) Received: from [9.197.236.209] (unknown [9.197.236.209]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 1 Mar 2023 05:55:55 +0000 (GMT) Message-ID: <e6303ed9-5ba8-ac10-719c-9eb2a414d5f4@linux.ibm.com> Date: Wed, 1 Mar 2023 13:55:53 +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 <gcc-patches@gcc.gnu.org> Cc: Segher Boessenkool <segher@kernel.crashing.org>, David Edelsohn <dje.gcc@gmail.com>, Peter Bergner <bergner@linux.ibm.com> Subject: [PATCH] rs6000/test: Adjust fold-vec-extract-double.p9.c for BE [PR108810] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: DEPSY-QMX6Op7FgCmHdb8UuyrcnCuA1T X-Proofpoint-ORIG-GUID: _teFrK2Dsp-J765iNOxgf3QwXyaor5bC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-01_02,2023-02-28_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 adultscore=0 mlxlogscore=999 spamscore=0 mlxscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303010042 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: "Kewen.Lin via Gcc-patches" <gcc-patches@gcc.gnu.org> Reply-To: "Kewen.Lin" <linkw@linux.ibm.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759143748783191335?= X-GMAIL-MSGID: =?utf-8?q?1759143748783191335?= |
Series |
rs6000/test: Adjust fold-vec-extract-double.p9.c for BE [PR108810]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Kewen.Lin
March 1, 2023, 5:55 a.m. UTC
Hi, On BE, the extracted index for the leftmost element is 0 rather than 1, adjust the test case accordingly. Tested on powerpc64-linux-gnu P7/P8/P9 and powerpc64le-linux-gnu P9/P10. I'm going to push this soon if no objections. BR, Kewen ----- PR testsuite/108810 gcc/testsuite/ChangeLog: * gcc.target/powerpc/fold-vec-extract-double.p9.c (testd_cst): Adjust the extracted index for BE. --- .../gcc.target/powerpc/fold-vec-extract-double.p9.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.39.2
diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p9.c index 6c515035d1a..100f680fd02 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p9.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p9.c @@ -18,9 +18,15 @@ testd_var (vector double vd2, signed int si) return vec_extract (vd2, si); } +#ifdef __BIG_ENDIAN__ +#define LEFTMOST_ELEMENT_INDEX 0 +#else +#define LEFTMOST_ELEMENT_INDEX 1 +#endif + double testd_cst (vector double vd2) { - return vec_extract (vd2, 1); + return vec_extract (vd2, LEFTMOST_ELEMENT_INDEX); }