sw:vec: Fix test template np.float usage

np.float is deprecated in numpy 1.20. Replace the usage with np.float32

Change-Id: Ic7acafd0a93cf482097b50adff1cf228af3f1f63
diff --git a/softrvv/tests/templates/softrvv_vfadd_test.tpl.cpp b/softrvv/tests/templates/softrvv_vfadd_test.tpl.cpp
index c869a38..5b97428 100644
--- a/softrvv/tests/templates/softrvv_vfadd_test.tpl.cpp
+++ b/softrvv/tests/templates/softrvv_vfadd_test.tpl.cpp
@@ -7,12 +7,11 @@
 template_helper = vec_test_helpers.VecTemplateHelper(op, 32)
 src2, src1, rs1 = template_helper.get_test_inputs(n=5)
 ## Adjust test values to prohibit overflow or underflow
-src2 = np.divide(src2, 2).astype(np.float)
-src1 = np.divide(src1, 2).astype(np.float)
-rs1 = np.divide(rs1, 2).astype(np.float)
+src2 = np.divide(src2, 2).astype(np.float32)
+src1 = np.divide(src1, 2).astype(np.float32)
+rs1 = np.divide(rs1, 2).astype(np.float32)
 ref_vv = src2 + src1
 ref_vf = src2 + rs1
 %>\
 ${tests_vv.test_opivv(template_helper, src2, src1, ref_vv)}
 ${tests_vf.test_opivf(template_helper, src2, rs1, ref_vf)}
-
diff --git a/softrvv/tests/templates/softrvv_vfsub_test.tpl.cpp b/softrvv/tests/templates/softrvv_vfsub_test.tpl.cpp
index 484c99b..c74661c 100644
--- a/softrvv/tests/templates/softrvv_vfsub_test.tpl.cpp
+++ b/softrvv/tests/templates/softrvv_vfsub_test.tpl.cpp
@@ -7,9 +7,9 @@
 template_helper = vec_test_helpers.VecTemplateHelper(op, 32)
 src2, src1, rs1 = template_helper.get_test_inputs(n=5)
 ## Adjust test values to prohibit overflow or underflow
-src2 = np.divide(src2, 2).astype(np.float)
-src1 = np.divide(src1, 2).astype(np.float)
-rs1 = np.divide(rs1, 2).astype(np.float)
+src2 = np.divide(src2, 2).astype(np.float32)
+src1 = np.divide(src1, 2).astype(np.float32)
+rs1 = np.divide(rs1, 2).astype(np.float32)
 ref_vv = src2 - src1
 ref_vf = src2 - rs1
 %>\