Re:Milk-V Titan: A $329 8-Core 64-bit RISC-V mini-ITX board ...
by adgjlsfhk1 on Sunday January 18, 2026 @04:03PM
(#46672131)
Non-flag based overflow checks are still pretty cheap. The overflow check is only 1 extra instruction for unsigned (both add and multiply), and 3/4 extra for signed overflow (see https://godbolt.org/z/nq1nb5Whr for details). It's also worth noting that in many cases, the overflow checks will be removable or simplify-able by the compiler entirely (e.g. if you're adding 1 or know the sign of one of the operands etc). As such, the extra couple instructions are likely worthwhile if it makes designing a wider core easier. Signed overflow instructions would be reasonable to add, but it's not like modern high performance cores are bottlenecked by scalar instructions that don't touch memory anyway.
[ Parent
| on HN ]
There are no comments on this comment yet.