summary refs log tree commit diff
path: root/compiler/rustc_interface/src/tests.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-05 20:10:49 +0100
committerGitHub <noreply@github.com>2024-11-05 20:10:49 +0100
commitc8247c0a198048a35d0fee1fe35e3809ba88022d (patch)
tree64718359a4c85699a77b7bc0acc46ba02a1f176d /compiler/rustc_interface/src/tests.rs
parente8c698bb3bdc121ac7f65919bd16d22f6567a3f1 (diff)
parent10edeea4b48d852fb9366a2d4d4dde5055501a7c (diff)
downloadrust-c8247c0a198048a35d0fee1fe35e3809ba88022d.tar.gz
rust-c8247c0a198048a35d0fee1fe35e3809ba88022d.zip
Rollup merge of #132259 - mrkajetanp:branch-protection-pauth-lr, r=davidtwco
rustc_codegen_llvm: Add a new 'pc' option to branch-protection

Add a new 'pc' option to -Z branch-protection for aarch64 that enables the use of PC as a diversifier in PAC branch protection code.

When the pauth-lr target feature is enabled in combination with -Z branch-protection=pac-ret,pc, the new 9.5-a instructions (pacibsppc, retaasppc, etc) will be generated.
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
-rw-r--r--compiler/rustc_interface/src/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index 35bba149d0a..ce90ceeda56 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -764,7 +764,7 @@ fn test_unstable_options_tracking_hash() {
         branch_protection,
         Some(BranchProtection {
             bti: true,
-            pac_ret: Some(PacRet { leaf: true, key: PAuthKey::B })
+            pac_ret: Some(PacRet { leaf: true, pc: true, key: PAuthKey::B })
         })
     );
     tracked!(codegen_backend, Some("abc".to_string()));