Skip to content

Commit 8b84dc4

Browse files
japaricgnzlbg
authored andcommitted
fix assert_instr test
1 parent af7c166 commit 8b84dc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

coresimd/arm/armclang.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//!
55
//! - [ARM Compiler v 6.10 - armclang Reference Guide](https://developer.arm.com/docs/100067/0610)
66
7+
#[cfg(test)]
8+
use stdsimd_test::assert_instr;
9+
710
/// This intrinsic inserts a BKPT instruction into the instruction stream generated by the compiler
811
///
912
/// It enables you to include a breakpoint instruction in your Rust code
@@ -16,7 +19,7 @@
1619
/// [ARM's documentation](https://developer.arm.com/docs/100067/latest/compiler-specific-intrinsics/__breakpoint-intrinsic)
1720
///
1821
/// **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))]
2023
#[inline(always)]
2124
#[rustc_args_required_const(0)]
2225
pub unsafe fn __breakpoint(val: i32) {

0 commit comments

Comments
 (0)