Skip to content

Commit 327a1d2

Browse files
committed
Discard manual implementation
1 parent d640fe3 commit 327a1d2

File tree

1 file changed

+0
-40
lines changed
  • crates/core_arch/src/arm/neon

1 file changed

+0
-40
lines changed

crates/core_arch/src/arm/neon/mod.rs

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4412,38 +4412,6 @@ pub unsafe fn vmovq_n_f32(value: f32) -> float32x4_t {
44124412
vdupq_n_f32(value)
44134413
}
44144414

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-
44474415
/// Extract vector from pair of vectors
44484416
#[inline]
44494417
#[target_feature(enable = "neon")]
@@ -5877,14 +5845,6 @@ mod tests {
58775845
assert_eq!(r, 2);
58785846
}
58795847

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-
58885848
#[simd_test(enable = "neon")]
58895849
unsafe fn test_vext_s64() {
58905850
let a: i64x1 = i64x1::new(0);

0 commit comments

Comments
 (0)