mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
fix assert_instr test
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user