Re: [Piglit] [PATCH] cl: Add basic remainder(float, float) builtin tests
Hi Aaron, looks like you never pushed this one. Did you have a reason to drop it? Jan On Fri, 2017-01-20 at 12:37 -0500, Jan Vesely wrote: > On Tue, 2017-01-17 at 21:18 -0600, Aaron Watry wrote: > > Tested with libclc on a Radeon HD 7850. > > > > Hex output values were generated via remainderf(float, float). > > > > No implications as to the quality of the inputs is intended. > > > > Signed-off-by: Aaron Watry> > Reviewed-by: Jan Vesely > > Jan > > > --- > > generated_tests/gen_cl_math_builtins.py | 13 + > > 1 file changed, 13 insertions(+) > > > > diff --git a/generated_tests/gen_cl_math_builtins.py > > b/generated_tests/gen_cl_math_builtins.py > > index f609d73..178ff95 100644 > > --- a/generated_tests/gen_cl_math_builtins.py > > +++ b/generated_tests/gen_cl_math_builtins.py > > @@ -65,6 +65,7 @@ CLC_VERSION_MIN = { > > 'log10' : 10, > > 'log1p' : 10, > > 'nextafter' : 10, > > +'remainder' : 10, > > 'round' : 10, > > 'sin' : 10, > > 'sinh' : 10, > > @@ -398,6 +399,18 @@ tests = { > > [1.0, -1.0 , 2.0, 0.0, 3.4, float("nan"), > > 5.0], # Arg1 > > ] > > }, > > +'remainder' : { > > +'arg_types': [F, F, F], > > +'function_type': 'ttt', > > +'values': [ > > +[float.fromhex("-0x1.dp-1"), float.fromhex("0x1.dp-1"), > > + float.fromhex("-0x1.dp-1"), float.fromhex("0x1.dp-1"), > > + 0.0, -0.0, 5.1, float("-nan") > > +], # Result > > +[ 5.1, -5.1, 5.1, -5.1, 0.0, -0.0, 5.1, 5.1], # Arg0 > > +[ 3.0, 3.0, -3.0, -3.0, 1.0, 1.0, float("inf"), 0.0], # Arg1 > > +] > > +}, > > 'round' : { > > 'arg_types': [F, F], > > 'function_type': 'ttt', -- Jan Vesely signature.asc Description: This is a digitally signed message part ___ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit
Re: [Piglit] [PATCH] cl: Add basic remainder(float, float) builtin tests
On Tue, 2017-01-17 at 21:18 -0600, Aaron Watry wrote: > Tested with libclc on a Radeon HD 7850. > > Hex output values were generated via remainderf(float, float). > > No implications as to the quality of the inputs is intended. > > Signed-off-by: Aaron WatryReviewed-by: Jan Vesely Jan > --- > generated_tests/gen_cl_math_builtins.py | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/generated_tests/gen_cl_math_builtins.py > b/generated_tests/gen_cl_math_builtins.py > index f609d73..178ff95 100644 > --- a/generated_tests/gen_cl_math_builtins.py > +++ b/generated_tests/gen_cl_math_builtins.py > @@ -65,6 +65,7 @@ CLC_VERSION_MIN = { > 'log10' : 10, > 'log1p' : 10, > 'nextafter' : 10, > +'remainder' : 10, > 'round' : 10, > 'sin' : 10, > 'sinh' : 10, > @@ -398,6 +399,18 @@ tests = { > [1.0, -1.0 , 2.0, 0.0, 3.4, float("nan"), 5.0], > # Arg1 > ] > }, > +'remainder' : { > +'arg_types': [F, F, F], > +'function_type': 'ttt', > +'values': [ > +[float.fromhex("-0x1.dp-1"), float.fromhex("0x1.dp-1"), > + float.fromhex("-0x1.dp-1"), float.fromhex("0x1.dp-1"), > + 0.0, -0.0, 5.1, float("-nan") > +], # Result > +[ 5.1, -5.1, 5.1, -5.1, 0.0, -0.0, 5.1, 5.1], # Arg0 > +[ 3.0, 3.0, -3.0, -3.0, 1.0, 1.0, float("inf"), 0.0], # Arg1 > +] > +}, > 'round' : { > 'arg_types': [F, F], > 'function_type': 'ttt', signature.asc Description: This is a digitally signed message part ___ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit
[Piglit] [PATCH] cl: Add basic remainder(float, float) builtin tests
Tested with libclc on a Radeon HD 7850. Hex output values were generated via remainderf(float, float). No implications as to the quality of the inputs is intended. Signed-off-by: Aaron Watry--- generated_tests/gen_cl_math_builtins.py | 13 + 1 file changed, 13 insertions(+) diff --git a/generated_tests/gen_cl_math_builtins.py b/generated_tests/gen_cl_math_builtins.py index f609d73..178ff95 100644 --- a/generated_tests/gen_cl_math_builtins.py +++ b/generated_tests/gen_cl_math_builtins.py @@ -65,6 +65,7 @@ CLC_VERSION_MIN = { 'log10' : 10, 'log1p' : 10, 'nextafter' : 10, +'remainder' : 10, 'round' : 10, 'sin' : 10, 'sinh' : 10, @@ -398,6 +399,18 @@ tests = { [1.0, -1.0 , 2.0, 0.0, 3.4, float("nan"), 5.0], # Arg1 ] }, +'remainder' : { +'arg_types': [F, F, F], +'function_type': 'ttt', +'values': [ +[float.fromhex("-0x1.dp-1"), float.fromhex("0x1.dp-1"), + float.fromhex("-0x1.dp-1"), float.fromhex("0x1.dp-1"), + 0.0, -0.0, 5.1, float("-nan") +], # Result +[ 5.1, -5.1, 5.1, -5.1, 0.0, -0.0, 5.1, 5.1], # Arg0 +[ 3.0, 3.0, -3.0, -3.0, 1.0, 1.0, float("inf"), 0.0], # Arg1 +] +}, 'round' : { 'arg_types': [F, F], 'function_type': 'ttt', -- 2.9.3 ___ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit