Skip to content

[RV64_DYNAREC] Fix POPCNT/TZCNT/LZCNT with 66h and rex.w prefix - #4622

Merged
ptitSeb merged 1 commit into
ptitSeb:mainfrom
zengdage:POPCNT
Oct 28, 2026
Merged

ptitSeb merged 1 commit into
ptitSeb:mainfrom
zengdage:POPCNT

Conversation

@zengdage

Copy link
Copy Markdown
Contributor

For POPCNT/TZCNT/LZCNT, if both the 66H operand-size prefix and REX.W=1 are present, the effective operand width is 64 bits.

The dynarec64_F30F routine handles translation of 64‑bit POPCNT.

For POPCNT/TZCNT/LZCNT, if both the 66H operand-size prefix and REX.W=1 are
present, the effective operand width is 64 bits.

The `dynarec64_F30F` routine handles translation of 64‑bit POPCNT.
@ptitSeb

ptitSeb commented Oct 28, 2026

Copy link
Copy Markdown
Owner

It seems to me that also ARM64 & LA64 have the same issue. Interpreter is ok tho.

@ptitSeb
ptitSeb merged commit 3795fe4 into ptitSeb:main Oct 28, 2026
29 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