3 // This is the converse of the other libm test.
4 #![feature(portable_simd)]
6 use std::simd::{SimdFloat, StdFloat};
8 // For SIMD float ops, the LLIR version which is used to implement the portable
9 // forms of them may become calls to math.h AKA libm. So, we can't guarantee
10 // we can compile them for #![no_std] crates.
12 // However, we can expose some of these ops via an extension trait.
14 let x = f32x4::from_array([0.1, 0.5, 0.6, -1.5]);
20 let _xfma = x.mul_add(x, x);
21 let _xsqrt = x.sqrt();
22 let _ = x2.abs() * x2;