Commit 7a8c90c
[SPIRV] Preserve NaN, Inf, and signed zeros w/ -Gis (microsoft#7693)
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.
---------
Co-authored-by: Nathan Gauër <[email protected]>1 parent dc85cd7 commit 7a8c90c
File tree
2 files changed
+23
-0
lines changed- tools/clang
- lib/SPIRV
- test/CodeGenSPIRV
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
865 | 878 | | |
866 | 879 | | |
867 | 880 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments