Skip to content

Commit 8fef044

Browse files
committed
discard vmull_p64 and vmull_high_p64
1 parent 0a658ba commit 8fef044

File tree

3 files changed

+2
-56
lines changed

3 files changed

+2
-56
lines changed

crates/core_arch/src/aarch64/neon/generated.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4104,14 +4104,6 @@ pub unsafe fn vmull_high_p8(a: poly8x16_t, b: poly8x16_t) -> poly16x8_t {
41044104
vmull_p8(a, b)
41054105
}
41064106

4107-
/// Polynomial multiply long
4108-
#[inline]
4109-
#[target_feature(enable = "neon,crypto")]
4110-
#[cfg_attr(test, assert_instr(pmull2))]
4111-
pub unsafe fn vmull_high_p64(a: poly64x2_t, b: poly64x2_t) -> p128 {
4112-
vmull_p64(simd_extract(a, 1), simd_extract(b, 1))
4113-
}
4114-
41154107
/// Multiply long
41164108
#[inline]
41174109
#[target_feature(enable = "neon")]
@@ -11385,15 +11377,6 @@ mod test {
1138511377
assert_eq!(r, e);
1138611378
}
1138711379

11388-
#[simd_test(enable = "neon")]
11389-
unsafe fn test_vmull_high_p64() {
11390-
let a: i64x2 = i64x2::new(1, 15);
11391-
let b: i64x2 = i64x2::new(1, 3);
11392-
let e: p128 = 17;
11393-
let r: p128 = transmute(vmull_high_p64(transmute(a), transmute(b)));
11394-
assert_eq!(r, e);
11395-
}
11396-
1139711380
#[simd_test(enable = "neon")]
1139811381
unsafe fn test_vmull_high_n_s16() {
1139911382
let a: i16x8 = i16x8::new(1, 2, 9, 10, 9, 10, 11, 12);

crates/core_arch/src/arm_shared/neon/generated.rs

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6062,34 +6062,6 @@ pub unsafe fn vmull_p8(a: poly8x8_t, b: poly8x8_t) -> poly16x8_t {
60626062
vmull_p8_(a, b)
60636063
}
60646064

6065-
/// Polynomial multiply long
6066-
#[inline]
6067-
#[cfg(target_arch = "arm")]
6068-
#[target_feature(enable = "neon,crypto,v8")]
6069-
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(vmull))]
6070-
pub unsafe fn vmull_p64(a: p64, b: p64) -> p128 {
6071-
#[allow(improper_ctypes)]
6072-
extern "C" {
6073-
#[cfg_attr(target_arch = "arm", link_name = "llvm.arm.neon.vmullp.v2i64")]
6074-
fn vmull_p64_(a: int64x1_t, b: int64x1_t) -> int64x2_t;
6075-
}
6076-
transmute(vmull_p64_(transmute(a), transmute(b)))
6077-
}
6078-
6079-
/// Polynomial multiply long
6080-
#[inline]
6081-
#[cfg(target_arch = "aarch64")]
6082-
#[target_feature(enable = "neon,crypto")]
6083-
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(pmull))]
6084-
pub unsafe fn vmull_p64(a: p64, b: p64) -> p128 {
6085-
#[allow(improper_ctypes)]
6086-
extern "C" {
6087-
#[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.neon.pmull64")]
6088-
fn vmull_p64_(a: p64, b: p64) -> int8x16_t;
6089-
}
6090-
transmute(vmull_p64_(a, b))
6091-
}
6092-
60936065
/// Vector long multiply with scalar
60946066
#[inline]
60956067
#[target_feature(enable = "neon")]
@@ -17918,15 +17890,6 @@ mod test {
1791817890
assert_eq!(r, e);
1791917891
}
1792017892

17921-
#[simd_test(enable = "neon")]
17922-
unsafe fn test_vmull_p64() {
17923-
let a: p64 = 15;
17924-
let b: p64 = 3;
17925-
let e: p128 = 17;
17926-
let r: p128 = transmute(vmull_p64(transmute(a), transmute(b)));
17927-
assert_eq!(r, e);
17928-
}
17929-
1793017893
#[simd_test(enable = "neon")]
1793117894
unsafe fn test_vmullh_n_s16() {
1793217895
let a: i16x4 = i16x4::new(1, 2, 3, 4);

crates/stdarch-gen/neon.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,7 +2067,7 @@ aarch64 = pmull
20672067
link-aarch64 = pmull64:p64:p64:p64:int8x16_t
20682068
arm = vmull
20692069
link-arm = vmullp.v2i64:int64x1_t:int64x1_t:int64x1_t:int64x2_t
2070-
generate p64:p64:p128
2070+
//generate p64:p64:p128
20712071

20722072

20732073
/// Polynomial multiply long
@@ -2094,7 +2094,7 @@ validate 17
20942094
target = crypto
20952095

20962096
aarch64 = pmull2
2097-
generate poly64x2_t:poly64x2_t:p128
2097+
//generate poly64x2_t:poly64x2_t:p128
20982098

20992099
/// Vector long multiply with scalar
21002100
name = vmull

0 commit comments

Comments
 (0)