<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/compute/ieee754-nan-comparisons.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-07-11T17:12:17+00:00</updated>
<entry>
<title>Fix IEEE 754 NaN comparisons in constant folding (#7721)</title>
<updated>2025-07-11T17:12:17+00:00</updated>
<author>
<name>Jay Kwak</name>
<email>82421531+jkwak-work@users.noreply.github.com</email>
</author>
<published>2025-07-11T17:12:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=57567778b7d91afe7e6325c731d54b313b8b16e9'/>
<id>urn:sha1:57567778b7d91afe7e6325c731d54b313b8b16e9</id>
<content type='text'>
* Fix IEEE 754 NaN comparisons in constant folding

Added proper NaN handling in SCCP optimization pass to follow IEEE 754 standard:
- NaN \!= any value returns true
- All other NaN comparisons return false
- Added double precision NaN detection support
- Fixed type detection to check operands instead of result type

* Avoid differentiating NaN and non-NaN cases

* format code (#76)

---------

Co-authored-by: slangbot &lt;ellieh+slangbot@nvidia.com&gt;</content>
</entry>
</feed>
