File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4
4
//!
5
5
//! - [ARM Compiler v 6.10 - armclang Reference Guide](https://developer.arm.com/docs/100067/0610)
6
6
7
+ #[ cfg( test) ]
8
+ use stdsimd_test:: assert_instr;
9
+
7
10
/// This intrinsic inserts a BKPT instruction into the instruction stream generated by the compiler
8
11
///
9
12
/// It enables you to include a breakpoint instruction in your Rust code
16
19
/// [ARM's documentation](https://developer.arm.com/docs/100067/latest/compiler-specific-intrinsics/__breakpoint-intrinsic)
17
20
///
18
21
/// **NOTE** Due compiler limitations this function only supports the range `0...255` in A32 mode.
19
- #[ cfg_attr( test, assert_instr( bkpt) ) ]
22
+ #[ cfg_attr( test, assert_instr( bkpt, val = 0 ) ) ]
20
23
#[ inline( always) ]
21
24
#[ rustc_args_required_const( 0 ) ]
22
25
pub unsafe fn __breakpoint ( val : i32 ) {
You can’t perform that action at this time.
0 commit comments