[Libclc-dev] Implement more math builtins

Jan Vesely jan.vesely at rutgers.edu
Wed Mar 25 10:47:32 PDT 2015


I applied patches 1-8 (with 9 already in the tree, and also the ldexp
patch to avoid warnings), and tested (piglit) on my Turks:
acosh LLVM ERROR: Cannot select: REGISTER_LOAD 
acospi PASS
asinh PASS
asinpi PASS
atanh same failure as acosh
atanpi PASS
atan2pi PASS

I have posted piglits for the 3 functions that were missing the passing
patches LGTM. The failures are caused by log1p, so I guess the rest is
OK as well, but couldn't really test them.
I cannot test doubles.


PS: ldexp fails too, but i guess that is expected without fp64

On Thu, 2015-03-12 at 20:11 +0000, Tom Stellard wrote:
> Hi,
> This series implements several more math builtins.  cos/sin
> patches require an implementation of fract to work correctly
> for doubles.
> I have patches to both implement fract and fix fmin, which fract
> depends on, but I still get failures in the fract and fmin tests
> due to what I think are bugs in the R600/SI compiler.
> Even with those bugs, the sin/cos tests still pass with these
> broken implementations.
> atan2 and atanpi also depend on an ldexp implementation.  For testing,
> I just implemented ldexp using the __builtin_amdgpu_ldexp builtin
> and these both passed the tests I have.
> -Tom
> _______________________________________________
> Libclc-dev mailing list
> Libclc-dev at pcc.me.uk
> http://www.pcc.me.uk/cgi-bin/mailman/listinfo/libclc-dev

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.llvm.org/pipermail/libclc-dev/attachments/20150325/77f93b2b/attachment.sig>

More information about the Libclc-dev mailing list