From 4abc2de5f4fab8534a9e73c1c94bb920ccb5317b Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Mon, 3 Sep 2018 23:05:56 +0200 Subject: [PATCH] fix assert_instr test --- library/stdarch/coresimd/arm/armclang.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/stdarch/coresimd/arm/armclang.rs b/library/stdarch/coresimd/arm/armclang.rs index 2caa7790b4db..e8af5137f9af 100644 --- a/library/stdarch/coresimd/arm/armclang.rs +++ b/library/stdarch/coresimd/arm/armclang.rs @@ -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) {