From patchwork Tue Nov 14 15:19:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schulze Frielinghaus X-Patchwork-Id: 164990 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:a59:b0:164:83eb:24d7 with SMTP id 25csp1995434rwb; Tue, 14 Nov 2023 07:20:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFa8kzTPAGvn+IF0UTHqr9W0A43c9Cw78H/N7DyRQ749qL2L4lZJgVhjnrmrFoOB1NPH3Vx X-Received: by 2002:ac8:5705:0:b0:41e:1dff:bed5 with SMTP id 5-20020ac85705000000b0041e1dffbed5mr2808715qtw.37.1699975256623; Tue, 14 Nov 2023 07:20:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699975256; cv=pass; d=google.com; s=arc-20160816; b=yvtgw+raG4Armv1qNh45SCPhCOQC9Z02H81I/pBgom5kCY1IBHWKlYAhDR1J/mCliF FjKLBS555n1JlPP0/Dky8SafaUZk29faWsIWciVszMdQ4+koo5QEemf8CpnxHTFgZh8m G28j/RTbnU8J/s6J5F7LMI84bQmiNBTzT62FDQT6YTfGHNXJ/LRdIXmq3MoSYUBuz6K+ o2l66ynOU/G+7nMtwRX3CfnqZfLhJv5OGBQXUj6S0NYm/+0VAPFZM1WKl8hJ59liiXeY zB/4ZBPvEnASmUlQwK6p1XAVTBYwLN2CqlIkqRBEoDVPltwV8wUaThOMvUlWjvGSVVjA mjtg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=58eZxUksb7Aj1buiSKOvctOcHdMtrKUx2FXOW+Upfko=; fh=b8RxUuxE+TBDYdILUFGNEkIOKUNToWSD6tzeM8szxsA=; b=w8cc/2QH1vq03Zl0IxEfE9sudE3cqNq9odzDeIGtfh2ECutfA+SBLtGoKRLt2UYsCG aVen162AbPekr97v1ZUsP62NmuekiQvb2KYxh0nWj6pb0au7BnNokKju6bGvZzyVtGGd n1wfnYWNK6pLc3IL71506cfhjvbE64j6TE1XlMoxhI2z9zgP93abwTG2P/ZfGjV2axUQ ZDEXBaYK5Dot9YEwKdtCNPnqSePB8chewJL1E0WZtkG/gmcHKs3XTZFDMuk8ax8emwjf xNKJfvN/dDMELO3CiuasjREXr05P13N/Ty5RRDyGODaleC2Y38TZS9YNEnLP2GipXGHT 92VA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=A4rEfAjh; arc=pass (i=1); 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u18-20020a05622a14d200b0041b30072e09si6425428qtx.392.2023.11.14.07.20.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 07:20:56 -0800 (PST) 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=@ibm.com header.s=pp1 header.b=A4rEfAjh; arc=pass (i=1); 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6102C3858418 for ; Tue, 14 Nov 2023 15:20:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 815653858D20 for ; Tue, 14 Nov 2023 15:20:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 815653858D20 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 815653858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699975231; cv=none; b=LUcBoW0icVlQKiZNy/ChHEGsl71xdgVVMgCcZhCL1mkOWIzbFb66OSn57op2FfE2g6qfsFGiybjMFfpWfxPq9tL1q8AumnyERf3WHv2ihwtXzRJ1lJIzC6NbWYAgAxjZWeMHu6V6BV7T6p4SfZkvbAUpsh5/3SOeFXuIinZ08qo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699975231; c=relaxed/simple; bh=yyraA5/Nej/kANenbZaeVoq1b1/xIBPwp78nFE/IneY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=n+XqeYtKRWUoYS/HtZCQvMB3lKuJLZUKkbmkH8Phxs6FLGI1TOPzpDTTns0GJO7LhSnS20IDmYt+iWTmWV9ViBltZ7zrVDiGCn3dRJGmPiGfbsJ272sTKADTwCNKQuRFq8tzAsHOIIBkSOqdAdp8I8fFnSONeejl46ahnU6kTbY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AEFGvuL027052 for ; Tue, 14 Nov 2023 15:20:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=58eZxUksb7Aj1buiSKOvctOcHdMtrKUx2FXOW+Upfko=; b=A4rEfAjh9Dd2Q23WNgsmnkPTnytKhum6WWJtXZcfZiJyFP+LYTM4Y9NpWslGvaahK2Ub ih6rkXny/U8cCfiDWoYsoE8DNQmNTnKIuJAJWxW0Suo2ReIezFOg5zk1j597ETDWgjrv fM20UN3sRN9IkO0ZACKRcIKWyJPM8oQRIgS9W/5OBxlPHV8+SDB2OOQpp2GgXQaf8ehc EGMcCpaHScVy3/wP7Lv25ZRbzqJnHTJmPFY4QhlCp9UuwjVrLjvCyfBttdnyokIfD/7r EMJ0fOS8XBr6ElQbtOzjDLJIC6GDu/ckkQ0hYPg4RRfwbg15ASHyiz2ZQUdTnr7mMrf5 1w== Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ucbd284th-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 14 Nov 2023 15:20:28 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3AEE4TUb011022 for ; Tue, 14 Nov 2023 15:20:27 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3uapn1g5vm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 14 Nov 2023 15:20:27 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3AEFKOBL10289862 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Nov 2023 15:20:24 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B8EDF2004B; Tue, 14 Nov 2023 15:20:24 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9A78D2004E; Tue, 14 Nov 2023 15:20:24 +0000 (GMT) Received: from a8345010.lnxne.boe (unknown [9.152.108.100]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTPS; Tue, 14 Nov 2023 15:20:24 +0000 (GMT) From: Stefan Schulze Frielinghaus To: krebbel@linux.ibm.com, gcc-patches@gcc.gnu.org Cc: Stefan Schulze Frielinghaus Subject: [PATCH] s390: Fix builtins floating-point convert to/from fixed Date: Tue, 14 Nov 2023 16:19:59 +0100 Message-ID: <20231114151958.575444-2-stefansf@linux.ibm.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: UhsxeWCozINe4_uAK8IbhOftEebuJfC6 X-Proofpoint-ORIG-GUID: UhsxeWCozINe4_uAK8IbhOftEebuJfC6 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-14_14,2023-11-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 malwarescore=0 adultscore=0 spamscore=0 priorityscore=1501 impostorscore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 mlxlogscore=830 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311140118 X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782553255105551504 X-GMAIL-MSGID: 1782553255105551504 Remove flags for non-existing operands 2 and 3. Bootstrapped on s390. Ok for mainline? gcc/ChangeLog: * config/s390/s390-builtins.def (s390_vcefb,s390_vcdgb,s390_vcelfb,s390_vcdlgb,s390_vcfeb,s390_vcgdb, s390_vclfeb,s390_vclgdb): Remove flags for non-existing operands 2 and 3. --- gcc/config/s390/s390-builtins.def | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/config/s390/s390-builtins.def b/gcc/config/s390/s390-builtins.def index 964d86c74a0..5bcf0d16ba3 100644 --- a/gcc/config/s390/s390-builtins.def +++ b/gcc/config/s390/s390-builtins.def @@ -2840,10 +2840,10 @@ OB_DEF (s390_vec_double, s390_vec_double_s64,s390_vec_double_u64, OB_DEF_VAR (s390_vec_double_s64, s390_vcdgb, 0, 0, BT_OV_V2DF_V2DI) OB_DEF_VAR (s390_vec_double_u64, s390_vcdlgb, 0, 0, BT_OV_V2DF_UV2DI) -B_DEF (s390_vcefb, floatv4siv4sf2, 0, B_VXE2, O2_U4 | O3_U3, BT_FN_V4SF_V4SI) -B_DEF (s390_vcdgb, floatv2div2df2, 0, B_VX, O2_U4 | O3_U3, BT_FN_V2DF_V2DI) -B_DEF (s390_vcelfb, floatunsv4siv4sf2, 0, B_VXE2, O2_U4 | O3_U3, BT_FN_V4SF_UV4SI) -B_DEF (s390_vcdlgb, floatunsv2div2df2, 0, B_VX, O2_U4 | O3_U3, BT_FN_V2DF_UV2DI) +B_DEF (s390_vcefb, floatv4siv4sf2, 0, B_VXE2, 0, BT_FN_V4SF_V4SI) +B_DEF (s390_vcdgb, floatv2div2df2, 0, B_VX, 0, BT_FN_V2DF_V2DI) +B_DEF (s390_vcelfb, floatunsv4siv4sf2, 0, B_VXE2, 0, BT_FN_V4SF_UV4SI) +B_DEF (s390_vcdlgb, floatunsv2div2df2, 0, B_VX, 0, BT_FN_V2DF_UV2DI) OB_DEF (s390_vec_signed, s390_vec_signed_flt,s390_vec_signed_dbl,B_VX, BT_FN_OV4SI_OV4SI) OB_DEF_VAR (s390_vec_signed_flt, s390_vcfeb, B_VXE2, 0, BT_OV_V4SI_V4SF) @@ -2853,10 +2853,10 @@ OB_DEF (s390_vec_unsigned, s390_vec_unsigned_flt,s390_vec_unsigned_ OB_DEF_VAR (s390_vec_unsigned_flt, s390_vclfeb, B_VXE2, 0, BT_OV_UV4SI_V4SF) OB_DEF_VAR (s390_vec_unsigned_dbl, s390_vclgdb, 0, 0, BT_OV_UV2DI_V2DF) -B_DEF (s390_vcfeb, fix_truncv4sfv4si2, 0, B_VXE2, O2_U4 | O3_U3, BT_FN_V4SI_V4SF) -B_DEF (s390_vcgdb, fix_truncv2dfv2di2, 0, B_VX, O2_U4 | O3_U3, BT_FN_V2DI_V2DF) -B_DEF (s390_vclfeb, fixuns_truncv4sfv4si2, 0, B_VXE2, O2_U4 | O3_U3, BT_FN_UV4SI_V4SF) -B_DEF (s390_vclgdb, fixuns_truncv2dfv2di2, 0, B_VX, O2_U4 | O3_U3, BT_FN_UV2DI_V2DF) +B_DEF (s390_vcfeb, fix_truncv4sfv4si2, 0, B_VXE2, 0, BT_FN_V4SI_V4SF) +B_DEF (s390_vcgdb, fix_truncv2dfv2di2, 0, B_VX, 0, BT_FN_V2DI_V2DF) +B_DEF (s390_vclfeb, fixuns_truncv4sfv4si2, 0, B_VXE2, 0, BT_FN_UV4SI_V4SF) +B_DEF (s390_vclgdb, fixuns_truncv2dfv2di2, 0, B_VX, 0, BT_FN_UV2DI_V2DF) B_DEF (s390_vfisb, vec_fpintv4sf, 0, B_VXE, O2_U4 | O3_U3, BT_FN_V4SF_V4SF_UCHAR_UCHAR) B_DEF (s390_vfidb, vec_fpintv2df, 0, B_VX, O2_U4 | O3_U3, BT_FN_V2DF_V2DF_UCHAR_UCHAR)