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

JIT: fix neon vec4 faddv #3599

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Conversation

alyssarosenzweig
Copy link
Collaborator

We were previously genrating nonsense code if the destination != source:

     faddp v2.4s, v4.4s, v4.4s
     faddp s2, v4.2s

The result of the first faddp is ignored, so the second merely calculates the sum of the first 2 sources (not all 4 as needed).

The correct fix is to feed the first add into the second, regardless of the final destination:

     faddp v2.4s, v4.4s, v4.4s
     faddp s2, v2.2s

Hit in an ASM test with new RA.

We were previously genrating nonsense code if the destination != source:

         faddp v2.4s, v4.4s, v4.4s
         faddp s2, v4.2s

The result of the first faddp is ignored, so the second merely calculates the
sum of the first 2 sources (not all 4 as needed).

The correct fix is to feed the first add into the second, regardless of the
final destination:

         faddp v2.4s, v4.4s, v4.4s
         faddp s2, v2.2s

Hit in an ASM test with new RA.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Copy link
Member

@Sonicadvance1 Sonicadvance1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I oop.

@Sonicadvance1 Sonicadvance1 merged commit fe70ec7 into FEX-Emu:main Apr 25, 2024
11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants