@@ -4412,38 +4412,6 @@ pub unsafe fn vmovq_n_f32(value: f32) -> float32x4_t {
4412
4412
vdupq_n_f32 ( value)
4413
4413
}
4414
4414
4415
- /// Shift right
4416
- #[ inline]
4417
- #[ target_feature( enable = "neon" ) ]
4418
- #[ cfg_attr( target_arch = "arm" , target_feature( enable = "v7" ) ) ]
4419
- #[ cfg_attr( all( test, target_arch = "arm" ) , assert_instr( "vshl.s8" , IMM3 = 1 ) ) ]
4420
- #[ cfg_attr( all( test, target_arch = "aarch64" ) , assert_instr( shl, IMM3 = 1 ) ) ]
4421
- #[ rustc_legacy_const_generics( 1 ) ]
4422
- pub unsafe fn vshlq_n_u8 < const IMM3 : i32 > ( a : uint8x16_t ) -> uint8x16_t {
4423
- if IMM3 < 0 || IMM3 > 7 {
4424
- unreachable_unchecked ( ) ;
4425
- } else {
4426
- uint8x16_t (
4427
- a. 0 << IMM3 ,
4428
- a. 1 << IMM3 ,
4429
- a. 2 << IMM3 ,
4430
- a. 3 << IMM3 ,
4431
- a. 4 << IMM3 ,
4432
- a. 5 << IMM3 ,
4433
- a. 6 << IMM3 ,
4434
- a. 7 << IMM3 ,
4435
- a. 8 << IMM3 ,
4436
- a. 9 << IMM3 ,
4437
- a. 10 << IMM3 ,
4438
- a. 11 << IMM3 ,
4439
- a. 12 << IMM3 ,
4440
- a. 13 << IMM3 ,
4441
- a. 14 << IMM3 ,
4442
- a. 15 << IMM3 ,
4443
- )
4444
- }
4445
- }
4446
-
4447
4415
/// Extract vector from pair of vectors
4448
4416
#[ inline]
4449
4417
#[ target_feature( enable = "neon" ) ]
@@ -5877,14 +5845,6 @@ mod tests {
5877
5845
assert_eq ! ( r, 2 ) ;
5878
5846
}
5879
5847
5880
- #[ simd_test( enable = "neon" ) ]
5881
- unsafe fn test_vshlq_n_u8 ( ) {
5882
- let a = u8x16:: new ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 ) ;
5883
- let e = u8x16:: new ( 4 , 8 , 12 , 16 , 20 , 24 , 28 , 32 , 36 , 40 , 44 , 48 , 52 , 56 , 60 , 64 ) ;
5884
- let r: u8x16 = transmute ( vshlq_n_u8 :: < 2 > ( transmute ( a) ) ) ;
5885
- assert_eq ! ( r, e) ;
5886
- }
5887
-
5888
5848
#[ simd_test( enable = "neon" ) ]
5889
5849
unsafe fn test_vext_s64 ( ) {
5890
5850
let a: i64x1 = i64x1:: new ( 0 ) ;
0 commit comments