[Mesa-dev] [Bug 102032] nir_op_imod is incorrectly implemented as LLVM's srem

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 6 04:55:54 UTC 2018


--- Comment #2 from programmerjake at gmail.com ---
(In reply to Bas Nieuwenhuizen from comment #1)
> I went looking to why there were no good CTS tests for this and found this
> in the vulkan spec:
> For the OpSRem and OpSMod instructions, if either operand is negative the
> result is undefined.

I think this bug should be fixed to support OpenCL. I have not found any
references in the OpenCL specs to results of the remainder operator, so I'm
guessing it uses the definition eventually derived from C99 section
which defines the results for negative operands.

You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180206/55719300/attachment.html>

More information about the mesa-dev mailing list