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

OpcodeDispatcher: Minor optimization to small pushf #4137

Merged
merged 3 commits into from
Oct 26, 2024

Conversation

Sonicadvance1
Copy link
Member

The push operation already truncates the result, there's no need to bfe
it. Noticed this while cleaning up in #4134. Removes one instruction for
16-bit and 32-bit pushf instructions.

pushf was aliasing to pushfq, needed an o16 prefix.
We also weren't testing the 32-bit path, which only exists on 32-bit, so
add that as well.
The push operation already truncates the result, there's no need to bfe
it. Noticed this while cleaning up in FEX-Emu#4134. Removes one instruction for
16-bit and 32-bit pushf instructions.
@alyssarosenzweig
Copy link
Collaborator

Sure

@lioncash lioncash merged commit f6cdb16 into FEX-Emu:main Oct 26, 2024
12 checks passed
@Sonicadvance1 Sonicadvance1 deleted the minor_pushf_opt branch October 26, 2024 01:42
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