From patchwork Mon Oct 14 11:56:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jeevitha X-Patchwork-Id: 1996865 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=hIlxvieG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XRwhN16ptz1xvK for ; Mon, 14 Oct 2024 22:57:24 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5E9C5385780C for ; Mon, 14 Oct 2024 11:57:22 +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 70CC93858414 for ; Mon, 14 Oct 2024 11:56:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 70CC93858414 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 70CC93858414 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=1728907020; cv=none; b=OCAN77bAf6r+Ek/XdfSwK8jnfCHJD2wsF64x1EDS9roxewJWkkcgnDPnZjKM9y5kWjO33kJWJ8mELyweFQ6DV7OefWVZUOzwBO89mTpKpQP5DEbCVCAsM3itNQ1bay+HCF0eHnxy18HHImiFcgBxMFlxZJkAe1uhyOqp02LqaGE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728907020; c=relaxed/simple; bh=bkRggfYN91YT0Sd/cpwuyTDM35/334qLKi1RfhCw9Tg=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=oVZwxldnW85TIMg2lF8rx7nXb31jnCB1wQ9tvLLETHE+d+9hOVt167GllEvzx/hs80Lnd+JPbvujFrZFgmjQaF8IAxqtUG4rnVHY0vv6PobWzVm3THn4K33sYbaM2sIRrAEVeAFe6ClTQdosL0wOQ8Xd/wzHulHZh1ukxeqx+lA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49EBs7eW023905; Mon, 14 Oct 2024 11:56:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h= message-id:date:mime-version:to:from:subject:content-type :content-transfer-encoding; s=pp1; bh=DJCcGXuM3RRdQm/78+feMMn7x3 Zn2ftqRpbG/UV9Ej8=; b=hIlxvieGXPHddvgCyeiaLeRpQn5iWPFa44uFleXyH3 9DLOr8HS8vcwXSMugRzqHMqrt/bdtJpIi4Jr0tVZgvNhpF32HCBK5pee2fCs2hWY 2vlph19h4yl7qL4tLjsVOXy0kb8nUstaR1YSFHmPAGEwwX+jcGNvfos782f0kgzh 4x+sB//kvuNyViBVFcr7Cs2ozErEuFiPiwgzjP6+KrGWrMdS2TP2PWtI5K2nFmWc /bbRLHjCpY2WYJJPm2FMl+P0xRZsvy/tXQQNM+feaBmzCc+xQSXWfhIaUgDAV2Ym LvKc/YqiC9vBucELL8lOMlACD/yOJFKzZaTFgxC5QsIg== 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 4292tyg0d4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Oct 2024 11:56:56 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 49EB1xfl002426; Mon, 14 Oct 2024 11:56:56 GMT Received: from smtprelay03.wdc07v.mail.ibm.com ([172.16.1.70]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4284emeabf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Oct 2024 11:56:56 +0000 Received: from smtpav04.dal12v.mail.ibm.com (smtpav04.dal12v.mail.ibm.com [10.241.53.103]) by smtprelay03.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 49EBusQV18875042 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Oct 2024 11:56:55 GMT Received: from smtpav04.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DA3F658062; Mon, 14 Oct 2024 11:56:54 +0000 (GMT) Received: from smtpav04.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 61A6C58056; Mon, 14 Oct 2024 11:56:53 +0000 (GMT) Received: from [9.109.208.252] (unknown [9.109.208.252]) by smtpav04.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 14 Oct 2024 11:56:53 +0000 (GMT) Message-ID: <69b9750f-1e64-472f-9865-f8fdaf0bb5cc@linux.ibm.com> Date: Mon, 14 Oct 2024 17:26:51 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Segher Boessenkool , Michael Meissner , GCC Patches , Peter Bergner From: jeevitha Subject: [PATCH] rs6000: Correct the function code for _AMO_LD_DEC_BOUNDED X-TM-AS-GCONF: 00 X-Proofpoint-GUID: Aa7d9t-b0V1nf5Olp4K2M9f6QJM8SeTE X-Proofpoint-ORIG-GUID: Aa7d9t-b0V1nf5Olp4K2M9f6QJM8SeTE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-14_10,2024-10-11_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 mlxlogscore=644 priorityscore=1501 impostorscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410140085 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 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~incoming=patchwork.ozlabs.org@gcc.gnu.org Hi All, Corrected the function code for the Atomic Memory Operation "Fetch and Decrement Bounded", changing it from 0x1A to 0x1C. 2024-10-14 Jeevitha Palanisamy gcc/ * config/rs6000/amo.h (enum _AMO_LD): Correct the function code for _AMO_LD_DEC_BOUNDED. diff --git a/gcc/config/rs6000/amo.h b/gcc/config/rs6000/amo.h index 6b9e4e088b9..1303c9d9dab 100644 --- a/gcc/config/rs6000/amo.h +++ b/gcc/config/rs6000/amo.h @@ -46,7 +46,7 @@ enum _AMO_LD { _AMO_LD_CS_NE = 0x10, /* Compare and Swap Not Equal. */ _AMO_LD_INC_BOUNDED = 0x18, /* Fetch and Increment Bounded. */ _AMO_LD_INC_EQUAL = 0x19, /* Fetch and Increment Equal. */ - _AMO_LD_DEC_BOUNDED = 0x1A /* Fetch and Decrement Bounded. */ + _AMO_LD_DEC_BOUNDED = 0x1C /* Fetch and Decrement Bounded. */ }; /* Implementation of the simple LWAT/LDAT operations that take one register and