3 ms·
You left out the paragraph introducing this in the footnote: > We did not include special instruction-set support for overflow checks on integer ar
by pjc50 7y ago
You left out the paragraph introducing this in the footnote:
> We did not include special instruction-set support for overflow checks on integer arithmetic
operations in the base instruction set, as many overflow checks can be cheaply implemented using
RISC-V branches.
So this boils down to "there's no platform overflow (V) flag", which is also a problem on other RISC systems, and is in any case rarely used in C code because it doesn't check for overflow.
- Annatar 7y agoI didn't want to unduly burden the audience here, so they don't get an aneurism and end up on n-gate.com webshit weekly. The fact that this processor design has no state register just cements my point that its designers were insane, as is plain to see from the nonsense instructions one has to write to get basic things done. Assembler is supposed to be simple, not a retarded masturbation.
- Taniwha 7y agoyes, exactly - if you want to add 2 registers use: add t0, t1, t2 in the occasional case where you want overflow as well add the other 3 instructions - if you're hand coding in assembler you probably know which you want, if you're using a compiler, it can map it's semantics where appropriate