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

x64EmitterTest: add J/J_CC/CALL unit tests #11959

Merged
merged 2 commits into from Aug 21, 2023

Conversation

Dentomologist
Copy link
Contributor

Add some missing x64Emitter unit tests.

@JosJuice
Copy link
Member

For near vs short specifically, I think it might make sense to compare the raw bytes, seeing as the disassembly doesn't explicitly note which jumps are near and which jumps are short. The way the test is implemented right now, it could theoretically pass if both near vs short and the offset are incorrect in a way that happens to match up.

Check bytes directly to avoid ambiguity in the disassembly between short
and near jumps, which could hypothetically cause the test to pass when
it shouldn't.
@Dentomologist
Copy link
Contributor Author

Near and short jumps now check the raw bytes, and I added a commit to do that in JMP as well.

@JosJuice JosJuice merged commit 3451cb1 into dolphin-emu:master Aug 21, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants