google / highway

Performance-portable, length-agnostic SIMD with runtime dispatch
Apache License 2.0
3.97k stars 308 forks source link

Fix for compilation error in targets.cc on RISC-V with GCC if compiled without -march=rv64gcv1p0 #2159

Closed johnplatts closed 1 month ago

johnplatts commented 1 month ago

Made changes to inline assembly in targets.cc to enable ".option arch, +v" on RISC-V when compiled with GCC 13 or later to avoid errors by RISC-V GNU assembler if compiled without -march=rv64gcv1p0 or -march=rv32gcv1p0.