LekKit / RVVM

The RISC-V Virtual Machine
GNU General Public License v3.0
936 stars 65 forks source link

optimizations: SIMD / NEON #146

Open ZLangJIT opened 2 months ago

ZLangJIT commented 2 months ago

what is the current status for jit translation-to SIMD/NEON instructions in relation to the RISC-V instruction set ?

LekKit commented 2 months ago

The RISC-V Vector extension i think is not easily translatable to SIMD/NEON because it is a lot more advanced. AVX512 on the other hand is somewhat useful, but not many CPUs exist with it (I certainly don't have one).

Vector extension may be emulated via scalar loops, and if we write a C scalar implementation the compiler might be able to vectorize a few places.