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

Fix to VFPU register allocation. Fixes #7174 #7217

Merged
merged 1 commit into from
Dec 23, 2014

Conversation

hilesaz
Copy link
Contributor

@hilesaz hilesaz commented Dec 23, 2014

GetFreeXRegs(,,true) invalidates registers it can see on spill,
but it can't see all the registers in the array due to how we call it
so we have to invalidate the rest ourselves. Not doing so can get it
to use the same register twice.

I also have a relevant auto-test if there's any interest. It is transcribed directly from a game though.

GetFreeXRegs(_,_,true) invalidates registers it can see on spill,
but it can't see all the registers in the array due to how we call it
so we have to invalidate the rest ourselves.  Not doing so can get it
to use the same register twice.
@hrydgard
Copy link
Owner

Oh, nice one, thanks!

If it's just a few instructions, the minimal required to reproduce the bug, I think it's fine to add the test as well..

hrydgard added a commit that referenced this pull request Dec 23, 2014
Fix to VFPU register allocation. Fixes #7174
@hrydgard hrydgard merged commit 98f1ac9 into hrydgard:master Dec 23, 2014
@unknownbrackets
Copy link
Collaborator

Oops, thanks. Yeah, more tests for regcache bugs are good. Will help arm and armv8 as well.

-[Unknown]

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.

3 participants