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

xtheadfmemidx: Fix instruction depenencies #50

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

cmuellner
Copy link
Contributor

The XTheadFMemIdx instruction that perform a zero-extension of the index register (those with a u in the name) are identical to the sign-extension counterparts on RV32. Therefore, it does not make sense to offer both for RV32.

Further, the table lists the 8-byte loads/stores as compatible with the F extensions. However, 8-byte loads won't fit into single-precision floating-point register. And 8-byte stores can't be performed from a single-precision floating-point register. Instead of defining truncation and extension for these cases, let's make the instructions only available for those cases where they make sense.

Fixes #49.

The XTheadFMemIdx instruction that perform a zero-extension of the index
register (those with a `u` in the name) are identical to the
sign-extension counterparts on RV32. Therefore, it does not make sense
to offer both for RV32.

Further, the table lists the 8-byte loads/stores as compatible with the
`F` extensions. However, 8-byte loads won't fit into single-precision
floating-point register. And 8-byte stores can't be performed from a
single-precision floating-point register. Instead of defining truncation
and extension for these cases, let's make the instructions only
available for those cases where they make sense.

Fixes XUANTIE-RV#49.

Signed-off-by: Christoph Müllner <[email protected]>
@Cooper-Qu
Copy link
Collaborator

LGTM, Thanks!

@Cooper-Qu Cooper-Qu merged commit 354b417 into XUANTIE-RV:master Dec 14, 2024
3 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.

Is th.flurw from xtheadfmemidx really supported on RV32?
2 participants