1 // compile-flags: --target armv5te-unknown-linux-gnueabi
2 // needs-llvm-components: arm
6 #![feature(no_core, lang_items, rustc_attrs, isa_attribute)]
8 #![crate_type = "rlib"]
10 #[rustc_builtin_macro]
17 // ARM uses R11 for the frame pointer, make sure R7 is usable.
18 #[instruction_set(arm::a32)]
21 asm!("", out("r7") _);
25 // Thumb uses R7 for the frame pointer, make sure R11 is usable.
26 #[instruction_set(arm::t32)]
29 asm!("", out("r11") _);