[Piglit] [PATCH 3/3] cl: Add fmin, fmax tests
Jan Vesely
jan.vesely at rutgers.edu
Mon Apr 27 13:53:37 PDT 2015
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?
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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20150427/00171949/attachment.sig>
More information about the Piglit
mailing list