From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:2613::601]) by sourceware.org (Postfix) with ESMTPS id 2DFE63858431 for ; Thu, 15 Aug 2024 15:39:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2DFE63858431 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 2DFE63858431 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2613::601 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1723736366; cv=pass; b=vr3kuH9Mbxya9NlirsvRHp5OdNqq3XX5Xai6zzXO/Rg5okxmdRK0OGMww0RaB1GoSUzf27uxAq0BHmFcJYhbkYVscD6PN2I0nqgjGbW72dKZq4zWipqJGB2wvBZgqVGc/NgioEx+4/85uBfSCEPTJ12SGkQP1ge2yCLKNyBWfHQ= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1723736366; c=relaxed/simple; bh=7gtLONzcdIam48q5dO0U3Tvu0BBZ1qEuoMxVyrSUY2I=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=qcOjJJlRXx1eGW0mGvtZT3l9ndgZ/+eglkwEBF+qQjYMJrZmWRrbrSJ1JumM3dGdffbfmYcU6Dh2+KNdxzVF7rHyEaroVWnJ4e7urb7pHqg4QaDQiEqP/2Q2WhlDBXb0N86/bao6NqcR5R2KvMJHbe1txFFdSJklhr5SqgJGKcg= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=xQfc378bCMinOyx8TOwKqp0N1SNcrQcyzYaLTnuNwMLWgvPsQ7ryZBrYG0rDzqSuXXSTX4A0dIHfxZe+K2QKHsG5l+7gqZnJFA2z/I8SANkZSvR7LKmt0kMIagB0f/OROyKYqbtg5OU0JQ1UGcncAMPPZH+dXXyzpOG69pXFRLAb/QXbtSCu/DYPS9VK6OYdYpzPsbe85a7McJhmfJE3j2GRjlFpQFBLWHqa0lR8r8lLfzQvXCtCHnOFBtIjfkO2jTNXG2dUAyAgruyz7yOFq/amYwa66SdQPspwMOjsDpnXAIcr8a29nQ40pUGarEy1NwVFtoW4VxtMae32jI5OEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ZqCpDo75utA49NiEYSyAn7ZtUoswUPcXWg9pQhXQg6g=; b=WQ4RTG3TKzC1hbcYnGjrMjLNydzpckAybvQHOVb94p+NE+MN1/NsAQ6OKqBMM7/+tKjqhzQXaNyF9as84C9wSEqIdTNcLkAKCKHaUt5350HbKOGjLMvirThn2HrG2NtmMPWqcg05GmKTJtbjJZfXBDloQ/KexlozNCdRFPkESLuBLDDYp3CaP8erd0f6D3vM3MxdwrZYZAtpJAzPNAzx7jSp7vYrzOheFs20V6cBU00HnAuD2YLlGea62tjLqx3aeJl41leDzAJztRdFDf9G838AxskqUjP8KI0U9ZIn/IPgYUOhN68dtJCipp04D/wH26CLCWbF5Qm5sYyfI3K/Gg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.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=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZqCpDo75utA49NiEYSyAn7ZtUoswUPcXWg9pQhXQg6g=; b=LibYRYFnh6o+Pb0jR+p4ByN8AqyUF+mrm4TAp3LZfYteCiAT4sg+yTqQWvJn90PM0//X3psUWzhOk45xrMB9JLrbw2CtxxXS6lvCzOoHXzEhwT55AAXtg5EGZZCeTa26OTNfP4FGsOH8/zJItw1gmzEgRa5RHKHFbTq/XSJL724= Received: from AM5PR0101CA0004.eurprd01.prod.exchangelabs.com (2603:10a6:206:16::17) by AM9PR08MB5922.eurprd08.prod.outlook.com (2603:10a6:20b:2dd::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.9; Thu, 15 Aug 2024 15:39:18 +0000 Received: from AM2PEPF0001C714.eurprd05.prod.outlook.com (2603:10a6:206:16:cafe::cf) by AM5PR0101CA0004.outlook.office365.com (2603:10a6:206:16::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.19 via Frontend Transport; Thu, 15 Aug 2024 15:39:18 +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=arm.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 AM2PEPF0001C714.mail.protection.outlook.com (10.167.16.184) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7849.8 via Frontend Transport; Thu, 15 Aug 2024 15:39:18 +0000 Received: ("Tessian outbound 1d2b3b5e3ba0:v403"); Thu, 15 Aug 2024 15:39:18 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 59401edf57bb9495 X-CR-MTA-TID: 64aa7808 Received: from L6904029e1497.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 05775BFC-72E5-4D66-B414-CC601FBC1FB9.1; Thu, 15 Aug 2024 15:39:12 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L6904029e1497.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 15 Aug 2024 15:39:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Lam81eK55T69GsyqzK5eIA6AG+kNuR+n38mpCfSPZo5EHzoW2QBe1f4G/oIOtaYfwYSbsbIlAwg0iSVtCUTDEOU2C1JGgw2ljo+zZWC3puP0NNOjvKfmbOvDrqggjbCLtSv9bgy2vxP1y+8TsR7zINYmUjQa7e++XwpP7dg1xpWXUdjQiteA8Wno5Szwu2YKMttcoop5syKkvFrxQwaqgr0o5ORXVW62OuPA/5v0Ijzrn7Mv4ygsp31SditJhDwuyyBMyAC43Keo7o9AccC5MwG9ID6G3UPJKESiL+a1EsytT/+OWRdL9v4AOlA6PRGt0BVnUYyRUjrF4Qg2VzIUVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ZqCpDo75utA49NiEYSyAn7ZtUoswUPcXWg9pQhXQg6g=; b=NuqAeCGBnLzVIisV8fipn06YTYfIAomEhS21pU7IogbRm+vcjLGptDco8xLsHg70L6HA4o5Kfd9HUh6c69BehUsh59CbdWE7319L5APud+ZNQA/tMO7trz/zP3NXGubxrbXoGVTt6a/z95OurgkXs7XeKDMa4R+Gf4u+v5YWjI03N0spiGJAZeLEH1w84EuYoik3ETmCqz4W469NHnm04cZvd91g/ETlBmv/lQqFy8OtI6agUSP3FODWWcIZRoe+sPbpi2gLyHcdMZoJQLfkn7PGm1WZy22nYFPI/TSO8JUcikI0MeulkInPgmItWY+7Su73+CtwKVo2RADwAkUQ5Q== 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=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZqCpDo75utA49NiEYSyAn7ZtUoswUPcXWg9pQhXQg6g=; b=LibYRYFnh6o+Pb0jR+p4ByN8AqyUF+mrm4TAp3LZfYteCiAT4sg+yTqQWvJn90PM0//X3psUWzhOk45xrMB9JLrbw2CtxxXS6lvCzOoHXzEhwT55AAXtg5EGZZCeTa26OTNfP4FGsOH8/zJItw1gmzEgRa5RHKHFbTq/XSJL724= 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 DB9PR08MB9466.eurprd08.prod.outlook.com (2603:10a6:10:458::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.16; Thu, 15 Aug 2024 15:39:09 +0000 Received: from AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::3b48:ae45:5b79:cc29]) by AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::3b48:ae45:5b79:cc29%5]) with mapi id 15.20.7897.007; Thu, 15 Aug 2024 15:39:09 +0000 Date: Thu, 15 Aug 2024 16:39:07 +0100 From: Andrew Carlotti To: gcc-patches@gcc.gnu.org, Richard Sandiford , Richard Earnshaw Subject: [PATCH v3 5/5] aarch64: Fix ls64 intrinsic availability Message-ID: <8e467116-e6e8-f0fe-7699-3cfc30cc72e1@e124511.cambridge.arm.com> References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: LO4P123CA0159.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:188::20) To AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6678:EE_|DB9PR08MB9466:EE_|AM2PEPF0001C714:EE_|AM9PR08MB5922:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b10d2e4-09ec-4400-2137-08dcbd406d34 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info-Original: =?us-ascii?Q?1HudGyN6EQzx4XdMCkbuXN5XAYH3LlhviJnx7CEcPZPKlktZ9gXF4/xOhfPh?= =?us-ascii?Q?UgxmcV/qtL+5D4yBRZfyyS2B6Cq/R8MkqTrvopEaoz6bXY9Qn4iCizq/hfUX?= =?us-ascii?Q?EOEp1bgQA6PyoUybSi/94PQ5z9d7wtIzXhkiNmZ6fvHHfvsOK9PG9rU3+CsH?= =?us-ascii?Q?EIlG3vkLpxY8jDZ3gGQrTnLF1SXUsO42zMMx3PPU/RxhP8rNkuAKhnKT0Whx?= =?us-ascii?Q?Xt8khNeTJWE2uldBx3IxYI65nkuS4EW6ZQ58Uzpwo2Mh7xDx02LZk61/pMsj?= =?us-ascii?Q?9A07jTpdySB1eaQEZuYhzxFkkxOuZjHd+WfC7UT0YnkQepyvVUt1381XKS8P?= =?us-ascii?Q?H2AhjtyEcQcN8wOl3uWjqqHyVNRwGN0oXAAJdmRDMOMdZAdU0agGzQ/L6MD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u7wgfkU01b6y5gvwRJUwjNLf9Sv?= =?us-ascii?Q?oIHzLHe0sOaMvjs+RE5LOjJP?= 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:(13230040)(1800799024)(366016)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB9466 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-SkipListedInternetSender: ip=[2603:10a6:20b:398::8];domain=AS8PR08MB6678.eurprd08.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM2PEPF0001C714.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c08d0e88-5e78-46a7-b463-08dcbd40677e X-Microsoft-Antispam: BCL:0;ARA:13230040|35042699022|36860700013|1800799024|82310400026|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?p/nJAWw5lxPyxm2YJ5ORBOCTRKCfEbZ0TsgY5KAgR2mOeLeN2aTvNsxCEWhD?= =?us-ascii?Q?7y+/PfKFgqriaedtKcp6l3AxI3Y8d3mhDsVddG5EwS2R8shbckVA/H34jain?= =?us-ascii?Q?A5lOYejryq6JHiBS1JUnVMMKyb1KIqRXnL9GpSmta3O+9vFdggxexlJXodSC?= =?us-ascii?Q?ZjUBCz8WRz65DyxGwf5T48mUUt+O2rEaqe0Sij4ff6eaAuoWvE0masBhuLON?= =?us-ascii?Q?+SeWGjIjuCOcKYriranvOPciZ9gUSpwEpNTZYaPwl1OibLps7qiu5coBW2od?= =?us-ascii?Q?Sy7mx16megBJYobHc5Y8rBBALJHjAxXD8bBSQsJbmFjg4qcmNqB4obD7hpSb?= =?us-ascii?Q?SekDq2Sk7TecBGU2v+2lEZfo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?WPweU7R96SYG5PLnX6jSHQAEmdMNs36wyFS3SPkqHZTajuXR2Vn3i4rDK/vo?= =?us-ascii?Q?iIiWZNEdEKVXi7PzTEYnCI9Z2DWQ3r8MKDDgzBz1nwXsNx1RvZpHX5KUQa3u?= =?us-ascii?Q?YVu13HdUYFRhv6f7ag1madySrLZ6DMRXo3mfRm12QgJRSPKMMw=3D=3D?= 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:(13230040)(35042699022)(36860700013)(1800799024)(82310400026)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2024 15:39:18.5894 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7b10d2e4-09ec-4400-2137-08dcbd406d34 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: AM2PEPF0001C714.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5922 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,GIT_PATCH_0,KAM_LOTSOFHASH,KAM_SHORT,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: The availability of ls64 intrinsics and data types were determined solely by the globally specified architecture features, which did not reflect any changes specified in target pragmas or attributes. This patch removes the initialisation-time guards for the intrinsics, and replaces them with checks at use time. We also get better error messages when ls64 is not available (matching the existing error messages for SVE intrinsics). The data512_t type is made always available; this is consistent with the present behaviour for Neon fp16/bf16 types. gcc/ChangeLog: PR target/112108 * config/aarch64/aarch64-builtins.cc (handle_arm_acle_h): Remove feature check at initialisation. (aarch64_general_check_builtin_call): Check ls64 intrinsics. * config/aarch64/arm_acle.h: (data512_t) Make always available. gcc/testsuite/ChangeLog: PR target/112108 * gcc.target/aarch64/acle/ls64_guard-1.c: New test. * gcc.target/aarch64/acle/ls64_guard-2.c: New test. * gcc.target/aarch64/acle/ls64_guard-3.c: New test. * gcc.target/aarch64/acle/ls64_guard-4.c: New test. diff --git a/gcc/config/aarch64/aarch64-builtins.cc b/gcc/config/aarch64/aarch64-builtins.cc index 9c6d9ec7537e7c473dc42a27a7737d80aab9cddb..eb878b933fe5ba4ee35a371d7149cd14ef161c2c 100644 --- a/gcc/config/aarch64/aarch64-builtins.cc +++ b/gcc/config/aarch64/aarch64-builtins.cc @@ -2062,8 +2062,7 @@ aarch64_init_data_intrinsics (void) void handle_arm_acle_h (void) { - if (TARGET_LS64) - aarch64_init_ls64_builtins (); + aarch64_init_ls64_builtins (); aarch64_init_tme_builtins (); aarch64_init_memtag_builtins (); } @@ -2311,6 +2310,13 @@ aarch64_general_check_builtin_call (location_t location, vec, return aarch64_check_required_extensions (location, decl, AARCH64_FL_TME); + case AARCH64_LS64_BUILTIN_LD64B: + case AARCH64_LS64_BUILTIN_ST64B: + case AARCH64_LS64_BUILTIN_ST64BV: + case AARCH64_LS64_BUILTIN_ST64BV0: + return aarch64_check_required_extensions (location, decl, + AARCH64_FL_LS64); + default: break; } diff --git a/gcc/config/aarch64/arm_acle.h b/gcc/config/aarch64/arm_acle.h index ab04326791309796125860ce64e63fe858a4a733..ab4e7e60e046a9e9c81237de2ca5463c3d4f96ca 100644 --- a/gcc/config/aarch64/arm_acle.h +++ b/gcc/config/aarch64/arm_acle.h @@ -265,9 +265,7 @@ __crc32d (uint32_t __a, uint64_t __b) #define _TMFAILURE_INT 0x00800000u #define _TMFAILURE_TRIVIAL 0x01000000u -#ifdef __ARM_FEATURE_LS64 typedef __arm_data512_t data512_t; -#endif #pragma GCC push_options #pragma GCC target ("+nothing+rng") diff --git a/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-1.c b/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-1.c new file mode 100644 index 0000000000000000000000000000000000000000..7dfc193a2934c994220280990316027c07e75ac4 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-1.c @@ -0,0 +1,9 @@ +/* { dg-do compile } */ +/* { dg-additional-options "-march=armv8.6-a" } */ + +#include + +data512_t foo (void * p) +{ + return __arm_ld64b (p); /* { dg-error {ACLE function '__arm_ld64b' requires ISA extension 'ls64'} } */ +} diff --git a/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-2.c b/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-2.c new file mode 100644 index 0000000000000000000000000000000000000000..3ede05a81f026f8606ee2c9cd56f15ce45caa1c8 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-2.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-additional-options "-march=armv8.6-a" } */ + +#include + +#pragma GCC target("arch=armv8-a+ls64") +data512_t foo (void * p) +{ + return __arm_ld64b (p); +} diff --git a/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-3.c b/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-3.c new file mode 100644 index 0000000000000000000000000000000000000000..e0fccdad7bec4aa522fb709d010289fd02f91d05 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-3.c @@ -0,0 +1,9 @@ +/* { dg-do compile } */ +/* { dg-additional-options "-march=armv8-a+ls64 -mgeneral-regs-only" } */ + +#include + +data512_t foo (void * p) +{ + return __arm_ld64b (p); +} diff --git a/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-4.c b/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-4.c new file mode 100644 index 0000000000000000000000000000000000000000..af1d9a4241fd0047c52735a8103eeaa45525ffc0 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/acle/ls64_guard-4.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-additional-options "-march=armv8-a+ls64" } */ + +#include + +#pragma GCC target("arch=armv8.6-a") +data512_t foo (void * p) +{ + return __arm_ld64b (p); /* { dg-error {ACLE function '__arm_ld64b' requires ISA extension 'ls64'} } */ +}