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

Special fp value get wrong result for fmod #6567

Open
python3kgae opened this issue Apr 25, 2024 · 0 comments
Open

Special fp value get wrong result for fmod #6567

python3kgae opened this issue Apr 25, 2024 · 0 comments
Labels
bug Bug, regression, crash
Milestone

Comments

@python3kgae
Copy link
Contributor

Description

fmod with special input get wrong result.

Steps to Reproduce

dxc -Tvs_6_0

RWBuffer<float4> results;

[shader("vertex")]
void main() {
      // Explicit float
      // 0.0, -0.0, NaN, -NaN
      results[0] = float4(fmod(0.0f, 1.0f),
                                        fmod(-0.0f, 1.0f),
                         fmod(5.5f, 0.0f),
                         fmod(-5.5f, 0.0f));
}

Actual Behavior

0.0, 0.0, 0.0, 0.0 is stored into result[0].

Environment

  • DXC version : 1.8
  • Host Operating System : Windows
@python3kgae python3kgae added bug Bug, regression, crash needs-triage Awaiting triage labels Apr 25, 2024
@damyanp damyanp added this to the Dormant milestone Apr 29, 2024
@damyanp damyanp removed the needs-triage Awaiting triage label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash
Projects
Status: Triaged
Development

No branches or pull requests

2 participants