Enable tests for some float16 native_* functions
Bug: http://b/27512382
Enable tests for native_* functions whose specification allows an
absolute error value.
Change-Id: I06e3598216dd86399997ed9c503bf68e736f7ee3
diff --git a/api/rs_math.spec b/api/rs_math.spec
index 0320a8c..dda9867 100644
--- a/api/rs_math.spec
+++ b/api/rs_math.spec
@@ -1808,9 +1808,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-1,1) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_acosh
@@ -1864,9 +1864,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-1,1) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_asin
@@ -1893,9 +1893,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-1,1) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_asinh
@@ -1949,9 +1949,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-# TODO Need range(-1,1) here similar to the float version?
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-1,1)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_atan
@@ -2131,8 +2131,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-314,314)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_cosh
@@ -2180,8 +2181,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-100,100)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_divide
@@ -2556,8 +2558,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-314,314)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_sincos
@@ -2582,8 +2585,9 @@
t: f16
ret: #2#1
arg: #2#1 v
-arg: #2#1* cos
-test: none
+arg: #2#1* cos, range(-314,314)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_sinh
@@ -2631,8 +2635,9 @@
w: 1, 2, 3, 4
t: f16
ret: #2#1
-arg: #2#1 v
-test: none
+arg: #2#1 v, range(-100,100)
+# Absolute error of 2^-11, i.e. 0.00048828125
+test: limited(0.00048828125)
end:
function: native_sqrt