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