From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id C5C6E3858D28 for ; Wed, 28 Sep 2022 05:35:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C5C6E3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28S4mKTQ030710; Wed, 28 Sep 2022 05:35:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=zNeGlgfWLpQG2fWLPz0iT6HQBMmoNWaHVAUYZWp+dzY=; b=Bm389yIIno3p5CIobd2Yky2RiqQW+uSJI8cg5+1fhOmY13Cd5SbYLf/5golbRZrY9Cvm QsG5CRhPtSaEozloIFSqL0TpnYzsXAxXEbB5TcK60ipcp9MZ02oG37fzZYb1DQ3PWZEw mYr7fmtxw8sudie78LaQGTL7X/PPU5EUBUstzTH1qYloX+xqztcLrDhbb8Pxt46RM21d JeP09W+VQsfg19UZenlELJKLoe3IUmjjHfp+1j4BrSr02xlIJ22VYW+kuqa1jpTqzkxE u6gbeBzmtkANngIBaSyvAGTqibwZ1U3IrmHDZhOuISHy1IniQ7b1Ly+Shtfw2YdzPw8z LA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3jv6wjdjxd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Sep 2022 05:35:17 +0000 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 28S5M3mw023636; Wed, 28 Sep 2022 05:35:16 GMT Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3jv6wjdjwf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Sep 2022 05:35:16 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 28S5L0YA031341; Wed, 28 Sep 2022 05:35:14 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma02fra.de.ibm.com with ESMTP id 3jssh93jh8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Sep 2022 05:35:14 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 28S5Uv1T49217806 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Sep 2022 05:30:57 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2B07B42045; Wed, 28 Sep 2022 05:35:12 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6F8644203F; Wed, 28 Sep 2022 05:35:10 +0000 (GMT) Received: from [9.197.236.18] (unknown [9.197.236.18]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 28 Sep 2022 05:35:10 +0000 (GMT) Message-ID: <0e36ed14-36c7-1a60-7d2a-40d50eb9243d@linux.ibm.com> Date: Wed, 28 Sep 2022 13:35:09 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: PING^1 [PATCH] rs6000/test: Adjust pr104992.c with vect_int_mod [PR106516] Content-Language: en-US To: GCC Patches Cc: Richard Sandiford , David Edelsohn , Segher Boessenkool , Richard Biener References: <1fb4035e-a15e-5031-3b2f-9ba5dfcb1786@linux.ibm.com> From: "Kewen.Lin" In-Reply-To: <1fb4035e-a15e-5031-3b2f-9ba5dfcb1786@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 1PbVW8vRo2Elo5hz1nOvYVVhVWU72b_2 X-Proofpoint-ORIG-GUID: hh9erpxnms42iEhep44mFzoz2Hf8zC4R Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-28_02,2022-09-27_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 suspectscore=0 clxscore=1011 bulkscore=0 mlxscore=0 phishscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209280032 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,GIT_PATCH_0,KAM_SHORT,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 List-Id: Hi, I assumed the generic part introducing check_effective_target_vect_int_mod needs the approval from global maintainers. So gentle ping https://gcc.gnu.org/pipermail/gcc-patches/2022-August/600191.html BR, Kewen on 2022/8/24 16:17, Kewen.Lin via Gcc-patches wrote: > Hi, > > As PR106516 shows, we can get unexpected gimple outputs for > function thud on some target which supports modulus operation > for vector int. This patch introduces one effective target > vect_int_mod for it, then adjusts the test case with it. > > Tested on x86_64-redhat-linux and powerpc64{,le}-linux-gnu, > especially powerpc64le Power10. > > Is it ok for trunk? > > BR, > Kewen > ----- > PR testsuite/106516 > > gcc/testsuite/ChangeLog: > > * gcc.dg/pr104992.c: Adjust with vect_int_mod. > * lib/target-supports.exp (check_effective_target_vect_int_mod): New > proc for effective target vect_int_mod. > --- > gcc/testsuite/gcc.dg/pr104992.c | 3 ++- > gcc/testsuite/lib/target-supports.exp | 8 ++++++++ > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/gcc/testsuite/gcc.dg/pr104992.c b/gcc/testsuite/gcc.dg/pr104992.c > index 217c89a458c..82f8c75559c 100644 > --- a/gcc/testsuite/gcc.dg/pr104992.c > +++ b/gcc/testsuite/gcc.dg/pr104992.c > @@ -54,4 +54,5 @@ __attribute__((noipa)) unsigned waldo (unsigned x, unsigned y, unsigned z) { > return x / y * z == x; > } > > -/* { dg-final {scan-tree-dump-times " % " 9 "optimized" } } */ > +/* { dg-final { scan-tree-dump-times " % " 9 "optimized" { target { ! vect_int_mod } } } } */ > +/* { dg-final { scan-tree-dump-times " % " 6 "optimized" { target vect_int_mod } } } */ > diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp > index 04a2a8e8659..a4bdd23bed0 100644 > --- a/gcc/testsuite/lib/target-supports.exp > +++ b/gcc/testsuite/lib/target-supports.exp > @@ -8239,6 +8239,14 @@ proc check_effective_target_vect_long_mult { } { > return $answer > } > > +# Return 1 if the target supports vector int modulus, 0 otherwise. > + > +proc check_effective_target_vect_int_mod { } { > + return [check_cached_effective_target_indexed vect_int_mod { > + expr { [istarget powerpc*-*-*] > + && [check_effective_target_power10_ok] }}] > +} > + > # Return 1 if the target supports vector even/odd elements extraction, 0 otherwise. > > proc check_effective_target_vect_extract_even_odd { } { > -- > 2.27.0