Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix signed integer comparison in AMOMIN.W and AMOMAX.W #352

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

visitorckw
Copy link
Collaborator

The current implementation of the AMOMIN.W and AMOMAX.W instructions incorrectly compares the values of registers rd and rs2 as unsigned integers instead of signed integers. Correct this behavior by properly treating rd and rs2 as signed integers before performing the comparison.

The current implementation of the AMOMIN.W and AMOMAX.W instructions
incorrectly compares the values of registers rd and rs2 as unsigned
integers instead of signed integers. Correct this behavior by properly
treating rd and rs2 as signed integers before performing the
comparison.
@jserv jserv merged commit c4c2926 into sysprog21:master Feb 20, 2024
7 checks passed
vestata pushed a commit to vestata/rv32emu that referenced this pull request Jan 24, 2025
Fix signed integer comparison in AMOMIN.W and AMOMAX.W
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants