[Piglit] [PATCH 3/3] cl: Add fmin, fmax tests
Tom Stellard
tom at stellard.net
Tue Apr 28 07:01:04 PDT 2015
On Mon, Apr 27, 2015 at 04:53:37PM -0400, Jan Vesely wrote:
> On Mon, 2015-04-20 at 16:57 -0400, Jan Vesely wrote:
> > On Sat, 2015-04-11 at 21:16 -0400, Jan Vesely wrote:
> > > Pass on Intel CPU, fail (expected) on Turks
> >
> > note that the test passes on turks since llvm r234716
>
> ping. Anything wrong with 3/3?
>
No.
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
> jan
>
> >
> > jan
> >
> > >
> > > Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> > > ---
> > > generated_tests/gen_cl_math_builtins.py | 20 ++++++++++++++++++++
> > > 1 file changed, 20 insertions(+)
> > >
> > > diff --git a/generated_tests/gen_cl_math_builtins.py b/generated_tests/gen_cl_math_builtins.py
> > > index ce7682d..9e51079 100644
> > > --- a/generated_tests/gen_cl_math_builtins.py
> > > +++ b/generated_tests/gen_cl_math_builtins.py
> > > @@ -53,6 +53,8 @@ CLC_VERSION_MIN = {
> > > 'exp' : 10,
> > > 'fabs' : 10,
> > > 'floor' : 10,
> > > + 'fmax' : 10,
> > > + 'fmin' : 10,
> > > 'fmod' : 10,
> > > 'ldexp' : 10,
> > > 'log10' : 10,
> > > @@ -277,6 +279,24 @@ tests = {
> > > [0.5, -0.5, 0.0, -0.0, float("nan"), -3.99, 1.5]
> > > ]
> > > },
> > > + 'fmax' : {
> > > + 'arg_types': [F, F, F],
> > > + 'function_type': 'tss',
> > > + 'values': [
> > > + [1.0, 0.0, 0.0, 0.0, 1.0, 1.0, float("nan")], #Result
> > > + [1.0, -0.5, 0.0, 0.0, 1.0, float("nan"), float("nan")], #Arg0
> > > + [0.0, 0.0, 0.0, -0.5, float("nan"), 1.0, float("nan")] #Arg1
> > > + ]
> > > + },
> > > + 'fmin' : {
> > > + 'arg_types': [F, F, F],
> > > + 'function_type': 'tss',
> > > + 'values': [
> > > + [0.0, -0.5, 0.0, -0.5, 1.0, 1.0, float("nan")], #Result
> > > + [1.0, -0.5, 0.0, 0.0, 1.0, float("nan"), float("nan")], #Arg0
> > > + [0.0, 0.0, 0.0, -0.5, float("nan"), 1.0, float("nan")] #Arg1
> > > + ]
> > > + },
> > > 'fmod' : {
> > > 'arg_types': [F, F, F],
> > > 'function_type': 'ttt',
> >
>
> --
> Jan Vesely <jan.vesely at rutgers.edu>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
More information about the Piglit
mailing list