Vector extension test (vfrdiv) 1. Define vfrdiv 2. Add tests for vfrdiv Change-Id: I714fb7e43485baf9d509e6a3bdd7415acae70c20
diff --git a/softrvv/include/softrvv_vfdiv.h b/softrvv/include/softrvv_vfdiv.h index 6759f66..ed8349f 100644 --- a/softrvv/include/softrvv_vfdiv.h +++ b/softrvv/include/softrvv_vfdiv.h
@@ -17,6 +17,12 @@ } } +void vfrdiv_vf(float *dest, float *src1, const float *src2, int32_t avl) { + for (int32_t idx = 0; idx < avl; idx++) { + dest[idx] = *src2 / src1[idx]; + } +} + } // namespace softrvv #endif // SOFTRVV_VFDIV_H
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index abb58a6..334ea7c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt
@@ -37,6 +37,15 @@ vec_cc_generated_test( NAME + vfrdiv + TEMPLATE + opivf_test.tpl.cpp + LINKOPTS + -Xlinker --defsym=__itcm_length__=128K +) + +vec_cc_generated_test( + NAME vfmax TEMPLATE opivv_opivf_test.tpl.cpp