Sign in
rust
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
library
/
coretests
/
tests
/
simd.rs
blob: b8b5f26ca3fa4562e16bd0626e4298b28e4fccaf [
file
] [
log
] [
blame
]
use
core
::
simd
::
prelude
::*;
#[
test
]
fn
testing
()
{
let
x
=
f32x4
::
from_array
([
1.0
,
1.0
,
1.0
,
1.0
]);
let
y
=
-
x
;
let
h
=
x
*
f32x4
::
splat
(
0.5
);
let
r
=
y
.
abs
();
assert_eq
!(
x
,
r
);
assert_eq
!(
h
,
f32x4
::
splat
(
0.5
));
}