From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 1A459385841F for ; Tue, 18 Jul 2023 06:37:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1A459385841F 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 (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36I6CMGl000855 for ; Tue, 18 Jul 2023 06:37:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=G/KOrNGUz3jp4wNTi5aqMMUHqTVLGYVHEybdWqsgQww=; b=LhLWDZ9ekCbO6rMw89k279UOlS4M/eyjyK5RaXGrCQ4S7bH6dxn0xBm7SPKVPc+pLawD 79Luono245HkaYLDiNlvXjMvg+CiXXtXdavfjH0hMiKCJhz3QTP65zYv/7aUM0CxIFBH GEFc1sG6I7gi2Dx7BQTKHe2qaBKcUgFK7dgqEJd5sKpUK0aoTAp6O2sMhCE0+pojHRWg UcKjh2hzOq67hGaGS7ekIvlgjNPlNvoEO6KhgYFU/Rd3xExK+c9FYJ2W6jjNXJ/MBTnu HQ544vUCM2AFllTZ6RG9Jfb3rQwCiS1s/DwqZIMtq0EYr9TAvza+q+o3WIRon7dORvjC +Q== Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rwn8tgsdc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Jul 2023 06:37:07 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36HMoEM3003362 for ; Tue, 18 Jul 2023 06:37:05 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3rv65xcbma-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Jul 2023 06:37:05 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36I6b2OC45351436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jul 2023 06:37:02 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 66ABE2004B; Tue, 18 Jul 2023 06:37:02 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 36B5A20043; Tue, 18 Jul 2023 06:37:02 +0000 (GMT) Received: from [9.171.14.110] (unknown [9.171.14.110]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 18 Jul 2023 06:37:02 +0000 (GMT) Message-ID: Date: Tue, 18 Jul 2023 08:37:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] s390: Optimize vec_cmpge followed by vec_sel To: Juergen Christ , gcc-patches@gcc.gnu.org References: <20230717150957.23119-1-jchrist@linux.ibm.com> Content-Language: en-US From: Andreas Krebbel In-Reply-To: <20230717150957.23119-1-jchrist@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: Pz5uYWJMwcjjFqssSDYR85rHN2tMS0s2 X-Proofpoint-ORIG-GUID: Pz5uYWJMwcjjFqssSDYR85rHN2tMS0s2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-17_15,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 suspectscore=0 mlxlogscore=991 impostorscore=0 adultscore=0 phishscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307180059 X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,KAM_SHORT,NICE_REPLY_A,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: On 7/17/23 17:09, Juergen Christ wrote: > A vec_cmpge produces a negation. Replace this negation by swapping the two > selection choices of a vec_sel based on the result of the vec_cmpge. > > Bootstrapped and regression tested on s390x. > > gcc/ChangeLog: > > * config/s390/vx-builtins.md: New vsel pattern. > > gcc/testsuite/ChangeLog: > > * gcc.target/s390/vector/vec-cmpge.c: New test. > > Signed-off-by: Juergen Christ Committed to mainline. Thanks! Bye, Andreas