File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/core_arch/src/aarch64/neon Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -588,17 +588,17 @@ mod test {
588
588
#[ simd_test( enable = "neon" ) ]
589
589
unsafe fn test_vmul_f64 ( ) {
590
590
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;
593
593
let r: f64 = transmute ( vmul_f64 ( transmute ( a) , transmute ( b) ) ) ;
594
594
assert_eq ! ( r, e) ;
595
595
}
596
596
597
597
#[ simd_test( enable = "neon" ) ]
598
598
unsafe fn test_vmulq_f64 ( ) {
599
599
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) ;
602
602
let r: f64x2 = transmute ( vmulq_f64 ( transmute ( a) , transmute ( b) ) ) ;
603
603
assert_eq ! ( r, e) ;
604
604
}
You can’t perform that action at this time.
0 commit comments