From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id A06FF385841A for ; Fri, 9 Feb 2024 17:54:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A06FF385841A 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 A06FF385841A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707501281; cv=none; b=jQJeHy0Z+BLOCKGlNXwZBN1E1Pm2mjb+BLLwI7h+HDW53b3mT3qec4qFyjLOlWB4uKqYMaisEl/HzZg4yyabMJSxz53+EePeZkr8lT1JduB05p3cPUOmWoxzE7QGWSxqELtdJecsgkgUSG4nCXu8EhyTyWnfSJfD2/TNXvC1GPo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707501281; c=relaxed/simple; bh=AdEulervMD5WidpRhVt/FwaP2qz/HWPok/0y6dgVQT4=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=mCkVE8Giq5SkNAXRD5Mttt5r1Q7RU1NBJNDuIN+PezRsMAnlCGoPLR1fAl0k05b4HeHC2ObV0oD3o+UqNQz6oEdAH1dqWzB+eriCKY6tSq0KGUT47yWGWbylvMnl3AityXdJgKzZfv8eHxUDfk6VDA33CQFFEfL5LaZLWg76/GY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353728.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 419GWX7M018780 for ; Fri, 9 Feb 2024 17:54:38 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=48lVINUsEn0IOpKyF7VfrnSMFXZ0rYQRRbIHS1i8QMk=; b=n3c/smNeusuKuubWTPyeCh5l5qYa5z0/VZpCSrwTXvLmh3M7mUaUfiwsWKOO51bGR3iw Ox+4ZWKH0zf7pK9r1v1ndLRWpKqW76Rm1NWMirwp3Kni0OpfVC3O6WAsXiMm/OqDBPn8 ZExXUj60UA4+wvfP0V2anB2Q/qWtMI44XPfPj0hCX26A9j1ubzR4xIKlLH7L48cR4xoc 5dMh3L1KWBm1puPvX3zBJ+tyVygFh8/I3htBD472uXfcaJNyZSAZFBM68QjKoTYSoyMi yjCSCmukvuerj+B+RvaDCJD89BjJssJ+NYYwgvtLRiTbkue6zwxMiRKEbAI+hD1/0Aux tA== Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3w5qnd9tqq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 09 Feb 2024 17:54:38 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 419Eu9CN008487 for ; Fri, 9 Feb 2024 17:54:37 GMT Received: from smtprelay06.wdc07v.mail.ibm.com ([172.16.1.73]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3w221km6g4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 09 Feb 2024 17:54:37 +0000 Received: from smtpav04.wdc07v.mail.ibm.com (smtpav04.wdc07v.mail.ibm.com [10.39.53.231]) by smtprelay06.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 419HsYvp62783820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 9 Feb 2024 17:54:36 GMT Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0001058056; Fri, 9 Feb 2024 17:54:33 +0000 (GMT) Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B270458052; Fri, 9 Feb 2024 17:54:33 +0000 (GMT) Received: from [9.61.8.239] (unknown [9.61.8.239]) by smtpav04.wdc07v.mail.ibm.com (Postfix) with ESMTP; Fri, 9 Feb 2024 17:54:33 +0000 (GMT) Message-ID: Date: Fri, 9 Feb 2024 11:54:33 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Binutils From: Peter Bergner Subject: [COMMITTED] PowerPC: Add support for Power11 options Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: cTUYXr3uxDt95UcBKbGSLQdWhD3bo88i X-Proofpoint-GUID: cTUYXr3uxDt95UcBKbGSLQdWhD3bo88i 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-02-09_15,2024-02-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 mlxscore=0 adultscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 mlxlogscore=775 bulkscore=0 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402090129 X-Spam-Status: No, score=-10.0 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 List-Id: I just pushed the following patch to trunk that adds support for recognizing the -mpower11/pwr11 and -Mpower11/pwr11 options. Peter PowerPC: Add support for Power11 options binutils/ * doc/binutils.texi (PowerPC -M option): Mention power11 and pwr11. gas/ * config/tc-ppc.c: (md_show_usage): Mention -mpower11 and -mpwr11. * doc/c-ppc.texi: Likewise. opcodes/ * ppc-dis.c (ppc_opts): Add "power11" and "pwr11" entries. (powerpc_init_dialect): Default to "power11". diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index e0028ee0169..50cc4707e14 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -2662,11 +2662,12 @@ rather than @code{li}. All of the @option{-m} arguments for @option{e300}, @option{e500}, @option{e500mc}, @option{e500mc64}, @option{e500x2}, @option{e5500}, @option{e6500}, @option{efs}, @option{power4}, @option{power5}, @option{power6}, @option{power7}, -@option{power8}, @option{power9}, @option{power10}, @option{ppc}, -@option{ppc32}, @option{ppc64}, @option{ppc64bridge}, @option{ppcps}, -@option{pwr}, @option{pwr2}, @option{pwr4}, @option{pwr5}, @option{pwr5x}, -@option{pwr6}, @option{pwr7}, @option{pwr8}, @option{pwr9}, @option{pwr10}, -@option{pwrx}, @option{titan}, @option{vle}, and @option{future}. +@option{power8}, @option{power9}, @option{power10}, @option{power11}, +@option{ppc}, @option{ppc32}, @option{ppc64}, @option{ppc64bridge}, +@option{ppcps}, @option{pwr}, @option{pwr2}, @option{pwr4}, @option{pwr5}, +@option{pwr5x}, @option{pwr6}, @option{pwr7}, @option{pwr8}, @option{pwr9}, +@option{pwr10}, @option{pwr11}, @option{pwrx}, @option{titan}, @option{vle}, +and @option{future}. @option{32} and @option{64} modify the default or a prior CPU selection, disabling and enabling 64-bit insns respectively. In addition, @option{altivec}, @option{any}, @option{lsp}, @option{htm}, diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 2e92d14ca85..8c00d01f6f2 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -1392,6 +1392,8 @@ PowerPC options:\n")); fprintf (stream, _("\ -mpower10, -mpwr10 generate code for Power10 architecture\n")); fprintf (stream, _("\ +-mpower11, -mpwr11 generate code for Power11 architecture\n")); + fprintf (stream, _("\ -mlibresoc generate code for Libre-SOC architecture\n")); fprintf (stream, _("\ -mfuture generate code for 'future' architecture\n")); diff --git a/gas/doc/c-ppc.texi b/gas/doc/c-ppc.texi index 428492f5f10..c8cabdebfef 100644 --- a/gas/doc/c-ppc.texi +++ b/gas/doc/c-ppc.texi @@ -156,6 +156,9 @@ Generate code for Power9 architecture. @item -mpower10, -mpwr10 Generate code for Power10 architecture. +@item -mpower11, -mpwr11 +Generate code for Power11 architecture. + @item -mfuture Generate code for 'future' architecture. diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index a71874fa621..573fd3c4103 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -208,6 +208,11 @@ struct ppc_mopt ppc_opts[] = { | PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9 | PPC_OPCODE_POWER10 | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX), 0 }, + { "power11", (PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_64 + | PPC_OPCODE_POWER4 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6 + | PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9 + | PPC_OPCODE_POWER10 | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX), + 0 }, { "libresoc",(PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_64 | PPC_OPCODE_POWER4 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6 | PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9 @@ -267,6 +272,11 @@ struct ppc_mopt ppc_opts[] = { | PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9 | PPC_OPCODE_POWER10 | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX), 0 }, + { "pwr11", (PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_64 + | PPC_OPCODE_POWER4 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6 + | PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9 + | PPC_OPCODE_POWER10 | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX), + 0 }, { "pwrx", PPC_OPCODE_POWER | PPC_OPCODE_POWER2, 0 }, { "raw", PPC_OPCODE_PPC, @@ -396,7 +406,7 @@ powerpc_init_dialect (struct disassemble_info *info) break; default: if (info->arch == bfd_arch_powerpc) - dialect = ppc_parse_cpu (dialect, &sticky, "power10") | PPC_OPCODE_ANY; + dialect = ppc_parse_cpu (dialect, &sticky, "power11") | PPC_OPCODE_ANY; else dialect = ppc_parse_cpu (dialect, &sticky, "pwr"); break;