From 984ca4689dbceea29bbfcf54c4743b45fccf7ad1 Mon Sep 17 00:00:00 2001 From: Jamie Cunliffe Date: Wed, 1 Dec 2021 15:56:59 +0000 Subject: Review comments - Changed the separator from '+' to ','. - Moved the branch protection options from -C to -Z. - Additional test for incorrect branch-protection option. - Remove LLVM < 12 code. - Style fixes. Co-authored-by: James McGregor --- src/test/codegen/branch-protection.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test/codegen') diff --git a/src/test/codegen/branch-protection.rs b/src/test/codegen/branch-protection.rs index 79706cdf070..106c9b148ee 100644 --- a/src/test/codegen/branch-protection.rs +++ b/src/test/codegen/branch-protection.rs @@ -3,10 +3,10 @@ // revisions: bti pac-ret leaf b-key // min-llvm-version: 12.0.0 // needs-llvm-components: aarch64 -// [bti] compile-flags: -C branch-protection=bti -// [pac-ret] compile-flags: -C branch-protection=pac-ret -// [leaf] compile-flags: -C branch-protection=pac-ret+leaf -// [b-key] compile-flags: -C branch-protection=pac-ret+b-key +// [bti] compile-flags: -Z branch-protection=bti +// [pac-ret] compile-flags: -Z branch-protection=pac-ret +// [leaf] compile-flags: -Z branch-protection=pac-ret,leaf +// [b-key] compile-flags: -Z branch-protection=pac-ret,b-key // compile-flags: --target aarch64-unknown-linux-gnu #![crate_type = "lib"] -- cgit 1.4.1-3-g733a5