Skip to content

Commit

Permalink
Force splatting in SIMD test
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Dec 3, 2021
1 parent 2ea27bf commit eef4371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/tests/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eef4371

Please sign in to comment.