We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4cfac7 + 7922479 commit c5ca0f2Copy full SHA for c5ca0f2
tests/ui/asm/aarch64/ttbr0_el2.rs
@@ -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