Skip to content

[PPCVLE] Fix I16L-form immediate decoding: use 5-bit mask for ui0_4 - #7553

Merged
plafosse merged 1 commit into
Vector35:devfrom
chedahub:fix-ppcvle-decode-i16l
Nov 1, 2025
Merged

[PPCVLE] Fix I16L-form immediate decoding: use 5-bit mask for ui0_4#7553
plafosse merged 1 commit into
Vector35:devfrom
chedahub:fix-ppcvle-decode-i16l

Conversation

@chedahub

@chedahub chedahub commented Nov 1, 2025

Copy link
Copy Markdown

Issue

VLE I16L-form instructions (e_and2i, e_and2is, e_or2i, e_or2is, e_lis)
decoded incorrect immediate values due to wrong bit mask.
image
image

Fix

Changed ui0_4 mask from 0xf (4-bit) to 0x1f (5-bit) to match PowerPC VLE
I16L-form specification where UI = ui[0-4] || ui[5-15].
image
image

Impact

Immediate values are now correctly parsed for all I16L-form instructions.

@plafosse
plafosse merged commit 9b285ff into Vector35:dev Nov 1, 2025
1 check passed
@plafosse

plafosse commented Nov 1, 2025

Copy link
Copy Markdown
Member

Code looks good. Thanks for the PR!

@emesare emesare added this to the Io milestone Nov 11, 2025
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