Force splatting in SIMD test

This commit is contained in:
Jubilee Young 2021-12-02 19:22:00 -08:00
parent 2ea27bf6ef
commit eef4371a98

View File

@ -7,7 +7,7 @@ fn testing() {
let x = f32x4::from_array([1.0, 1.0, 1.0, 1.0]);
let y = -x;
let h = x * 0.5;
let h = x * f32x4::splat(0.5);
let r = y.abs();
assert_eq!(x, r);