4b012472 |
1 | use core::simd::prelude::*; |
a2a8927a XL |
2 | |
3 | #[test] |
4 | fn testing() { |
5 | let x = f32x4::from_array([1.0, 1.0, 1.0, 1.0]); |
6 | let y = -x; |
7 | |
8 | let h = x * f32x4::splat(0.5); |
9 | |
10 | let r = y.abs(); |
11 | assert_eq!(x, r); |
12 | assert_eq!(h, f32x4::splat(0.5)); |
13 | } |