public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Szabolcs Nagy <nsz@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/gcs-13)] aarch64: Add target pragma tests for gcs Date: Wed, 14 Feb 2024 15:36:53 +0000 (GMT) [thread overview] Message-ID: <20240214153653.E55C9385E830@sourceware.org> (raw) https://gcc.gnu.org/g:2812fe42dc5dbfd06d8605854e2841a7ebec978f commit 2812fe42dc5dbfd06d8605854e2841a7ebec978f Author: Szabolcs Nagy <szabolcs.nagy@arm.com> Date: Fri Jun 30 16:50:23 2023 +0100 aarch64: Add target pragma tests for gcs gcc/testsuite/ChangeLog: * gcc.target/aarch64/pragma_cpp_predefs_4.c: Add gcs specific tests. Diff: --- .../gcc.target/aarch64/pragma_cpp_predefs_4.c | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gcc/testsuite/gcc.target/aarch64/pragma_cpp_predefs_4.c b/gcc/testsuite/gcc.target/aarch64/pragma_cpp_predefs_4.c index 04a457f0cfe8..683afb7b8f46 100644 --- a/gcc/testsuite/gcc.target/aarch64/pragma_cpp_predefs_4.c +++ b/gcc/testsuite/gcc.target/aarch64/pragma_cpp_predefs_4.c @@ -53,6 +53,9 @@ #if __ARM_FEATURE_PAC_DEFAULT != 1 #error Foo #endif +#ifndef __ARM_FEATURE_GCS_DEFAULT +#error Foo +#endif #pragma GCC target ("branch-protection=none") #ifdef __ARM_FEATURE_BTI_DEFAULT @@ -61,6 +64,9 @@ #ifdef __ARM_FEATURE_PAC_DEFAULT #error Foo #endif +#ifdef __ARM_FEATURE_GCS_DEFAULT +#error Foo +#endif #pragma GCC push_options #pragma GCC target "branch-protection=bti+pac-ret" @@ -79,6 +85,9 @@ #ifdef __ARM_FEATURE_PAC_DEFAULT #error Foo #endif +#ifdef __ARM_FEATURE_GCS_DEFAULT +#error Foo +#endif #pragma GCC target "branch-protection=pac-ret" #ifdef __ARM_FEATURE_BTI_DEFAULT @@ -95,3 +104,29 @@ #if __ARM_FEATURE_PAC_DEFAULT != 6 #error Foo #endif + +#pragma GCC target "branch-protection=gcs" +#ifdef __ARM_FEATURE_BTI_DEFAULT +#error Foo +#endif +#ifdef __ARM_FEATURE_PAC_DEFAULT +#error Foo +#endif +#ifndef __ARM_FEATURE_GCS_DEFAULT +#error Foo +#endif + +#pragma GCC target "arch=armv8.8-a+gcs" +#ifndef __ARM_FEATURE_GCS +#error Foo +#endif + +#pragma GCC target "arch=armv8.8-a+nogcs" +#ifdef __ARM_FEATURE_GCS +#error Foo +#endif + +#pragma GCC target "arch=armv8.8-a" +#ifdef __ARM_FEATURE_GCS +#error Foo +#endif
reply other threads:[~2024-02-14 15:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240214153653.E55C9385E830@sourceware.org \ --to=nsz@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).