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

Arm64Emitter: Fix encoding of size for ADD (vector) #10953

Merged
merged 1 commit into from Aug 9, 2022

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Aug 5, 2022

This was causing a bug in the rounding of paired single multiplication operands. If Force25BitPrecision was called for quad registers, the element size of its ADD instruction would get treated as if it was 16 instead of the intended 64, which would cause the result of the calculation to be incorrect if the carry had to pass a 16-bit boundary.

Fixes one of the two bugs reported in https://bugs.dolphin-emu.org/issues/12998.

This was causing a bug in the rounding of paired single multiplication
operands. If Force25BitPrecision was called for quad registers, the
element size of its ADD instruction would get treated as if it was 16
instead of the intended 64, which would cause the result of the
calculation to be incorrect if the carry had to pass a 16-bit boundary.

Fixes one of the two bugs reported in
https://bugs.dolphin-emu.org/issues/12998.
@JosJuice JosJuice requested a review from merryhime August 9, 2022 16:23
@lioncash lioncash merged commit e9e2c74 into dolphin-emu:master Aug 9, 2022
11 checks passed
@JosJuice JosJuice deleted the aarch64-add-encoding branch August 9, 2022 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants