]>
git.proxmox.com Git - rustc.git/blob - library/stdarch/crates/core_arch/src/aarch64/armclang.rs
1 //! ARM compiler specific intrinsics
5 //! - [ARM Compiler v 6.10 - armclang Reference Guide][arm_comp_ref]
7 //! [arm_comp_ref]: https://developer.arm.com/docs/100067/0610
10 use stdarch_test
::assert_instr
;
12 /// Inserts a breakpoint instruction.
14 /// `VAL` is a compile-time constant integer in range `[0, 65535]`.
16 /// The breakpoint instruction inserted is `BRK` on A64.
17 #[cfg_attr(test, assert_instr(brk, VAL = 0))]
19 #[rustc_legacy_const_generics(0)]
20 pub unsafe fn __breakpoint
<const VAL
: i32>() {
21 static_assert_imm16
!(VAL
);
22 asm
!("brk {}", const VAL
);