diff options
| author | Reuben Cruise <reuben.cruise@arm.com> | 2025-09-02 16:13:51 +0100 | 
|---|---|---|
| committer | Reuben Cruise <reuben.cruise@arm.com> | 2025-09-22 11:29:54 +0100 | 
| commit | 06819d95c0697c6a2f8f1498a22260f47c210bd7 (patch) | |
| tree | f4bcfa86f535ff2c9762e89f212695b0f197ae3f /tests/assembly-llvm/aarch64-pointer-auth.rs | |
| parent | 6f813e887af44d74e9bcfdb207ecab407037a939 (diff) | |
| download | rust-06819d95c0697c6a2f8f1498a22260f47c210bd7.tar.gz rust-06819d95c0697c6a2f8f1498a22260f47c210bd7.zip | |
Extends branch protection tests to include GCS
Diffstat (limited to 'tests/assembly-llvm/aarch64-pointer-auth.rs')
| -rw-r--r-- | tests/assembly-llvm/aarch64-pointer-auth.rs | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/tests/assembly-llvm/aarch64-pointer-auth.rs b/tests/assembly-llvm/aarch64-pointer-auth.rs index 56a26df469f..e1ca6d77581 100644 --- a/tests/assembly-llvm/aarch64-pointer-auth.rs +++ b/tests/assembly-llvm/aarch64-pointer-auth.rs @@ -1,10 +1,13 @@ // Test that PAC instructions are emitted when branch-protection is specified. //@ add-core-stubs -//@ revisions: PACRET PAUTHLR_NOP PAUTHLR +//@ revisions: GCS PACRET PAUTHLR_NOP PAUTHLR //@ assembly-output: emit-asm //@ needs-llvm-components: aarch64 //@ compile-flags: --target aarch64-unknown-linux-gnu +//@ [GCS] min-llvm-version: 21 +//@ [GCS] ignore-apple (XCode version needs updating) +//@ [GCS] compile-flags: -Z branch-protection=gcs //@ [PACRET] compile-flags: -Z branch-protection=pac-ret,leaf //@ [PAUTHLR_NOP] compile-flags: -Z branch-protection=pac-ret,pc,leaf //@ [PAUTHLR] compile-flags: -C target-feature=+pauth-lr -Z branch-protection=pac-ret,pc,leaf @@ -17,6 +20,7 @@ extern crate minicore; use minicore::*; +// GCS: .aeabi_attribute 2, 1 // Tag_Feature_GCS // PACRET: hint #25 // PACRET: hint #29 // PAUTHLR_NOP: hint #25 | 
