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

fcvt.wu.d does not round up denormalized values #25

Open
michael-roe opened this issue Jan 30, 2020 · 0 comments
Open

fcvt.wu.d does not round up denormalized values #25

michael-roe opened this issue Jan 30, 2020 · 0 comments

Comments

@michael-roe
Copy link

If the rounding mode is set to round up, fcvt.wu.d of a denormalized value rounds down to zero rather than rounding up to 1. (Spike gets this right).

Here's a test:

.global _start
_start:
lui ra, 2
csrs mstatus, ra

_test:
li t0, 0x10
fmv.d.x f1, t0
fcvt.wu.d a0, f1, rup

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

No branches or pull requests

1 participant