diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2017-11-03 13:03:41 -0400 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2017-11-09 13:59:54 -0500 |
commit | 2589e514d54cab8f7849dde8169eda9fc384fcdd (patch) | |
tree | e8141d002bd859a867f81ef88f674fc10879881e /generated_tests | |
parent | 698ade664d07de97b57acb75750384bc5a47ec5d (diff) |
cl: Fix sinpi expected values
account for fp32 rounding.
sinpi(n) should return 0 for any integer n
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Diffstat (limited to 'generated_tests')
-rw-r--r-- | generated_tests/gen_cl_math_builtins.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/generated_tests/gen_cl_math_builtins.py b/generated_tests/gen_cl_math_builtins.py index a4cae5314..98950c3ac 100644 --- a/generated_tests/gen_cl_math_builtins.py +++ b/generated_tests/gen_cl_math_builtins.py @@ -696,12 +696,11 @@ tests = { 'arg_types' : [F, F], 'function_type': 'ttt', 'values' : [ - [0.0, 0.0, sin(pi*pi/2), sin(pi*3*pi/2), sin(2*pi*pi), - sin(pi*1.12345), sin(pi*7), sin(pi*8), sin(pi*pow(2,20)), - sin(pi*pow(2,24)), sin(pi*pow(2,120)), float("nan")],#Result + [0.0, 0.0, sin(pi*pi/2), sin(pi*3*pi/2), sin(2* M_PI_F * pi), + sin(pi*1.12345), 0.0, 0.0, 0.0, 0.0, 0.0, float("nan")],#Result [0.0, 1.0, pi / 2, 3 * pi / 2, 2 * pi, - 1.12345 , 7, 8, pow(2,20), - pow(2,24), pow(2,120), float("nan")] #Arg0 + 1.12345 , 7.0, 8.0, pow(2,20), pow(2,24), pow(2,120), + float("nan")] #Arg0 ], 'tolerance' : 4 }, |