fix assert_instr test
This commit is contained in:
parent
7e2442c884
commit
4abc2de5f4
1 changed files with 4 additions and 1 deletions
|
|
@ -4,6 +4,9 @@
|
|||
//!
|
||||
//! - [ARM Compiler v 6.10 - armclang Reference Guide](https://developer.arm.com/docs/100067/0610)
|
||||
|
||||
#[cfg(test)]
|
||||
use stdsimd_test::assert_instr;
|
||||
|
||||
/// This intrinsic inserts a BKPT instruction into the instruction stream generated by the compiler
|
||||
///
|
||||
/// It enables you to include a breakpoint instruction in your Rust code
|
||||
|
|
@ -16,7 +19,7 @@
|
|||
/// [ARM's documentation](https://developer.arm.com/docs/100067/latest/compiler-specific-intrinsics/__breakpoint-intrinsic)
|
||||
///
|
||||
/// **NOTE** Due compiler limitations this function only supports the range `0...255` in A32 mode.
|
||||
#[cfg_attr(test, assert_instr(bkpt))]
|
||||
#[cfg_attr(test, assert_instr(bkpt, val = 0))]
|
||||
#[inline(always)]
|
||||
#[rustc_args_required_const(0)]
|
||||
pub unsafe fn __breakpoint(val: i32) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue