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 ADF10385773A for ; Thu, 9 Nov 2023 08:27:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ADF10385773A 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 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org ADF10385773A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699518446; cv=none; b=oMrnEL1AGAWUJuHnW7a/B1RZzE2UN5f/pTuKccDbCLiOKaSi36TXRf8AQVuXNZPC5mJCx8khhqopo1hh7U/kPvCk0WnKtWe6FtvL3Imaesx1smDG4GFiK7HsV0k5WAyGR5Wcy6XGrKE0/LBBdK/UOa7XsnMq71q+/fgZ7iMwN08= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699518446; c=relaxed/simple; bh=mHyTmj+pyZcf9Mp4QmrMGPbmvNsqFgd8v5WxbvMQAgQ=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=vtI4loPvESr26b99QfukF8yFfjFfNeZoT5QXWBmE7ftq/vqzYUkn285lgQg6Yi58aaSaVZ1eUWuy/iF8LxBmGk48ZIYn+DVTRw/EMoLutP9LlMuonWCfGmJ6QbprNTuNV/AO9zA7hW2eLHQPkjt5eQ8NyXBeUWcFSu+eU0oXBm4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A97m1wY000438 for ; Thu, 9 Nov 2023 08:27:23 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=a3ZcS6GkAJ/A2vdDTBxFgtF83OwMHek54ab0k86xsMA=; b=tktcn1cyVD6OWTYWFEHXLKjDxd7Mt63qRZG4gfrrprYvnSTC622RwYPYkJp5JzYZc4xv nK2kyVKtYcb9QRMxt1qGHU84JJ/3NxT8YTkZeQ3M+GJgCasCPhzn1IoEG3BFYWe733ea pRqZueJKCYVr/vadtIObEBQsJTgEwhC2vFo5hnUQBNDqZ3fJy0R1AbbwSLOR1jZAq3U9 SS0Zt1OuF6RBpNLfB+06yJWsuIUFdNP+1BrwhB18KLjfHbazxFWzScXDacsM5ci/IOuK RC/WhyxR59KhtbPlFi7j49MxCNqC2sNDdngTt+AWcfgEAWHUUbDifoeFGSqOVzOKuEt4 4w== 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 3u8ubj1dwr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 09 Nov 2023 08:27:23 +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 3A987gwv028299 for ; Thu, 9 Nov 2023 08:27:22 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3u7w22jk7m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 09 Nov 2023 08:27:22 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3A98RJr044892630 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 9 Nov 2023 08:27:19 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 32B2E20043; Thu, 9 Nov 2023 08:27:19 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1A5A820040; Thu, 9 Nov 2023 08:27:19 +0000 (GMT) Received: from [9.152.224.246] (unknown [9.152.224.246]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 9 Nov 2023 08:27:19 +0000 (GMT) Message-ID: <31069b16-1e2e-721a-d979-1d2627bf1254@linux.ibm.com> Date: Thu, 9 Nov 2023 09:27:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 1/3] s390: Recognize further vpdi and vmr{l,h} pattern To: Stefan Schulze Frielinghaus , gcc-patches@gcc.gnu.org References: <20231109082211.2505-1-stefansf@linux.ibm.com> Content-Language: en-US From: Andreas Krebbel In-Reply-To: <20231109082211.2505-1-stefansf@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: EaZk9U3wLqB6_kB6IggUk8_6M7Pu6y9v X-Proofpoint-GUID: EaZk9U3wLqB6_kB6IggUk8_6M7Pu6y9v X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-09_07,2023-11-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 adultscore=0 bulkscore=0 priorityscore=1501 suspectscore=0 malwarescore=0 clxscore=1015 mlxscore=0 mlxlogscore=626 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311090068 X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H4,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 11/9/23 09:22, Stefan Schulze Frielinghaus wrote: > Deal with cases where vpdi and vmr{l,h} are still applicable if the > operands of those instructions are swapped. For example, currently for > > V2DI foo (V2DI x) > { > return (V2DI) {x[1], x[0]}; > } > > the assembler sequence > > vlgvg %r1,%v24,1 > vzero %v0 > vlvgg %v0,%r1,0 > vmrhg %v24,%v0,%v24 > > is emitted. With this patch a single vpdi is emitted. > > Extensive tests are included in a subsequent patch of this series where > more cases are covered. > > Bootstrapped and regtested on s390. Ok for mainline? > > gcc/ChangeLog: > > * config/s390/s390.cc (expand_perm_with_merge): Deal with cases > where vmr{l,h} are still applicable if the operands are swapped. > (expand_perm_with_vpdi): Likewise for vpdi. Ok, Thanks! Andreas