<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - nir_op_imod is incorrectly implemented as LLVM's srem"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102032#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - nir_op_imod is incorrectly implemented as LLVM's srem"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102032">bug 102032</a>
from <span class="vcard"><a class="email" href="mailto:bas@basnieuwenhuizen.nl" title="Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>"> <span class="fn">Bas Nieuwenhuizen</span></a>
</span></b>
<pre>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.
Note
While the OpSRem and OpSMod instructions are supported by the Vulkan
environment, they require non-negative values and thus do not enable additional
functionality beyond what OpUMod provides.
While I'm open to fixing this, you may want to rethink what you are doing.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>