@@ -3548,7 +3548,7 @@ pub unsafe fn vsliq_n_s16<const N: i32>(a: int16x8_t, b: int16x8_t) -> int16x8_t
3548
3548
#[ cfg_attr( test, assert_instr( "vsli.32" , n = 1 ) ) ]
3549
3549
#[ rustc_legacy_const_generics( 2 ) ]
3550
3550
pub unsafe fn vsli_n_s32 < const N : i32 > ( a : int32x2_t , b : int32x2_t ) -> int32x2_t {
3551
- static_assert_imm5 ! ( N ) ;
3551
+ static_assert ! ( N : i32 where N >= 0 && N <= 31 ) ;
3552
3552
vshiftins_v2i32 ( a, b, int32x2_t ( N , N ) )
3553
3553
}
3554
3554
/// Shift Left and Insert (immediate)
@@ -3558,7 +3558,7 @@ pub unsafe fn vsli_n_s32<const N: i32>(a: int32x2_t, b: int32x2_t) -> int32x2_t
3558
3558
#[ cfg_attr( test, assert_instr( "vsli.32" , n = 1 ) ) ]
3559
3559
#[ rustc_legacy_const_generics( 2 ) ]
3560
3560
pub unsafe fn vsliq_n_s32 < const N : i32 > ( a : int32x4_t , b : int32x4_t ) -> int32x4_t {
3561
- static_assert_imm5 ! ( N ) ;
3561
+ static_assert ! ( N : i32 where N >= 0 && N <= 31 ) ;
3562
3562
vshiftins_v4i32 ( a, b, int32x4_t ( N , N , N , N ) )
3563
3563
}
3564
3564
/// Shift Left and Insert (immediate)
@@ -3648,7 +3648,7 @@ pub unsafe fn vsliq_n_u16<const N: i32>(a: uint16x8_t, b: uint16x8_t) -> uint16x
3648
3648
#[ cfg_attr( test, assert_instr( "vsli.32" , n = 1 ) ) ]
3649
3649
#[ rustc_legacy_const_generics( 2 ) ]
3650
3650
pub unsafe fn vsli_n_u32 < const N : i32 > ( a : uint32x2_t , b : uint32x2_t ) -> uint32x2_t {
3651
- static_assert_imm5 ! ( N ) ;
3651
+ static_assert ! ( N : i32 where N >= 0 && N <= 31 ) ;
3652
3652
transmute ( vshiftins_v2i32 ( transmute ( a) , transmute ( b) , int32x2_t ( N , N ) ) )
3653
3653
}
3654
3654
/// Shift Left and Insert (immediate)
@@ -3658,7 +3658,7 @@ pub unsafe fn vsli_n_u32<const N: i32>(a: uint32x2_t, b: uint32x2_t) -> uint32x2
3658
3658
#[ cfg_attr( test, assert_instr( "vsli.32" , n = 1 ) ) ]
3659
3659
#[ rustc_legacy_const_generics( 2 ) ]
3660
3660
pub unsafe fn vsliq_n_u32 < const N : i32 > ( a : uint32x4_t , b : uint32x4_t ) -> uint32x4_t {
3661
- static_assert_imm5 ! ( N ) ;
3661
+ static_assert ! ( N : i32 where N >= 0 && N <= 31 ) ;
3662
3662
transmute ( vshiftins_v4i32 (
3663
3663
transmute ( a) ,
3664
3664
transmute ( b) ,
0 commit comments