]> git.proxmox.com Git - rustc.git/blame - library/core/tests/simd.rs
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / library / core / tests / simd.rs
CommitLineData
4b012472 1use core::simd::prelude::*;
a2a8927a
XL
2
3#[test]
4fn 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}