[Piglit] [PATCH] cl: Add tests for mad mix

Jan Vesely jan.vesely at rutgers.edu
Thu Oct 5 19:33:25 UTC 2017


On Thu, 2017-10-05 at 12:17 -0700, Matt Arsenault wrote:
> > On Oct 5, 2017, at 08:09, Jan Vesely <jan.vesely at rutgers.edu> wrote:
> > 
> > On Mon, 2017-10-02 at 10:32 -0700, Matt Arsenault wrote:
> > > ping
> > > 
> > > > On Sep 19, 2017, at 19:25, Matt Arsenault <arsenm2 at gmail.com> wrote:
> > > > 
> > > > These aren't great since they need more test
> > > > values, and generating half results is kind
> > > > of a pain from any other tool. The perfect
> > > > values used don't really stress the conversions,
> > > > but this as at least enough to make sure the
> > > > encoding is correct.
> > 
> > what is this test supposed to test? generic fp16 encoding
> > /functionality? if so, why is it better than vstore_half/vload_half
> > tests? 
> > does it test fp16 version of clamp? why is it better than generated
> > clamp tests?
> > 
> > Jan
> > 
> 
> It’s specifically testing v_mad_mix_f32, v_mad_mixlo_f16,
> v_mad_mixhi_f16 instructions added in gfx9

ah, that makes more sense. Do you mind if I add it to the commit
message? (I'll also fix the formatting nits) with that

Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>

out of curiosity what's the use of having these in piglit? supposedly
the instruction selection and encoding part is tested in llvm lit. Is
this testing whether the instruction works correctly? shouldn't the hw
design team have tests for that?

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20171005/a61c9bb6/attachment.sig>


More information about the Piglit mailing list