Skip to content
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

Add tests for literal overloads of fmod, length, and normalize (#6437) #6799

Merged

Conversation

pow2clk
Copy link
Member

@pow2clk pow2clk commented Jul 17, 2024

Certain HL ops with no double overload will generate double overloads for literal types. These are lowered to double DXIL overloads, some of which are not legal for these ops. We currently rely on illegal intermediate DXIL op overloads for constant evaluation. If constant evaluation fails, we end up with illegal DXIL overloads in final DXIL, which is caught by the validator.

The prior revert restored the ability to run these scenarios (with asserts disabled).

This change adds tests for #6419 so automated testing will test across configurations and prevent regressions of this scenario in this branch.

(cherry picked from commit 9c2b828)

…soft#6437)

Certain HL ops with no double overload will generate double overloads
for literal types. These are lowered to double DXIL overloads, some of
which are not legal for these ops. We currently rely on illegal
intermediate DXIL op overloads for constant evaluation. If constant
evaluation fails, we end up with illegal DXIL overloads in final DXIL,
which is caught by the validator.

The prior revert restored the ability to run these scenarios (with
asserts disabled).

This change adds tests for microsoft#6419 so automated testing will test across
configurations and prevent regressions of this scenario in this branch.

(cherry picked from commit 9c2b828)
@pow2clk pow2clk requested a review from a team as a code owner July 17, 2024 20:04
@pow2clk pow2clk enabled auto-merge (squash) July 17, 2024 20:07
@pow2clk pow2clk merged commit cfc8ba0 into microsoft:release-preview-mesh-nodes Jul 17, 2024
13 checks passed
@pow2clk pow2clk deleted the cp-overload-tests branch July 17, 2024 21:14
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.

4 participants