[Libre-soc-bugs] [Bug 632] Potentially share Vector Math libraries with Rust's project portable SIMD (`std::simd`)

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed May 5 11:14:47 BST 2021


https://bugs.libre-soc.org/show_bug.cgi?id=632

--- Comment #9 from Jacob Lifshay <programmerjake at gmail.com> ---
>From https://github.com/rust-lang/stdsimd/issues/109#issuecomment-832573074
I added bindings for std::simd:
https://salsa.debian.org/Kazan-team/vector-math/-/commit/d77893b257c86d7ddc81f3772b5e143ce768d291
Looking at the assembly generated for stdsimd::tests::do_ilogb_f32x4, it looks
pretty reasonable, everything's inlined, however there is still some branching
that llvm didn't optimize out:
<snip>
Compiled using:

cargo rustc --release --tests --features=ir,fma,stdsimd -- --emit=asm -C
target-cpu=native
on a Ryzen 3900X on Ubuntu

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list