mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Force splatting in SIMD test
This commit is contained in:
parent
2ea27bf6ef
commit
eef4371a98
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user