Message ID | 20241108144816.2681175-6-yury.khrustalev@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4XlMLp1gQVz1xyM for <incoming@patchwork.ozlabs.org>; Sat, 9 Nov 2024 01:50:42 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 62BA7385843D for <incoming@patchwork.ozlabs.org>; Fri, 8 Nov 2024 14:50:40 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id E42573857810; Fri, 8 Nov 2024 14:49:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E42573857810 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 E42573857810 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731077358; cv=none; b=ptUcA8yZ6LSgwnq2dO1OD9/+ZNE8PKjj4Qrsm4toZERpwpo95XOtk+d1CY9cJNQjLKlUXABfC1BHpjN+HylAFQTQgupL7hZzKFOvXahVXNlL7r7nrVIukxlAWTrrjgaQAUeVvp7KFI7uEp+/1c1J/QlIsQNPyy06csWNc/Y/l3U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731077358; c=relaxed/simple; bh=ZUeJWIkj0qKvHhHb+ttgsVgxfe/fydGwK81g7e6jQbY=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=TCN62K8IJI+7CCZEyy7t9WDM+pnD+rZXIaS5aP1KPcomNrh43WamyzB7D7R80sDONDR16a90zlh0ThNoUYzAx/1XI0ePZ1cFikFgSdDFcKlXxJepZXOAKsCpPagSFtfj15jfOoE6mlInAQu9qhQFG8AmnWz84yLqEijFnHLByCA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 94DD6339; Fri, 8 Nov 2024 06:49:44 -0800 (PST) Received: from udebian.localdomain (unknown [10.57.26.225]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3E4EA3F528; Fri, 8 Nov 2024 06:49:13 -0800 (PST) From: Yury Khrustalev <yury.khrustalev@arm.com> To: gcc-patches@gcc.gnu.org Cc: nsz@gcc.gnu.org, richard.earnshaw@arm.com, matthieu.longo@arm.com, richard.ball@arm.com, richard.sandiford@arm.com, ktkachov@nvidia.com, john.brawn@arm.com Subject: [PATCH v3 05/23] aarch64: Add ACLE __chkfeat intrinsic Date: Fri, 8 Nov 2024 14:47:58 +0000 Message-Id: <20241108144816.2681175-6-yury.khrustalev@arm.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241108144816.2681175-1-yury.khrustalev@arm.com> References: <20241108144816.2681175-1-yury.khrustalev@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
aarch64: Add support for Guarded Control Stack extension
|
expand
|
diff --git a/gcc/config/aarch64/arm_acle.h b/gcc/config/aarch64/arm_acle.h index ab4e7e60e04..e363587701c 100644 --- a/gcc/config/aarch64/arm_acle.h +++ b/gcc/config/aarch64/arm_acle.h @@ -190,8 +190,21 @@ __rint64x (double __a) #pragma GCC pop_options + #pragma GCC push_options +#pragma GCC target ("arch=armv8.9-a") + +__extension__ extern __inline uint64_t +__attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) +__chkfeat (uint64_t __feat) +{ + return __builtin_aarch64_chkfeat (__feat) ^ __feat; +} +#pragma GCC pop_options + + +#pragma GCC push_options #pragma GCC target ("+nothing+crc") __extension__ extern __inline uint32_t