@@ -1578,7 +1578,7 @@ pub unsafe fn vextq_s8(a: int8x16_t, b: int8x16_t, n: u32) -> int8x16_t {
1578
1578
#[ target_feature( enable = "neon" ) ]
1579
1579
#[ cfg_attr( target_arch = "arm" , target_feature( enable = "v7" ) ) ]
1580
1580
#[ cfg_attr( test, assert_instr( ushr) ) ]
1581
- pub unsafe fn vshrq_n_u8 ( a : uint8x16_t , imm8 : i32 ) -> uint8x16_t {
1581
+ pub unsafe fn vshrq_n_u8 ( a : uint8x16_t , imm8 : u32 ) -> uint8x16_t {
1582
1582
macro_rules! call {
1583
1583
( $imm8: expr) => {
1584
1584
if $imm8 == 0 {
@@ -1613,8 +1613,8 @@ pub unsafe fn vshrq_n_u8(a: uint8x16_t, imm8: i32) -> uint8x16_t {
1613
1613
#[ target_feature( enable = "neon" ) ]
1614
1614
#[ cfg_attr( target_arch = "arm" , target_feature( enable = "v7" ) ) ]
1615
1615
#[ cfg_attr( test, assert_instr( ushl) ) ]
1616
- pub unsafe fn vshlq_n_u8 ( a : uint8x16_t , n : i32 ) -> uint8x16_t {
1617
- if n < 0 || n > 7 {
1616
+ pub unsafe fn vshlq_n_u8 ( a : uint8x16_t , n : u32 ) -> uint8x16_t {
1617
+ if n > 7 {
1618
1618
unreachable_unchecked ( ) ;
1619
1619
} ;
1620
1620
uint8x16_t (
@@ -1686,7 +1686,7 @@ mod tests {
1686
1686
let b = i8x16:: new (
1687
1687
42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 ,
1688
1688
) ;
1689
- let e = i8x16:: new ( 1 , 2 , 3 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 ) ;
1689
+ let e = i8x16:: new ( 1 , 2 , 3 , 4 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 ) ;
1690
1690
let r: i8x16 = transmute ( vextq_s8 ( transmute ( a) , transmute ( b) , 3 ) ) ;
1691
1691
assert_eq ! ( r, e) ;
1692
1692
}
@@ -1707,15 +1707,6 @@ mod tests {
1707
1707
assert_eq ! ( r, e) ;
1708
1708
}
1709
1709
1710
- #[ simd_test( enable = "neon" ) ]
1711
- unsafe fn test_vst1q_u8 ( ) {
1712
- let a = u8x16:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 ) ;
1713
- let e = a;
1714
- let mut r = u8x16:: new ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ) ;
1715
- vst1q_u8 ( transmute ( & mut r) , transmute ( a) ) ;
1716
- assert_eq ! ( r, e) ;
1717
- }
1718
-
1719
1710
#[ simd_test( enable = "neon" ) ]
1720
1711
unsafe fn test_vreinterpret_u64_u32 ( ) {
1721
1712
let v: i8 = 42 ;
0 commit comments