Skip to content

Commit 7922479

Browse files
committed
Regression tests for system register ttbr0_el2
1 parent a80d39a commit 7922479

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/ui/asm/aarch64/ttbr0_el2.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//! Regression test for #97724, recognising ttbr0_el2 as a valid armv8 system register
2+
//@ only-aarch64
3+
//@ build-pass
4+
use std::arch::asm;
5+
6+
static PT: [u64; 512] = [0; 512];
7+
fn main() {
8+
unsafe {
9+
asm!("msr ttbr0_el2, {pt}", pt = in(reg) &PT as *const _ );
10+
}
11+
}

0 commit comments

Comments
 (0)