From patchwork Wed Mar 20 04:06:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Meissner X-Patchwork-Id: 1913840 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=M7BSNilt; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4Tzw684MK5z1yXD for ; Wed, 20 Mar 2024 15:07:26 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4ABE73858419 for ; Wed, 20 Mar 2024 04:07:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 9045B385840E for ; Wed, 20 Mar 2024 04:07:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9045B385840E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9045B385840E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710907627; cv=none; b=pV2wsLa7RAywsKQCILeuPLqv/7JfA3/XlB8CSQQ0CaCM+O8b/whqFNBJSlpeNrSWPNuTMROV9mqU01s1aPPQ9aIWcHI6RGeIT2pHIdIT6mnv45O+b3Jwp8B2lAYQqqzQfnQxyXUdSyLL9cC9yoP5CWfi8FOIFvx5GBmGRYU+gAQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710907627; c=relaxed/simple; bh=5EWk3L9+ZaNL5a9fnb8JqXUrgK6Z+dWi6HQNRHYsBA0=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=YlXDx0gf0x9m7pIjhrSNKQ+IiyDy4t6T20vSyHEVt/TC3rDSwztfHdpfg92EZdO+iV+/2XTr7y3gHbtlO9ZQ2lp/SeC1h56YJwT/fyUbM2Z9NFan24oqYUykXkt4sZ3LCAv0f58zmdSq+fXqVmOI5nkYhD+gYpAfSJykcVlB/b8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmnED-0007wp-QV for gcc-patches@gcc.gnu.org; Wed, 20 Mar 2024 00:07:04 -0400 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 42K40qcU026097; Wed, 20 Mar 2024 04:06:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : subject : message-id : mime-version : content-type; s=pp1; bh=ViJTT8Igm1UuaCIdSmtcawvmHgeDlcaD+b4hYrFdxtY=; b=M7BSNilt2vmy8vwaNcS5nQ964g1oV06WqgL9Qb8bY4oYPrNJ3p3c41pPkXmkavJifMje m1GuHwA6VEbbt6aPlo3FELJNmMy4XMKV3s0iu328//kPR51Y1AjVL2SvqZgKypIPh9QM awExHnHWGFMxP9rg6NJlHpPrMZMXFv2WevkoEotTVBBIKH8nEP78wAue1zBPZMssT7Yq I5OI/0yuSjpe5xzOUr+d8VTpnQhzfCbNRHFSXVseopFSUBFYwgEmtAZxixc1v5dVIhH0 QAm0GVOh+76bvg+Y8O5D+WRqxG0jBLqGRYKRYTBica6Er3SrziBe0YkvcHh1s5BDdsGa tA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3wymrpgav6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Mar 2024 04:06:58 +0000 Received: from m0360072.ppops.net (m0360072.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 42K46vMe002994; Wed, 20 Mar 2024 04:06:57 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3wymrpgav4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Mar 2024 04:06:57 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 42K16VR8015829; Wed, 20 Mar 2024 04:06:57 GMT Received: from smtprelay06.dal12v.mail.ibm.com ([172.16.1.8]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3wwp5045c2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Mar 2024 04:06:57 +0000 Received: from smtpav04.dal12v.mail.ibm.com (smtpav04.dal12v.mail.ibm.com [10.241.53.103]) by smtprelay06.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 42K46s5l24773326 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Mar 2024 04:06:56 GMT Received: from smtpav04.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EDAF058062; Wed, 20 Mar 2024 04:06:53 +0000 (GMT) Received: from smtpav04.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7DB6D5805E; Wed, 20 Mar 2024 04:06:53 +0000 (GMT) Received: from cowardly-lion.the-meissners.org (unknown [9.61.16.99]) by smtpav04.dal12v.mail.ibm.com (Postfix) with ESMTPS; Wed, 20 Mar 2024 04:06:53 +0000 (GMT) Date: Wed, 20 Mar 2024 00:06:51 -0400 From: Michael Meissner To: gcc-patches@gcc.gnu.org, Michael Meissner , Segher Boessenkool , "Kewen.Lin" , David Edelsohn , Peter Bergner Subject: [PATCH 0/3] Add support for -mcpu=power11 Message-ID: Mail-Followup-To: Michael Meissner , gcc-patches@gcc.gnu.org, Segher Boessenkool , "Kewen.Lin" , David Edelsohn , Peter Bergner MIME-Version: 1.0 Content-Disposition: inline X-TM-AS-GCONF: 00 X-Proofpoint-GUID: PmX2DgEH7Jw9vDrRw-NNYCn9I1R_pcG8 X-Proofpoint-ORIG-GUID: 8U59_xe2DCSbCiG3-skPV8lvn0PpyqHu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-20_01,2024-03-18_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 spamscore=0 malwarescore=0 mlxlogscore=615 priorityscore=1501 suspectscore=0 adultscore=0 lowpriorityscore=0 clxscore=1011 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2403140000 definitions=main-2403200029 Received-SPF: pass client-ip=148.163.158.5; envelope-from=meissner@linux.ibm.com; helo=mx0b-001b2d01.pphosted.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_SOFTFAIL, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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 These three patches add support for -mcpu=power11 to the PowerPC GCC compiler. There are 3 patches in the set. I would like to check these patches into GCC 15 ASAP, and back port the patches into GCC 14 after GCC 14.1 ships. I hope to also back port these patches to other active branches after the code goes into GCC 15 and then GCC 14. Patch #1: This patch adds the basic support for power11. * This patch adds the -mcpu=power11. * This patch adds a power11 processor type. * This patch adds a bit to the isa_flags for power11 support. * This patch defines _ARCH_PWR11 if -mcpu=power11 is used. * This patch uses .machine power11 if -mcpu=power11 is used. * This patch passes -mpower11 or -mpwr11 to the assembler. * This patch uses the power10 defaults for power11. * This patch adds AUXV support for power11. Patch #2: This patch adds tuning support for power11, treating power11 like power10 at the current time. Patch #3: This patch adds tests that are run if the assembler supports either -mpower11 (under Linux) or -mpwr11 (under AIX). These patches have been tested with bootstrap builds on a little endian power10 and a big endian power9 system. When the GCC 15 tree opens up for general patches, can I apply this patch?