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)] aarch64: Add target pragma tests for gcs Date: Wed, 10 Apr 2024 10:48:03 +0000 (GMT) [thread overview] Message-ID: <20240410104803.3B0B13858C78@sourceware.org> (raw) https://gcc.gnu.org/g:311c3aa1e58672c36991a193db5752d3dcf8e7d9 commit 311c3aa1e58672c36991a193db5752d3dcf8e7d9 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 8e707630774..417293d4d5a 100644 --- a/gcc/testsuite/gcc.target/aarch64/pragma_cpp_predefs_4.c +++ b/gcc/testsuite/gcc.target/aarch64/pragma_cpp_predefs_4.c @@ -91,6 +91,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 @@ -99,6 +102,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" @@ -117,6 +123,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 @@ -133,3 +142,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
next reply other threads:[~2024-04-10 10:48 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-04-10 10:48 Szabolcs Nagy [this message] -- strict thread matches above, loose matches on Subject: below -- 2024-02-14 15:26 Szabolcs Nagy
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=20240410104803.3B0B13858C78@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).