Skip to content

Commit eef4371

Browse files
Force splatting in SIMD test
1 parent 2ea27bf commit eef4371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/tests/simd.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn testing() {
77
let x = f32x4::from_array([1.0, 1.0, 1.0, 1.0]);
88
let y = -x;
99

10-
let h = x * 0.5;
10+
let h = x * f32x4::splat(0.5);
1111

1212
let r = y.abs();
1313
assert_eq!(x, r);

0 commit comments

Comments
 (0)