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

Fix rounding mode selection #323

Merged
merged 1 commit into from
Jan 6, 2024
Merged

Commits on Jan 6, 2024

  1. Fix rounding mode selection

    Some F extension instructions include an rm field, indicating the
    rounding mode to be used. When an instruction has an rm field, the
    rounding mode should be chosen based on the value of that field. If the
    rm field is set to 0b111, it signifies dynamic selection of the
    rounding mode based on the fcsr's frm field.
    
    The current implementation always selected the rounding mode
    dynamically based on fcsr's frm, regardless of the rm field in the
    instruction. This patch corrects this error, ensuring that the rounding
    mode is now chosen according to the rm field when present.
    visitorckw committed Jan 6, 2024
    1 Configuration menu
    Copy the full SHA
    a00aeea View commit details
    Browse the repository at this point in the history