Rollup merge of #149549 - Jamesbarford:chore/regression-test-ttbr0_el2, r=WaffleLapkin
Regression test for system register `ttbr0_el2` Regression test for recognising the `ttbr0_el2` register. closes rust-lang/rust#97724
This commit is contained in:
commit
05b2958024
1 changed files with 11 additions and 0 deletions
11
tests/ui/asm/aarch64/ttbr0_el2.rs
Normal file
11
tests/ui/asm/aarch64/ttbr0_el2.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
//! Regression test for #97724, recognising ttbr0_el2 as a valid armv8 system register
|
||||
//@ only-aarch64
|
||||
//@ build-pass
|
||||
use std::arch::asm;
|
||||
|
||||
static PT: [u64; 512] = [0; 512];
|
||||
fn main() {
|
||||
unsafe {
|
||||
asm!("msr ttbr0_el2, {pt}", pt = in(reg) &PT as *const _ );
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue