From patchwork Tue Nov 14 11:44:55 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: 164871 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1800678vqg; Tue, 14 Nov 2023 03:46:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEX1QPc8yzt+rylZFFKM2SVN8Z7lK71O+ejb39KV8tDjkwXDGJkCEYDyPaqN1Xqq+mOw/5Z X-Received: by 2002:a05:6214:508f:b0:66f:baa4:77b0 with SMTP id kk15-20020a056214508f00b0066fbaa477b0mr2331465qvb.8.1699962405514; Tue, 14 Nov 2023 03:46:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699962405; cv=pass; d=google.com; s=arc-20160816; b=h8v+4vLJUeWQrJuGG55fe8NxiiwdJnHplDx8RGCOox47ugmycVi4a3T/0TeOP8h+pI BsJKAh/nUNm/eq0v1FDUEj74J+UwFnZMmHgWb6BytE7aTn9n7g1hB4nvqi7apS026jXp JcpyMa7jq2I25LXldBw9wvWPTW3NbpN3LzBxgvpq/1Ih2wPBNsuLXHRq929WcquCa1SU A6cfq15D3i1j4l8n7gkxWjDRnC6z/hScf8SPKN/UFi21YgbfFJ4h04sMxSXFWHgPxnMd h+OkdczBGAlM7+L6/g46iDDQ31ex2cloTWowKCnLxbVbpbwsSp7aRmjcBOVFmNJSDAl7 fOgQ== 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=96ppneebefqDamfYdBchAshIuugR7AnMiQPIApnLoPA=; fh=b8RxUuxE+TBDYdILUFGNEkIOKUNToWSD6tzeM8szxsA=; b=Vmo/4Guj/Xv8Wq/SVKIuSTnxVYZLx49S/f42R6MLs0+jFj5clhuxZptqDwLmEdnQu/ EiyKzErUZ5GYgGoykc6Mjndlg394OQ7KAP7wX8sPtPmTJ8ihYBNzqvPS1O8CxmG0Tabk I+AAUbi/QxvqVhFnfyAFoPKqUgy4ICeB8rI5Cdwelj1TkEkBI8+E3FQ1uwKiiAkuuOKa DK/Le5US/azq/0a1OcMJn2l3exx4keBlSUyn31GGbTOHN9lfo2c3PrKLRf6DkhnmkJB0 x0Tb5RZnMbYHsbivae9RxxDYqcjGso6Qj+IV+Y+HmXm/98Pf69w9jd5PwEH/Mh9XYrZj 69ag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=XBqBcdSg; 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 v13-20020a05620a0f0d00b00778b0f5d4bfsi6906000qkl.145.2023.11.14.03.46.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 03:46:45 -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=XBqBcdSg; 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 47BEF3858CD1 for ; Tue, 14 Nov 2023 11:46:45 +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 6C65F3858CD1 for ; Tue, 14 Nov 2023 11:46:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6C65F3858CD1 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 6C65F3858CD1 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=1699962381; cv=none; b=NSHYtLLwDm9G0ywQmakhUBv87ktkQp+CzKJA+TyHG0tv7Xpj006dF0WZ2rXBHRmEOGrUuwIQiyvrFObAl5Y7jTaIZY2Bti+rtVRNkve2OlvvksX4RCvxLLpC7He0O79pUm8lCI5f8OFett7sH5I3w38fFZkWSdR7YsTdA3B3MiY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699962381; c=relaxed/simple; bh=OszbNA6Xel8lht5MDA4fyVB4VroNEvKNylZINevJmQ0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=nsyg36XB9U/HQ6nfIvccy0WZGI+DIG5XGQ1hbWkt8beozg5y5dgLmFGWsxKNH5RwtLBLiKy2vgu6gt/bPjHEYonwJTjrv5uwz+WHINZsSBS5f0+58MeXlTf+F11lkuLF4o5YVj5E65/CJqfjJv32AGA+tag5dJ8N+9npPb5bG7Q= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AEBdGMH012794 for ; Tue, 14 Nov 2023 11:46:20 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=96ppneebefqDamfYdBchAshIuugR7AnMiQPIApnLoPA=; b=XBqBcdSgRNr3DodVEqsI0CIsAQf/MpuTmUcba40k+kNvrztzhiNSlaZmmshfSA1w6Keo tnh3lJvq94vLa4Gyhl3NvvvsiQn11pAWJ7V6Hz//b+4Ch79EU0atJEfirXiduRMJWXuv o5rtBB/LnYaoec/iFRsJmaU76fZettWzbjz8grRhgX3R6I+4tnz1rsEeKbSeUFZIHHbi 6DZ5BuQ/Rea5+c+5MekqNfC27Gpa++iCr1eXIW1j/X0MtnR5Gd3Dkp6sVWlF3b71NooD +QvBMW6sv1NVYKjPoZJy2Cb2ZRuS+LTLEKF0e2A32Jx0Z+s7LUxCLwGq75AL4j5sacFu tg== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uc80g8fan-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 14 Nov 2023 11:46:19 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3AEBGosg014746 for ; Tue, 14 Nov 2023 11:46:19 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3uamxn7fss-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 14 Nov 2023 11:46:18 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3AEBkGbv8847872 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Nov 2023 11:46:16 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E21E020049; Tue, 14 Nov 2023 11:46:15 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CC47620040; Tue, 14 Nov 2023 11:46:15 +0000 (GMT) Received: from a8345010.lnxne.boe (unknown [9.152.108.100]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTPS; Tue, 14 Nov 2023 11:46:15 +0000 (GMT) From: Stefan Schulze Frielinghaus To: krebbel@linux.ibm.com, gcc-patches@gcc.gnu.org Cc: Stefan Schulze Frielinghaus Subject: [PATCH] s390: Fix vec_scatter_element for vectors of floats Date: Tue, 14 Nov 2023 12:44:55 +0100 Message-ID: <20231114114454.557933-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: SHnEJkmMBjrd1izAWWo5WZY7qLlap-Io X-Proofpoint-ORIG-GUID: SHnEJkmMBjrd1izAWWo5WZY7qLlap-Io 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_10,2023-11-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 clxscore=1015 bulkscore=0 adultscore=0 phishscore=0 mlxlogscore=596 suspectscore=0 priorityscore=1501 impostorscore=0 spamscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311140090 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: 1782539779512618922 X-GMAIL-MSGID: 1782539779512618922 The offset for vec_scatter_element of floats should be a vector of type UV4SI instead of V4SF. Note, this is an incompatibility change. Bootstrapped on s390. Ok for mainline? gcc/ChangeLog: * config/s390/s390-builtin-types.def: Add/remove types. * config/s390/s390-builtins.def (s390_vec_scatter_element_flt): The type for the offset should be UV4SI instead of V4SF. --- gcc/config/s390/s390-builtin-types.def | 2 +- gcc/config/s390/s390-builtins.def | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/s390/s390-builtin-types.def b/gcc/config/s390/s390-builtin-types.def index 3d8b30cdcc8..22ee348dbbb 100644 --- a/gcc/config/s390/s390-builtin-types.def +++ b/gcc/config/s390/s390-builtin-types.def @@ -856,7 +856,7 @@ DEF_OV_TYPE (BT_OV_VOID_V2DI_LONG_LONGLONGPTR, BT_VOID, BT_V2DI, BT_LONG, BT_LON DEF_OV_TYPE (BT_OV_VOID_V2DI_UV2DI_LONGLONGPTR_ULONGLONG, BT_VOID, BT_V2DI, BT_UV2DI, BT_LONGLONGPTR, BT_ULONGLONG) DEF_OV_TYPE (BT_OV_VOID_V4SF_FLTPTR_UINT, BT_VOID, BT_V4SF, BT_FLTPTR, BT_UINT) DEF_OV_TYPE (BT_OV_VOID_V4SF_LONG_FLTPTR, BT_VOID, BT_V4SF, BT_LONG, BT_FLTPTR) -DEF_OV_TYPE (BT_OV_VOID_V4SF_V4SF_FLTPTR_ULONGLONG, BT_VOID, BT_V4SF, BT_V4SF, BT_FLTPTR, BT_ULONGLONG) +DEF_OV_TYPE (BT_OV_VOID_V4SF_UV4SI_FLTPTR_ULONGLONG, BT_VOID, BT_V4SF, BT_UV4SI, BT_FLTPTR, BT_ULONGLONG) DEF_OV_TYPE (BT_OV_VOID_V4SI_INTPTR_UINT, BT_VOID, BT_V4SI, BT_INTPTR, BT_UINT) DEF_OV_TYPE (BT_OV_VOID_V4SI_LONG_INTPTR, BT_VOID, BT_V4SI, BT_LONG, BT_INTPTR) DEF_OV_TYPE (BT_OV_VOID_V4SI_UV4SI_INTPTR_ULONGLONG, BT_VOID, BT_V4SI, BT_UV4SI, BT_INTPTR, BT_ULONGLONG) diff --git a/gcc/config/s390/s390-builtins.def b/gcc/config/s390/s390-builtins.def index 964d86c74a0..b59fa09fe07 100644 --- a/gcc/config/s390/s390-builtins.def +++ b/gcc/config/s390/s390-builtins.def @@ -708,7 +708,7 @@ OB_DEF_VAR (s390_vec_scatter_element_u32,s390_vscef, 0, OB_DEF_VAR (s390_vec_scatter_element_s64,s390_vsceg, 0, O4_U1, BT_OV_VOID_V2DI_UV2DI_LONGLONGPTR_ULONGLONG) OB_DEF_VAR (s390_vec_scatter_element_b64,s390_vsceg, 0, O4_U1, BT_OV_VOID_BV2DI_UV2DI_ULONGLONGPTR_ULONGLONG) OB_DEF_VAR (s390_vec_scatter_element_u64,s390_vsceg, 0, O4_U1, BT_OV_VOID_UV2DI_UV2DI_ULONGLONGPTR_ULONGLONG) -OB_DEF_VAR (s390_vec_scatter_element_flt,s390_vscef, B_VXE, O4_U2, BT_OV_VOID_V4SF_V4SF_FLTPTR_ULONGLONG) +OB_DEF_VAR (s390_vec_scatter_element_flt,s390_vscef, B_VXE, O4_U2, BT_OV_VOID_V4SF_UV4SI_FLTPTR_ULONGLONG) OB_DEF_VAR (s390_vec_scatter_element_dbl,s390_vsceg, 0, O4_U1, BT_OV_VOID_V2DF_UV2DI_DBLPTR_ULONGLONG) B_DEF (s390_vscef, vec_scatter_elementv4si,0, B_VX, O4_U2, BT_FN_VOID_UV4SI_UV4SI_UINTPTR_ULONGLONG)