-
Notifications
You must be signed in to change notification settings - Fork 795
[SPIRV] Preserve NaN, Inf, and signed zeros w/ -Gis #7693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPIRV] Preserve NaN, Inf, and signed zeros w/ -Gis #7693
Conversation
The `-Gis` flag opts into "strict" IEEE math rules, which include preserving NaN, Inf and signed/unsigned zeros. This change adds the SPIRV SignedZeroInfNanPreserve capability and execution mode when `-Gis` is passed to DXC. ../tools/clang/test/CodeGenSPIRV/SignedZeroInfNanPreserve.hlsl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Just the extension possibility, otherwise if there is a reason not to, looks good
../tools/clang/test/CodeGenSPIRV/SignedZeroInfNanPreserve.hlsl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit on the CHECK line name, otherwise LGTM,thanks!
Co-authored-by: Nathan Gauër <[email protected]>
The
-Gis
flag opts into "strict" IEEE math rules, which include preserving NaN, Inf and signed/unsigned zeros. This change adds the SPIRV SignedZeroInfNanPreserve capability and execution mode when-Gis
is passed to DXC.