Message ID | Zxv0OVEWD7l-DZ27@cowardly-lion.the-meissners.org |
---|---|
Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> 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 F37A63858C42 for <patchwork@sourceware.org>; Fri, 25 Oct 2024 19:41:21 +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 39F923858D21 for <gcc-patches@gcc.gnu.org>; Fri, 25 Oct 2024 19:40:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 39F923858D21 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 39F923858D21 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=1729885248; cv=none; b=hceHqNKEQGDWvMvySBCIhdap6X6hJ2Ee/uxKgrqRBHJ79t7offfuQVtBD2QW8zuJjUikel/m7LLNRSwa5dbtL5jWtIagERA5hGKZnec6ocSuD4C7U0341HJAm09au9+6uaiZniXJGW9Hz9lAT5EhH6IU70XohRUrokwm0Hjst2w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729885248; c=relaxed/simple; bh=x89X/b3o0Bw0gR42VxgjXCZ/1NFewXjxPO0nWCvZpwA=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=lF3ok3BPirGOkTTWHxd7PRlINDjlheMWNCakM6GP7wSfz5toQLnwv6SRJ7XOAjwZzljdyTbu26DdxD1k2u7cfb8k3wl4+QXOAnWSb8mbk5ZCyK3puMj88/nR3dJ6PP+WgPDWDZPlNSsCNeT3l+xTGKAmxm9cIRuycNmYXnqp4GI= 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.18.1.2/8.18.1.2) with ESMTP id 49PEcXk3012529; Fri, 25 Oct 2024 19:40:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h= content-type:date:from:message-id:mime-version:subject:to; s= pp1; bh=ROQuDGFTatdBAqTVLWsG6YaFmnJlhYBORwJ/IWuFtoU=; b=dCeUU7dp KgzHodE7V4LwytJdAzVXffCMFp9f8y3QM6WQleeHxcu0etueyp3CXaEP7yzqN0I2 cXzVZDgvs7dlW4Z43mYNdzmyRdmKK1aeb36MuBtdUJaElHwvGqokcMVqgyLCDMkq l2i6yeXz0b1Meht+PO/qLuIXn/zS8ou+bLRdO7bQRkttjJHy2vNbDGooEeRUV1l0 vaNiO2v0u5SUUIxCFgGVgV90h8USIAEDdEif1Kt+mE9KKK7Q4yxIevPYjghTRpiK gDhob8XHtpKrZquO+Z3rhnHxjwJOmMeSjaJiwlrXaFvoJNXVN3HqwwP+Fm0ztu2m sxEkHuv26wlO6A== 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 42fbw4a6y7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 25 Oct 2024 19:40:45 +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 49PIFMHR014287; Fri, 25 Oct 2024 19:40:44 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([172.16.1.7]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 42emhfycx8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 25 Oct 2024 19:40:44 +0000 Received: from smtpav03.dal12v.mail.ibm.com (smtpav03.dal12v.mail.ibm.com [10.241.53.102]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 49PJehbI31654348 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Oct 2024 19:40:43 GMT Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7989A58056; Fri, 25 Oct 2024 19:40:43 +0000 (GMT) Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 15BB45803F; Fri, 25 Oct 2024 19:40:43 +0000 (GMT) Received: from cowardly-lion.the-meissners.org (unknown [9.61.120.201]) by smtpav03.dal12v.mail.ibm.com (Postfix) with ESMTPS; Fri, 25 Oct 2024 19:40:42 +0000 (GMT) Date: Fri, 25 Oct 2024 15:40:41 -0400 From: Michael Meissner <meissner@linux.ibm.com> To: gcc-patches@gcc.gnu.org, Michael Meissner <meissner@linux.ibm.com>, Segher Boessenkool <segher@kernel.crashing.org>, "Kewen.Lin" <linkw@linux.ibm.com>, Peter Bergner <bergner@linux.ibm.com> Subject: [PATCH 0/11] Separate PowerPC architecture bits from ISA flags that use command line options Message-ID: <Zxv0OVEWD7l-DZ27@cowardly-lion.the-meissners.org> Mail-Followup-To: Michael Meissner <meissner@linux.ibm.com>, gcc-patches@gcc.gnu.org, Segher Boessenkool <segher@kernel.crashing.org>, "Kewen.Lin" <linkw@linux.ibm.com>, Peter Bergner <bergner@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: fKKFBjgix419wsS67Oa2E8L_lfcwFaur X-Proofpoint-GUID: fKKFBjgix419wsS67Oa2E8L_lfcwFaur 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-15_01,2024-10-11_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 bulkscore=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 malwarescore=0 mlxlogscore=326 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250148 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
Series |
Separate PowerPC architecture bits from ISA flags that use command line options
|
|
Message
Michael Meissner
Oct. 25, 2024, 7:40 p.m. UTC
These patches are a clean up in the PowerPC port to move architecture bits that are not user ISA options from rs6000_isa_flags to a new targt variable rs6000_arch_flags. The intention is to remove switches that are currently isa options, but the user should not be using this particular option. For example, we want users to use -mcpu=power10 and not just -mpower10. There are 11 patches in this series. I have tested these patches on both little endian and big endian systems and there are no regressions. Can I apply these patches to the trunk? I don't see the need to backport these changes to the earlier branches, but if desired I can do that. The patches are: Patch #1: This patch sets up the infrastructure to have a separate architecture flags. It moves the target_clones attribute to use this new architecture flags. The generation of ".machine" now also uses this table. Patch #2: For newer PowerPC architectures, the architecture flags are used for defining '_ARCH_PWR<n>' instead of the isa flags. The -mpower10 and -mpower11 options are removed. Patch #3: The code is restructured so that -mvsx does not convert the processor to power7. Thus using -mvsx is not allowed unless the user uses -mcpu=power7 or later. Patch #4: Change uses of TARGET_POPCNTB to TARGET_POWER5. Patch #5: Change uses of TARGET_FPRND to TARGET_POWER5X. Patch #6: Change uses of TARGET_CMPB to TARGET_POWER6. Patch #7: Change uses of TARGET_POPCNTD to TARGET_POWER7. Patch #8: Change uses of TARGET_MODULO to TARGET_POWER9. Patch #9: Rework tests that use -mvsx to raise the cpu to power7 to explicitly add an appropriate #pragma to force the code generation to a power7. Patch #10: Add support for a -mcpu=future option. Patch #11: Make -mtune=future (and -mcpu=future without an explicit -mtune= option) automatically schedudle insns like -mtune=power10 or -mtune=power11.
Comments
I have posted a new version of the patches at: https://gcc.gnu.org/pipermail/gcc-patches/2024-November/668177.html