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

signed dword float to and from conversions fcvt.l.s, fcvt.s.l, fcvt.l.d, fcvt.d.l perform unsigned conversions instead #33

Open
lenawanel opened this issue May 29, 2024 · 0 comments · May be fixed by #34

Comments

@lenawanel
Copy link

see for example in

rvemu/src/cpu.rs

Line 3022 in f55eb5b

self.xregs.write(rd, self.fregs.read(rs1).round() as u64);

in the spec they are described as for example

[..] FCVT.L.D converts a double-precision floating-point number in floating-point register rs1 to a signed [..] 64-bit integer [..] in integer register rd.

lenawanel added a commit to lenawanel/rvemu that referenced this issue May 29, 2024
lenawanel added a commit to lenawanel/rvemu that referenced this issue May 29, 2024
@lenawanel lenawanel linked a pull request May 29, 2024 that will close this issue
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 a pull request may close this issue.

1 participant