From patchwork Mon Jun 6 21:52:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: will schmidt X-Patchwork-Id: 54842 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6DF53383065A for ; Mon, 6 Jun 2022 21:53:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DF53383065A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1654552409; bh=/T4Mtr0EtnjYhhX5bWGJGn7S0VGtOJWjnRHTJDOHrQY=; h=Subject:To:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=DhNhmyKzKt57TvqWRUxu+BI4DCDKGkGazMppzo5sNyvRkNztfWmwY91XguZsAu86I 5ZgvvEDr3Fro+zhGZ7l1VcaU8UoDURLJfStv2Uhiii46BWqgieDc+UvlfZEpJxq9Iv uadtWT5diIKEw5oVmaZm9fDh2SR7+FJ02mqY6rX0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id A5CD8385E45D for ; Mon, 6 Jun 2022 21:53:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A5CD8385E45D Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 256L0aWc019424; Mon, 6 Jun 2022 21:53:00 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3ghs4cgshd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jun 2022 21:52:59 +0000 Received: from m0098414.ppops.net (m0098414.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 256Lkscr027755; Mon, 6 Jun 2022 21:52:59 GMT Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3ghs4cgsh7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jun 2022 21:52:59 +0000 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 256LpLFS009625; Mon, 6 Jun 2022 21:52:58 GMT Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma02dal.us.ibm.com with ESMTP id 3gfy1ac5wr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jun 2022 21:52:58 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 256Lqv9r12583418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Jun 2022 21:52:57 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8CBFDBE056; Mon, 6 Jun 2022 21:52:57 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DDA8BBE04F; Mon, 6 Jun 2022 21:52:56 +0000 (GMT) Received: from lexx (unknown [9.160.81.62]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 6 Jun 2022 21:52:56 +0000 (GMT) Message-ID: <21f1b472875d5c75e151e647c5182a74e426559f.camel@vnet.ibm.com> Subject: [PATCH,RS6000 0/5] Clean up MASK_ and RS6000_BTM_ defines To: gcc-patches@gcc.gnu.org Date: Mon, 06 Jun 2022 16:52:56 -0500 X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) Mime-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 74QibXqDvKjIp2jFGQ32pFDa-07_oi-E X-Proofpoint-ORIG-GUID: MzZcEAUGhrlDIXL4FCkx6EBgex6R3cjv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-06_07,2022-06-03_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 mlxscore=0 spamscore=0 mlxlogscore=367 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206060086 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, RCVD_IN_MSPIKE_H2, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: will schmidt via Gcc-patches From: will schmidt Reply-To: will schmidt Cc: David Edelsohn , Segher Boessenkool Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Hi, This series cleans up the assorted MASK_, OPTION_MASK_, and RS6000_BTM_ defines that we have sprinkled through the rs6000 target code. The MASK_ entries are currently defined as their OPTION_MASK_ equivalents since their introduction when the rs6000_isa_flags was added via commit 4d9675496a28ef6184f2a9c3ac5e6e3ea63606c1 . This series replaces references to the MASK_ entries with their OPTION_MASK equivalents as much as possible. The RS6000_BTM_ defines are mostly unused since the built-in rewrites from late 2021 and early 2022, and the remaining usage is straightforward to replace with OPTION_MASK_ values. The OPTION_MASK_ definitions themselves remain. Due to size and to keep some of these changes clean I have split this into several parts. After this series there are a few remaining MASK_ entries (MASK_POWERPC64, MASK_64BIT and MASK_LITTLE_ENDIAN) which are conditionally defined, and potentially more invasive to resolve. Those are deliberately not addressed as part of this series. This has cleanly regtested (no functional change). When approved this series will be committed as a group, though it should be bisectable. OK for trunk? 1/5: Remove unused defines and touch up comments. 2/5: Rework RS6000_BTM_foo defines, part 1. 3/5: Rework RS6000_BTM_foo defines, part 2. 4/5: Rework MASK_foo defines, part 1. 5/5. Rework MASK_foo defines, part 2.