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

jit: Fix overflow handling in function muldivmod #454

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

qwe661234
Copy link
Collaborator

The behavior of the host instructions div and mod differs from that of RISC-V. Additional checks are required to align with RISC-V's DIV[U] and REM[U] behavior, particularly when handling division by zero and overflow scenarios.

Close: #297

The behavior of the host instructions div and mod differs from that of
RISC-V. Additional checks are required to align with RISC-V's DIV[U] and
REM[U] behavior, particularly when handling division by zero and
overflow scenarios.

Close: sysprog21#297
Copy link
Contributor

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmarks

Benchmark suite Current: aa24f9d Previous: 3980194 Ratio
Dhrystone 5.33 Average DMIPS over 10 runs 4.37 Average DMIPS over 10 runs 0.82
Coremark 0.004 Average iterations/sec over 10 runs 0.004 Average iterations/sec over 10 runs 1

This comment was automatically generated by workflow using github-action-benchmark.

@jserv jserv requested a review from vacantron June 7, 2024 16:11
@jserv jserv added this to the release-2024.1 milestone Jun 7, 2024
@jserv jserv merged commit 40ea0b5 into sysprog21:master Jun 10, 2024
8 checks passed
vestata pushed a commit to vestata/rv32emu that referenced this pull request Jan 24, 2025
The behavior of the host instructions div and mod differs from that of
RISC-V. Additional checks are required to align with RISC-V's DIV[U] and
REM[U] behavior, particularly when handling division by zero and
overflow scenarios.

Close sysprog21#297
# 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.

jit: Incomplete muldivmod
2 participants