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

JitArm64: Implement fctiwx #10202

Merged
merged 2 commits into from Nov 7, 2021
Merged

JitArm64: Implement fctiwx #10202

merged 2 commits into from Nov 7, 2021

Conversation

merryhime
Copy link
Contributor

As a FCVTS instruction that uses the current rounding mode does not exist on ARM64, the easiest way to implement fctiwx would be to first convert to an integral floating point using the native rounding mode, then converting that value to an integer (rounding mode doesn't matter in this second step as result would be exact).

TODO is the same TODO as in the Jit64 backend.

Tested in FZGX.

We implement this by first rounding to nearest integer using the current
rouding mode, then converting this value from floating point to an integral
value.
@lioncash lioncash merged commit 58f8c6e into dolphin-emu:master Nov 7, 2021
10 checks passed
@merryhime merryhime deleted the fctiwx branch November 7, 2021 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants