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

Support denormal flush to zero mode #1290

Open
squidbus opened this issue Mar 7, 2025 · 0 comments
Open

Support denormal flush to zero mode #1290

squidbus opened this issue Mar 7, 2025 · 0 comments

Comments

@squidbus
Copy link

squidbus commented Mar 7, 2025

The project https://github.com/hedge-dev/XenonRecomp is used for a recompilation of the game Sonic Unleashed from Xbox 360 to PC. There's a PR open now to use simde for SIMD intrinsics, to make the generated code cross-architecture instead of x86_64 only.

We noticed however that denormal flush to zero flags don't seem to be supported by simde; for example, _MM_FLUSH_ZERO_MASK seems to be ignored and _MM_DENORMALS_ZERO_MASK does not exist at all. These flags are required to make part of the game work properly.

Right now we are handling this by manually setting FPCR bits for ARM64 instead of using simde_mm_getcsr/simde_mm_setcsr, but it would be easier for us if simde could support handling these bits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant