1 // revisions: ropi rwpi
3 // [ropi] compile-flags: --target armv7-unknown-linux-gnueabihf -C relocation-model=ropi
4 // [rwpi] compile-flags: --target armv7-unknown-linux-gnueabihf -C relocation-model=rwpi
5 // [ropi] needs-llvm-components: arm
6 // [rwpi] needs-llvm-components: arm
9 #![feature(no_core, lang_items, rustc_attrs)]
11 #![crate_type = "rlib"]
13 #[rustc_builtin_macro]
20 // R9 is reserved as the RWPI base register
23 asm!("", out("r9") _);
24 //[rwpi]~^ cannot use register `r9`