fmt-ops: add RVV optimizations for f32d_to_s32

This commit is contained in:
sunyuechi 2024-09-25 13:11:08 +08:00 committed by hleft
parent c7c5b61dac
commit 79d41e183e
5 changed files with 65 additions and 0 deletions

View file

@ -182,6 +182,11 @@ static void test_f32_s32(void)
if (cpu_flags & SPA_CPU_FLAG_AVX2) {
run_test("test_f32d_s32", "avx2", false, true, conv_f32d_to_s32_avx2);
}
#endif
#if defined (HAVE_RVV)
if (cpu_flags & SPA_CPU_FLAG_RISCV_V) {
run_test("test_f32d_s32", "rvv", false, true, conv_f32d_to_s32_rvv);
}
#endif
run_test("test_f32_s32d", "c", true, false, conv_f32_to_s32d_c);
run_test("test_f32d_s32d", "c", false, false, conv_f32d_to_s32d_c);