forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#127513 - nikic:llvm-19, r=<try>
Update to LLVM 19 Related changes: * rust-lang#127605 * rust-lang#127613 * rust-lang#127654 * rust-lang#128141 * llvm/llvm-project#98933 try-job: dist-x86_64-apple try-job: dist-apple-various try-job: x86_64-apple-1 try-job: x86_64-apple-2 try-job: dist-aarch64-apple try-job: aarch64-apple
- Loading branch information
Showing
12 changed files
with
98 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule llvm-project
updated
from c54cff to 80205e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Test that the correct module flags are emitted with different branch protection flags. | ||
|
||
//@ revisions: BTI PACRET LEAF BKEY NONE | ||
//@ needs-llvm-components: aarch64 | ||
//@ [BTI] compile-flags: -Z branch-protection=bti | ||
//@ [PACRET] compile-flags: -Z branch-protection=pac-ret | ||
//@ [LEAF] compile-flags: -Z branch-protection=pac-ret,leaf | ||
//@ [BKEY] compile-flags: -Z branch-protection=pac-ret,b-key | ||
//@ compile-flags: --target aarch64-unknown-linux-gnu | ||
//@ ignore-llvm-version: 19 - 99 | ||
|
||
#![crate_type = "lib"] | ||
#![feature(no_core, lang_items)] | ||
#![no_core] | ||
|
||
#[lang = "sized"] | ||
trait Sized {} | ||
|
||
// A basic test function. | ||
pub fn test() {} | ||
|
||
// BTI: !"branch-target-enforcement", i32 1 | ||
// BTI: !"sign-return-address", i32 0 | ||
// BTI: !"sign-return-address-all", i32 0 | ||
// BTI: !"sign-return-address-with-bkey", i32 0 | ||
|
||
// PACRET: !"branch-target-enforcement", i32 0 | ||
// PACRET: !"sign-return-address", i32 1 | ||
// PACRET: !"sign-return-address-all", i32 0 | ||
// PACRET: !"sign-return-address-with-bkey", i32 0 | ||
|
||
// LEAF: !"branch-target-enforcement", i32 0 | ||
// LEAF: !"sign-return-address", i32 1 | ||
// LEAF: !"sign-return-address-all", i32 1 | ||
// LEAF: !"sign-return-address-with-bkey", i32 0 | ||
|
||
// BKEY: !"branch-target-enforcement", i32 0 | ||
// BKEY: !"sign-return-address", i32 1 | ||
// BKEY: !"sign-return-address-all", i32 0 | ||
// BKEY: !"sign-return-address-with-bkey", i32 1 | ||
|
||
// NONE-NOT: branch-target-enforcement | ||
// NONE-NOT: sign-return-address | ||
// NONE-NOT: sign-return-address-all | ||
// NONE-NOT: sign-return-address-with-bkey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters