[Libclc-dev] [PATCH] math: Implement remainder(x, y)

Matt Arsenault via Libclc-dev libclc-dev at lists.llvm.org
Tue Feb 7 14:03:59 PST 2017


> On Feb 7, 2017, at 14:02, Matt Arsenault <arsenm2 at gmail.com> wrote:
> 
>> 
>> On Feb 6, 2017, at 20:32, Aaron Watry <awatry at gmail.com <mailto:awatry at gmail.com>> wrote:
>> 
>> 
>> 
>> On Thu, Jan 19, 2017 at 2:47 PM, Matt Arsenault <arsenm2 at gmail.com <mailto:arsenm2 at gmail.com>> wrote:
>> This fails conformance for me:
>> 
>> 
>> 
>> Interestingly enough some (but not all) of the test inputs start to pass when I forcefully enable subnormal support in libclc (--enable-runtime-subnormal and also updating generic/lib/shared/subnormal_config.cl <http://subnormal_config.cl/> to enable 32-bit subnormals).
>> 
>> I'll be playing with this a bit as time permits.
>> 
>> —Aaron
> 
> I’m guessing you need to somehow access one of the other division implementations. By default fdiv will be getting the !fpmath 2.5 ULP metadata. Can you try adding -cl-f432-correctly-rounded-divide-sqrt to the build of this file, or calling a wrapper IR function which avoids the metadata?
>> 
>>  
Although this probably doesn’t explain f64 failures
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libclc-dev/attachments/20170207/f29cbfd5/attachment.html>


More information about the Libclc-dev mailing list