From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2080.outbound.protection.outlook.com [40.107.15.80]) by sourceware.org (Postfix) with ESMTPS id 936853857341 for ; Mon, 6 Nov 2023 14:05:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 936853857341 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 936853857341 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.80 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1699279533; cv=pass; b=Ib9fm6k36te1inw9FjgcyvppAhgM2FMXDLRUE3vsFVb6wDqTsx90BJZ1koaHlpHTO3ZpY6T80VGEODdqN09MS85CixtWb0B5v6qmNxV123svpHTGrb7ugXsEW8LS3jWPfbJjdJ/UE4IIbBEBNh23xsN5LbGfJ7T7ZIS/IBECDRc= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1699279533; c=relaxed/simple; bh=Wz1unxDyi73xDEvcQRkBBy2zGdU8R0oZoXDDnH8mH4A=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=bn+JeTrWaduQKemC4UauAQfHtexeOTWgt/eGB64j6Dm48ZrH7WQrzxCqBa76MVa7O/SrrB8wo/YJL9Gc4nRwN58V1c7Gvr9X/4Axlh8QT1f3X7LovU/s/knc4sU8zx2lxizHiIqdQzmw5lN+XCMPFgFkee1P24vzWPCIx+w6IKU= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=K8dusQLI+RRTcprrc28JGJ3qOPY0DD0eTHkJn6k0QHhCtorRaxw5fiKcqHWoYRR4td1tYmCVo2iUbTuBVn5J/kOIky5zg8QYrxkx+QHwZioD+oVfBxDc3UYUnJCDziTFeyf4hXMEhUaqlZgqLcDLcGF3j5IhLpz/21I5+PoFx+REvVHjwNik/EcAzhkmD21zyvV81HHb55Z7pMPauruE0OKE9aT3iLpVCbAW62XNuVH18/F07jDtWmw5dApDFXOzwKS854ISC/htV/n8bRMzg3HDiBO9fns5jR9+ZlsLDB5DdeBV3u0Df3eEFKUi+iImkkQOROBRDhMBqn/WTzacmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iLhJ9CB6VljX89kBYUjaOCaZwMkvhCUDAHow/qFxC7w=; b=I2S+M8l8P1yJWEenc8FDGkoMeDncEOfpJyTOBFsSu7UaffUSspyWmYCYh4UDw9M+g8vG7yMiqR2PicLyq5w55zn9s0t9S/nlojNxcfC4xCPNkOdVZ7dBaJ8M+kroCfnfjHlxxiZP/LLOv86TSUvgfx22AXrJOLGEGFn362+Ebl9LnECUeCuxj1Z1xF9RPsasmiZWwJ+xHEHOqc/nlMfYm3dUBjjwMYvKiux37DqPV5oTMVj/yrkWVAPRW+jrFchJi/AVXhXUGRbMEOzBGzdIspXA/fVYHwT3YyPPFdHBjEHWQgoUjE2G/00h7bVKRSmo/71qbGaUuPcRg20ngtSpkQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iLhJ9CB6VljX89kBYUjaOCaZwMkvhCUDAHow/qFxC7w=; b=4Vuu82wkO3PSafAMPsNXah0+iW5tGr2jiZGdWXifPKhqcGN9vRuNiDKRCmj+m7a5DLGH1ai2wTb3sqV0ceda2ypSiIH15asClyyHmmqJodPh0Tg6AR+NYXczioNb0mDlzO12fiYT/YtaHt2Z1bt+5puYjdar0S46TMhwFXNPO88= Received: from AM4PR07CA0024.eurprd07.prod.outlook.com (2603:10a6:205:1::37) by VI0PR08MB10617.eurprd08.prod.outlook.com (2603:10a6:800:20e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.27; Mon, 6 Nov 2023 14:05:19 +0000 Received: from AM4PEPF00027A6B.eurprd04.prod.outlook.com (2603:10a6:205:1:cafe::d0) by AM4PR07CA0024.outlook.office365.com (2603:10a6:205:1::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.15 via Frontend Transport; Mon, 6 Nov 2023 14:05:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM4PEPF00027A6B.mail.protection.outlook.com (10.167.16.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.16 via Frontend Transport; Mon, 6 Nov 2023 14:05:19 +0000 Received: ("Tessian outbound 5d213238733f:v228"); Mon, 06 Nov 2023 14:05:19 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 7c36859999b3626d X-CR-MTA-TID: 64aa7808 Received: from 6edcc7598dcb.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C321811B-E09E-4EE4-B0A1-9CCD9E6FB456.1; Mon, 06 Nov 2023 14:05:11 +0000 Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 6edcc7598dcb.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 06 Nov 2023 14:05:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MU2cXMF7nUUOw4G9+u78AETSod9zMBVzqhtlzVPRDF+Koz0Ynw0cx0/uu+lRB8NXo+7jLHJ6DRVcC88W0TDy2jlDTiKNoiwVVwcuSXH2V/ruTbGkAXNzAcTEMQ6KpuFa48OCzcJ7iJOGT+WP1S3N/gTkOxMI/K01xN5j7/lCyOQaAMqyP2Dv1sAu/aRFQKjdCFWPtdbcYB5EfC3K1kIkzTiwb7LWksNwqvfK7N/+S4xK/IJQeodrosWFxIN93eT57pQUnTQy49hT0ZzJrOAimZ1vKW/QdZ9T4jmXEz2z9JUwy+qU9goIg5xSrN6XZI/Dicy0GGPGRo2h5LY4JLAj6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iLhJ9CB6VljX89kBYUjaOCaZwMkvhCUDAHow/qFxC7w=; b=h8SiWTB0wJDE4+GUndVrJ6HfvZFt7cdYJFbOTav5HAz3CsLDxZjFEq31cxA/svcb41s/SYJabEdIGiX/Eezs3YbTTvKbIUtEqUGIBBqDVFDldHxsawIgggKnobaWAVZ7LIPuAO+gQEPlf2QO+Y8ElFsSDWuWddMimbmjxlTYLzQ8d6NiS1vBnK8se1YnM4/Mc9tIW8Nskyg8/hbgJkPfVgavDLsUlJRGGdWy3BtLgDPVIBQWB1v4j6SC8wMEEZuvxgstHOuVGFSBDsBoPJZjx4EI1GzuqSVqCihUi+A+ubMilke8XGa4aYr3vpqsjga/lMUfhRfJK/qM7rNyOMo7yw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iLhJ9CB6VljX89kBYUjaOCaZwMkvhCUDAHow/qFxC7w=; b=4Vuu82wkO3PSafAMPsNXah0+iW5tGr2jiZGdWXifPKhqcGN9vRuNiDKRCmj+m7a5DLGH1ai2wTb3sqV0ceda2ypSiIH15asClyyHmmqJodPh0Tg6AR+NYXczioNb0mDlzO12fiYT/YtaHt2Z1bt+5puYjdar0S46TMhwFXNPO88= Received: from AM5PR0101CA0001.eurprd01.prod.exchangelabs.com (2603:10a6:206:16::14) by DU2PR08MB10107.eurprd08.prod.outlook.com (2603:10a6:10:46f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Mon, 6 Nov 2023 14:05:07 +0000 Received: from AMS0EPF0000019B.eurprd05.prod.outlook.com (2603:10a6:206:16:cafe::39) by AM5PR0101CA0001.outlook.office365.com (2603:10a6:206:16::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28 via Frontend Transport; Mon, 6 Nov 2023 14:05:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AMS0EPF0000019B.mail.protection.outlook.com (10.167.16.247) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6977.16 via Frontend Transport; Mon, 6 Nov 2023 14:05:07 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 6 Nov 2023 14:05:01 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 6 Nov 2023 14:05:00 +0000 Received: from e124257.nice.arm.com (10.34.101.64) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.32 via Frontend Transport; Mon, 6 Nov 2023 14:05:00 +0000 From: Andrea Corallo To: CC: , , Andrea Corallo Subject: [PATCH 3/3] aarch64: Add FEAT_ITE support Date: Mon, 6 Nov 2023 15:04:55 +0100 Message-ID: <20231106140455.1694695-3-andrea.corallo@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231106140455.1694695-1-andrea.corallo@arm.com> References: <20231106140455.1694695-1-andrea.corallo@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AMS0EPF0000019B:EE_|DU2PR08MB10107:EE_|AM4PEPF00027A6B:EE_|VI0PR08MB10617:EE_ X-MS-Office365-Filtering-Correlation-Id: 8554d0e1-4740-47aa-2934-08dbded168ed X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: cDaD1kyq3+eqpM9KofkRi97vF+GE9JeBrX1zvhjp5KVqEhsERkgSMI6cl01fwGBDBI1lZrgmOAEzMdp/hKsU4ASaJUrNU4JS3ycr/C9iMTrS61pgVYLNlD3Dp9/Q/Nbneoe1RlQ4Se9tBwZ7xxCSn5jNcMDQvN8NaYnAM5OLsa+kBlnOUGOQQ2g1L8bLcqJBclfbdsqfzzxaF3OFTDxMho+/s5T6Uphn6PyTB3K6+Ngg9Z16bVo+dZaNW8R+iQNzPu3yMi7MXYsu9YgIDwhBJME4lTVBzMK4tLImGuzWpKxvk41GQJTa79VogRZdcgxyIkG1ThVYrEON1P7O2JTL8KncoR0m33RWo+iK0OmKEelsMevFhQJc0siVtCpiBoAxIIay0RXv7Nl2Xzm0gNp86rZ0vIe/osPnnkUh7jke97itv6kPmkh2d6XtB2TMrewele4mLPGi2ztInGBRCBfTz9ygiAwK5UbrGRpic6zrxvAaxVXZ/QI5w/ufsIO2PSs7WZHtKJMfPB0NbCUB8wA5nUZmHoTkh4kQ8Z7RdnCohFof8i+Kzkxievi43DNAN4GtGdKYmg00cOoeqgef7ij8hKxyMqXfQUr0Ilj5/n0uGYE7HCVKilst/a+X0MSIfsGy0TZdFWMhISa9TzhlOs92lSaZvRszAD17dh9nBcft3o7VNotT4Zah7BZLdV5OYSpNU9tz+WUBDVkYBXLQaLnr+3V5a3NtGeVIi604LsBdwgAzRSGKVjyi5qgU8Y0szntk X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(346002)(376002)(396003)(39850400004)(136003)(230922051799003)(82310400011)(1800799009)(64100799003)(186009)(451199024)(46966006)(36840700001)(83380400001)(1076003)(70206006)(70586007)(2616005)(26005)(19627235002)(426003)(478600001)(336012)(7696005)(40480700001)(8936002)(8676002)(4326008)(54906003)(316002)(6916009)(44832011)(47076005)(6666004)(5660300002)(36860700001)(41300700001)(86362001)(81166007)(82740400003)(356005)(2906002)(36756003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB10107 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM4PEPF00027A6B.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f7ecbdce-6b1f-46e3-6195-08dbded161f7 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BmJbvO1kYS0cCw23hMZx3Pof5StuREhqLgjZ7JGMLj+laZ1nN/stQ5On0TG7MRbsuawgQ6siUITZU9Bru84yw9CcC1KqSuao77AFBxPcLgaaiIC5SC94YAKtEnoVkqZnSvTGk3NED8ARo5fmLWQknNbepf+7mBr/DzOGbB1TNpGZMLTvaiVy9bQI3Kc2oL0OqFQWHx0LDl/8BhZ91rcT0ujkaEvE9BvAu6QZH0h6YObbnody8PbwVqzOAN8aASsSNuw3nK+OCTeRuZN9Olem4QYQsY1JAWt86H3Ri5M3vlXcHOTUiKRwHlAsWZaP/nVmu5dKkWUup4lqWY85N8yLyVzi1jWaBncGG9y1GuCTVEMmffwf0Iz0BXszoU+gsQ2fDzGyp1lpiixl0fJV6RAugf74j8d0884qAJeFy7RH8QcdDZnj33I0SRyYpMSVSiBvrI59ujmotp9CGKAC+S788ID3Pc4ZH5UI3z4gnb1OnCW5PFsKF+kWqTjvt/pLt5PIHRBeqwjTG+rR3xcvFUEBLjEWwuUzT3wV36w5YLbfPpMphqWlytateV5/p8oK0V5FC3hZLoP2r9h8S0jPBYOY3Zoaw2AmjVShc/oueicP1MW58miuCrc7zfg+hEz6lBHTf0xPbWnDw3RuadD+GhAEnBmbT2JDXx9Nzmz7HA9PbbdOY6PuE7tD4P0xNakTlVvmm8tNj46Y7o0JjFDYuHRTIqP3wClLVD9+GBhT7fPRI7wa+yyX9k9heEVbSZEReVoG X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230031)(4636009)(346002)(376002)(396003)(39860400002)(136003)(230922051799003)(451199024)(1800799009)(186009)(64100799003)(82310400011)(40470700004)(46966006)(36840700001)(26005)(82740400003)(36756003)(6666004)(2616005)(83380400001)(86362001)(40480700001)(36860700001)(6916009)(70586007)(1076003)(8676002)(8936002)(4326008)(54906003)(316002)(7696005)(70206006)(336012)(44832011)(19627235002)(426003)(47076005)(5660300002)(2906002)(40460700003)(478600001)(41300700001)(81166007);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2023 14:05:19.2492 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8554d0e1-4740-47aa-2934-08dbded168ed X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM4PEPF00027A6B.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR08MB10617 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,GIT_PATCH_0,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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: This patch add support for FEAT_ITE "Instrumentation Extension" adding the "trcit" instruction. This is enabled by the +ite march flag. --- gas/config/tc-aarch64.c | 1 + gas/doc/c-aarch64.texi | 2 ++ gas/testsuite/gas/aarch64/illegal-ite1-1.d | 3 +++ gas/testsuite/gas/aarch64/illegal-ite1-1.l | 2 ++ gas/testsuite/gas/aarch64/ite1.d | 9 +++++++++ gas/testsuite/gas/aarch64/ite1.s | 4 ++++ include/opcode/aarch64.h | 2 ++ opcodes/aarch64-tbl.h | 8 ++++++++ 8 files changed, 31 insertions(+) create mode 100644 gas/testsuite/gas/aarch64/illegal-ite1-1.d create mode 100644 gas/testsuite/gas/aarch64/illegal-ite1-1.l create mode 100644 gas/testsuite/gas/aarch64/ite1.d create mode 100644 gas/testsuite/gas/aarch64/ite1.s diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 827e0436136..84c69a8eedf 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -10305,6 +10305,7 @@ static const struct aarch64_option_cpu_value_table aarch64_features[] = { {"gcs", AARCH64_FEATURE (GCS), AARCH64_NO_FEATURES}, {"prfmslc", AARCH64_FEATURE (PRFMSLC), AARCH64_NO_FEATURES}, {"rasv2", AARCH64_FEATURE (RASv2), AARCH64_NO_FEATURES}, + {"ite", AARCH64_FEATURE (ITE), AARCH64_NO_FEATURES}, {NULL, AARCH64_NO_FEATURES, AARCH64_NO_FEATURES}, }; diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi index 0624c4f0bb8..3c0aeeb6720 100644 --- a/gas/doc/c-aarch64.texi +++ b/gas/doc/c-aarch64.texi @@ -267,6 +267,8 @@ automatically cause those extensions to be disabled. @tab Enable the Reliability, Availability and Serviceability extension v2. @item @code{predres2} @tab ARMv8-A/Armv9-A @tab ARMv8.9-A/Armv9.4-A or later @tab Enable Prediction instructions. +@item @code{ite} @tab N/A @tab no + @tab Enable TRCIT instruction. @end multitable @node AArch64 Syntax diff --git a/gas/testsuite/gas/aarch64/illegal-ite1-1.d b/gas/testsuite/gas/aarch64/illegal-ite1-1.d new file mode 100644 index 00000000000..99ef4d47d7b --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-ite1-1.d @@ -0,0 +1,3 @@ +#as: -march=armv8-a +#source: ite1.s +#error_output: illegal-ite1-1.l \ No newline at end of file diff --git a/gas/testsuite/gas/aarch64/illegal-ite1-1.l b/gas/testsuite/gas/aarch64/illegal-ite1-1.l new file mode 100644 index 00000000000..1e97c9147ee --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-ite1-1.l @@ -0,0 +1,2 @@ +[^:]*: Assembler messages: +[^:]*:[0-9]+: Error: selected processor does not support `trcit x1' diff --git a/gas/testsuite/gas/aarch64/ite1.d b/gas/testsuite/gas/aarch64/ite1.d new file mode 100644 index 00000000000..7c4b486ced8 --- /dev/null +++ b/gas/testsuite/gas/aarch64/ite1.d @@ -0,0 +1,9 @@ +#as: -march=armv9.4-a+ite +#objdump: -dr + +.*: file format .* + +Disassembly of section \.text: + +0+ <.*>: +.*: d50b72e1 trcit x1 diff --git a/gas/testsuite/gas/aarch64/ite1.s b/gas/testsuite/gas/aarch64/ite1.s new file mode 100644 index 00000000000..595ecf897f2 --- /dev/null +++ b/gas/testsuite/gas/aarch64/ite1.s @@ -0,0 +1,4 @@ +/* File to test the +ite option. */ +func: + trcit x1 + diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h index ae6457597e5..fe046b9adfb 100644 --- a/include/opcode/aarch64.h +++ b/include/opcode/aarch64.h @@ -173,6 +173,8 @@ enum aarch64_feature_bit { AARCH64_FEATURE_RASv2, /* Speculation Prediction Restriction instructions. */ AARCH64_FEATURE_PREDRES2, + /* Instrumentation Extension. */ + AARCH64_FEATURE_ITE, DUMMY1, DUMMY2, DUMMY3, diff --git a/opcodes/aarch64-tbl.h b/opcodes/aarch64-tbl.h index b64d94ab70f..ac21a563b3b 100644 --- a/opcodes/aarch64-tbl.h +++ b/opcodes/aarch64-tbl.h @@ -2582,6 +2582,8 @@ static const aarch64_feature_set aarch64_feature_prfmslc = AARCH64_FEATURE (PRFMSLC); static const aarch64_feature_set aarch64_feature_rasv2 = AARCH64_FEATURE (RASv2); +static const aarch64_feature_set aarch64_feature_ite = + AARCH64_FEATURE (ITE); #define CORE &aarch64_feature_v8 #define FP &aarch64_feature_fp @@ -2645,6 +2647,7 @@ static const aarch64_feature_set aarch64_feature_rasv2 = #define GCS &aarch64_feature_gcs #define PRFMSLC &aarch64_feature_prfmslc #define RASv2 &aarch64_feature_rasv2 +#define ITE &aarch64_feature_ite #define CORE_INSN(NAME,OPCODE,MASK,CLASS,OP,OPS,QUALS,FLAGS) \ { NAME, OPCODE, MASK, CLASS, OP, CORE, OPS, QUALS, FLAGS, 0, 0, NULL } @@ -2848,6 +2851,9 @@ static const aarch64_feature_set aarch64_feature_rasv2 = #define PREDRES2_INSN(NAME,OPCODE,MASK,CLASS,OPS,QUALS,FLAGS) \ { NAME, OPCODE, MASK, CLASS, 0, PREDRES2, OPS, QUALS, FLAGS, 0, 0, NULL } +#define ITE_INSN(NAME,OPCODE,MASK,CLASS,OPS,QUALS,FLAGS) \ + { NAME, OPCODE, MASK, CLASS, 0, ITE, OPS, QUALS, FLAGS, 0, 0, NULL } + const struct aarch64_opcode aarch64_opcode_table[] = { /* Add/subtract (with carry). */ @@ -6105,6 +6111,8 @@ const struct aarch64_opcode aarch64_opcode_table[] = command-line flags. */ CORE_INSN ("clrbhb", 0xd50322df, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS), + ITE_INSN ("trcit", 0xd50b72e0, 0xffffffe0, ic_system, OP1 (Rt), QL_I1X, F_ALIAS), + {0, 0, 0, 0, 0, 0, {}, {}, 0, 0, 0, NULL}, }; -- 2.25.1