]> git.proxmox.com Git - rustc.git/blame - library/core/tests/simd.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / library / core / tests / simd.rs
CommitLineData
a2a8927a 1use core::simd::f32x4;
064997fb 2use core::simd::SimdFloat;
a2a8927a
XL
3
4#[test]
5fn testing() {
6 let x = f32x4::from_array([1.0, 1.0, 1.0, 1.0]);
7 let y = -x;
8
9 let h = x * f32x4::splat(0.5);
10
11 let r = y.abs();
12 assert_eq!(x, r);
13 assert_eq!(h, f32x4::splat(0.5));
14}