Stream: general

Topic: ✔ riscv divide by zero.


view this post on Zulip yang yu (Aug 24 2022 at 02:21):

https://stackoverflow.com/questions/70876942/why-has-risc-v-output-1-or-xffffffff-from-dividing-by-0
since riscv divide by zero will not cause exception.

should I cause one by myself??

As i know, the result of dividing by 0 in RISC-V ist -1(signed), 0xFFFFFFFF(hex). But i dont know the reason why the RISC-V outputs this code. Also How is this procedure justified? Thank you!

view this post on Zulip Notification Bot (Aug 24 2022 at 03:41):

yang yu has marked this topic as resolved.


Last updated: Nov 22 2024 at 16:03 UTC