From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2064.outbound.protection.outlook.com [40.107.21.64]) by sourceware.org (Postfix) with ESMTPS id BB9BF3858C78 for ; Wed, 19 Jul 2023 23:28:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BB9BF3858C78 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=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=weI4th/OAoGEvDg50a+L+6gIuqV3u36UK3J6sgekRxU=; b=9r+CRS7RYkECHU+JnCxRxmG/YKH13xt//JqnL+GNNiNIikqx58o4zRDRaGOloaunC+FR27B+6/8pF9Hath4C9o03DmHbk1x7+45wNODPSZe9nrwbWQrYhn+GXpeSXy5jSundG6keFj36HQbrBewLAXiqnt+l6xGHs9uTx9eAcJg= Received: from DU2P251CA0030.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:230::30) by PAVPR08MB9260.eurprd08.prod.outlook.com (2603:10a6:102:306::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.31; Wed, 19 Jul 2023 23:28:03 +0000 Received: from DBAEUR03FT049.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:230:cafe::bd) by DU2P251CA0030.outlook.office365.com (2603:10a6:10:230::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.24 via Frontend Transport; Wed, 19 Jul 2023 23:28:03 +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 DBAEUR03FT049.mail.protection.outlook.com (100.127.142.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.34 via Frontend Transport; Wed, 19 Jul 2023 23:28:03 +0000 Received: ("Tessian outbound d7adc65d10b4:v145"); Wed, 19 Jul 2023 23:28:03 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6b4688acc2bc7b9f X-CR-MTA-TID: 64aa7808 Received: from d5ac575a0a6e.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6C39B8ED-A6EE-4B00-A1AF-BCAB835FF9BA.1; Wed, 19 Jul 2023 23:27:57 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d5ac575a0a6e.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 19 Jul 2023 23:27:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cb+tQIgbNkOH65r+f1n5Gj7rIOMQNiWtXRcipmv+QVNXIhlqx5oV2HU6a320Uyc6I+nH8PWGVKOZD6gxeNltFzjcp3fijBFjuNQpqg+u7RK1gl7pYiD0wbuuCY802LTKSb5bXUSEtsfLQ/wdvklRZRaJmXK+cFPO55OSy0YbzpalIT9gxg0OiMVaVPkkK1xZmv8Sw96Y9ot2CB/s8a2UMrfGpImbQC/1GIenbnH1PGW6Cz7H7RAKltK7m2VGeLiy2Pi0uZivBsnCplV11a7f2qVzRhaocYZVBs+eT4cuRhAuFFebgX06AFZ2OxFOUiEkUmccNukG8js9YOnqyy6GSw== 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=weI4th/OAoGEvDg50a+L+6gIuqV3u36UK3J6sgekRxU=; b=NsPaiCcg4E0AqawhskAiw/OqUeN10ORuKQB2E0wTfNrCR+hyzJ2AGdJ0OEo5IlsK84olHmTrxyGRvowrO64u4AWM4N9nvRPD+ttFdVFF342mVDgjnDw8U8bSR1v9T8emCIH8rCszYWhvMgZRub5o8XOZ0FkmiBT+BwoDfqPvPLxL+mc5kS7N7Z2Utw6eUsnAXMSUFMDjaaBAm330owCUBPm3CPEjqVf/WghzUHKlySLUruDnAS5l8YbcZ47dIWBQ43TkfTh/zQ7Azn2vIoWuTa3/GaUj6cXM88KKb744ugcIjWGoD0fHEreu9O/gR2sG3Ku4mni5rNXQ8Zeg9SQZ8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none 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=weI4th/OAoGEvDg50a+L+6gIuqV3u36UK3J6sgekRxU=; b=9r+CRS7RYkECHU+JnCxRxmG/YKH13xt//JqnL+GNNiNIikqx58o4zRDRaGOloaunC+FR27B+6/8pF9Hath4C9o03DmHbk1x7+45wNODPSZe9nrwbWQrYhn+GXpeSXy5jSundG6keFj36HQbrBewLAXiqnt+l6xGHs9uTx9eAcJg= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) by DU0PR08MB8929.eurprd08.prod.outlook.com (2603:10a6:10:464::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.24; Wed, 19 Jul 2023 23:27:55 +0000 Received: from AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::ac4d:9a5f:d7f5:4b39]) by AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::ac4d:9a5f:d7f5:4b39%5]) with mapi id 15.20.6588.031; Wed, 19 Jul 2023 23:27:54 +0000 Date: Thu, 20 Jul 2023 00:27:51 +0100 From: Andrew Carlotti To: Ramana Radhakrishnan Cc: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com, Richard Earnshaw Subject: Re: [GCC 13 PATCH] aarch64: Remove architecture dependencies from intrinsics Message-ID: <2b752c54-6bd2-1d74-412c-cdbec0eabc03@e124511.cambridge.arm.com> References: <98b3efca-4c1c-7797-022c-0be09087d086@e124511.cambridge.arm.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: LO3P265CA0026.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:387::9) To AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6678:EE_|DU0PR08MB8929:EE_|DBAEUR03FT049:EE_|PAVPR08MB9260:EE_ X-MS-Office365-Filtering-Correlation-Id: edf1c76c-7990-440e-f1c3-08db88afccaf 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: YJw5f+nUvgFbdSSoGMW15V1i+RMffrx6ao4V0Ndz/FtkQY7+ayTmRQYt7VVR+72B7Km9lrX3uV/Tx2U02adeTX1HS31+Du1xNarSlE6SRfPOuRG1xvZGjQAv6QVNinpUBmpMtFG7clFQE2qqfEmcs7EUcsLPQZrL3pFg1acuthmJeouiKqWoKUN5WcN9IUgogidUt4ALr4si2whVPQuHhWlQeEYTDEE4V+vHSH435ojjiKDt/q6CktFzz6v2oNbl6hn9OAtBojWlnnrtarNazeyzeaKBc5C3w3FfugSJWbHyVvEG/p2uv0+ni8A+xtyiJd7LlifAWsfB647BjNt+fJpmu7nFT+NM53g5VpFAbfwphjSNoxIkOYBENjw4+ahsNpZVKTRGfw85ANiORtylmXSskBVnVwrDMDedqRtV3dB6NB3B5sA+EYxbL7POzwd2Znu0XnUCYpT6/hEYOUQUyapD4uk0gfnCrkHVlMLMlX216j7Qxs2AEcY4w0a/N3WR30Bq0lMbgwNqRRhLai1/qNFXCHQkroRzAx1usf4LSCAw+6FaXTrG9HaSob1vJSkR9jzEGs+KSRrVdT/BFb+s7g== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR08MB6678.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(366004)(136003)(346002)(376002)(396003)(451199021)(966005)(66946007)(44832011)(6512007)(66556008)(6666004)(6486002)(66476007)(2906002)(316002)(8936002)(53546011)(8676002)(6916009)(4326008)(5660300002)(6506007)(38100700002)(186003)(26005)(41300700001)(84970400001)(86362001)(478600001)(83380400001)(31686004)(31696002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8929 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT049.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b181b80a-27a5-482c-801c-08db88afc6fd X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6KADXe3LpRsJXP17isBFlTz1HRl2q0YgE/S4yhwdecaDu6n0E2eMX5hhv/XN+646+8sjtAfZqGRpfQy1Ck/C0m7TkxfPccm92/+Vgo0VcdUKit2/FGECKrKRVmMkwOlLIV8WLZGWPqIoDanYaYGN96Z84QbZufV388uvK1FyBbtcNTyBlRqHN1Hjc+najaDboak/of3N16Fj4axd4cpH3Q7jzFB+7Iql/bXxKSpbOeM5e9v7INXUPmwoz8GNkstTqHFXGiEm5whIqyDtGYsL4GFA0idn1G5Qmmq/4Nmv7MQJEvo6HOnKMm/k2obg36yyLgrdQOrzlLK3JnMdVBR20Tz0juLWRUGLLKESd/Vjytdn9yAMo4vP/xxwxNDXDBBW1SstQowZTnS/C7RqtFT62VBQ8qqg9OkraL3GpqVqMHSeUyjlRNvTh0husHjbtKx+5T6QZnfiB2jfbXqPyxahM6rt6t88RjrVT/Tj4cjFEiPxh0uwztngE12fsEyCUvrMo0+CxMEWqjVGq/MhDY1Tecl3UNghRkD9yLJAdlCWDLTBaxn3sF9kLjD7xI09Z2kng+Km/UrDHsoRNNjMXmQDRH6kiOWUp+JWowoBwAX1OWudY+X4x7m6H31FNhLEjYx3KOI4s98/9BenyqgJOFRhGaEMEJ+YxXsvhZ7XdWLWtt2k+xmg91vhV9hL8G55VC9CprKqs+z2/B6Dj/vX9f7wSAi3Zq6GmvBQoJeoIUYlxum0ma32viibQtawwMWDXkpiJGdZ507IVHU8lL/1wOJ7DQ== 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:(13230028)(4636009)(136003)(39860400002)(396003)(376002)(346002)(451199021)(82310400008)(40470700004)(46966006)(36840700001)(478600001)(6486002)(6666004)(6512007)(53546011)(186003)(316002)(26005)(70586007)(2906002)(356005)(6506007)(44832011)(966005)(8936002)(5660300002)(8676002)(41300700001)(6862004)(70206006)(81166007)(86362001)(40460700003)(31696002)(36860700001)(83380400001)(82740400003)(47076005)(336012)(40480700001)(84970400001)(31686004)(4326008);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2023 23:28:03.7481 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: edf1c76c-7990-440e-f1c3-08db88afccaf 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: DBAEUR03FT049.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9260 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Jul 19, 2023 at 07:35:26PM +0100, Ramana Radhakrishnan wrote: > On Wed, Jul 19, 2023 at 5:44 PM Andrew Carlotti via Gcc-patches > wrote: > > > > Updated patch to fix the fp16 intrinsic pragmas, and pushed to master. > > OK to backport to GCC 13? > > > > > > Many intrinsics currently depend on both an architecture version and a > > feature, despite the corresponding instructions being available within > > GCC at lower architecture versions. > > > > LLVM has already removed these explicit architecture version > > dependences; this patch does the same for GCC. Note that +fp16 does not > > imply +simd, so we need to add an explicit +simd for the Neon fp16 > > intrinsics. > > > > Binutils did not previously support all of these architecture+feature > > combinations, but this problem is already reachable from GCC. For > > example, compiling the test gcc.target/aarch64/usadv16qi-dotprod.c > > with -O3 -march=armv8-a+dotprod has resulted in an assembler error since > > GCC 10. This is fixed in Binutils 2.41. > > Are there any implementations that actually implement v8-a + dotprod > ?. As far as I'm aware this was v8.2-A as the base architecture where > this was allowed. Has this changed recently? > > > regards > Ramana I don't recall whether there are any physical implementations of DotProd without Armv8.2, but similar situations have already occurred with other features. There are also situations where developers wish to enable only a subset of available features. For example, the existing restrictions in GCC have forced Chromium to disable their memtag support when building with GCC [1]; with this patch, they will be able to reenable memtag support from GCC 14 (and GCC 13.x when this is backported). I don't see any advantages to trying to enforce minimum architecture versions for features in GCC, except perhaps maintaining the status quo. But the status quo is already rather inconsistent, and these changes only make GCC more permissive (and only for options that currently don't work). [1] https://chromium-review.googlesource.com/c/chromium/src/+/3238466