]> git.lizzy.rs Git - rust.git/blob - library/core/tests/simd.rs
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / library / core / tests / simd.rs
1 #![cfg(not(miri))] // Miri does not support all SIMD intrinsics
2
3 use core::simd::f32x4;
4
5 #[test]
6 fn testing() {
7     let x = f32x4::from_array([1.0, 1.0, 1.0, 1.0]);
8     let y = -x;
9
10     let h = x * f32x4::splat(0.5);
11
12     let r = y.abs();
13     assert_eq!(x, r);
14     assert_eq!(h, f32x4::splat(0.5));
15 }