Skip to content

Conversation

llvm-beanz
Copy link
Collaborator

Due to a bug in the special float builtin function declarations DXC never generated fp16 variants of isnan, isinf, and isfinite. This corrects the issue by making the functions take float_like arguments instead of float arguments.

Fixes #7496

Due to a bug in the special float builtin function declarations DXC
never generated fp16 variants of isnan, isinf, and isfinite. This
corrects the issue by making the functions take float_like arguments
instead of float arguments.

Fixes microsoft#7496

../tools/clang/test/CodeGenDXIL/Ops/SpecialFloat.hlsl
@llvm-beanz llvm-beanz marked this pull request as draft June 18, 2025 20:23
@llvm-beanz
Copy link
Collaborator Author

Dropped this back to a draft. We've found some drivers in the wild that crash on this, so we'll need to provide alternate lowering for existing shader models and work with driver vendors to deploy fixes.

@llvm-beanz
Copy link
Collaborator Author

llvm-beanz commented Aug 20, 2025

Replaced by: #7700

@llvm-beanz llvm-beanz closed this Aug 20, 2025
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Special float NaN/Inf checks on fp16 types are implicitly extended to fp32
1 participant