Skip to content

Commit 6492bab

Browse files
committed
Improve tests for vmul_f
1 parent 4ab8949 commit 6492bab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -588,17 +588,17 @@ mod test {
588588
#[simd_test(enable = "neon")]
589589
unsafe fn test_vmul_f64() {
590590
let a: f64 = 1.0;
591-
let b: f64 = 1.0;
592-
let e: f64 = 1.0;
591+
let b: f64 = 2.0;
592+
let e: f64 = 2.0;
593593
let r: f64 = transmute(vmul_f64(transmute(a), transmute(b)));
594594
assert_eq!(r, e);
595595
}
596596

597597
#[simd_test(enable = "neon")]
598598
unsafe fn test_vmulq_f64() {
599599
let a: f64x2 = f64x2::new(1.0, 2.0);
600-
let b: f64x2 = f64x2::new(1.0, 2.0);
601-
let e: f64x2 = f64x2::new(1.0, 4.0);
600+
let b: f64x2 = f64x2::new(2.0, 3.0);
601+
let e: f64x2 = f64x2::new(2.0, 6.0);
602602
let r: f64x2 = transmute(vmulq_f64(transmute(a), transmute(b)));
603603
assert_eq!(r, e);
604604
}

0 commit comments

Comments
 (0)