3 ms·
It doesn't have a condition code register, which scores it plenty of weirdness points.
by kryptiskt 4y ago
It doesn't have a condition code register, which scores it plenty of weirdness points.
- zozbot234 4y agoNot having condition codes actually cleans up the semantics a lot - no need to define the CC effects for each and every insn. It's also helpful to high-performance implementations, since the condition code register would otherwise enter as a dependency in every insn.
- kryptiskt 4y agoSure, there are reasons for it being that way, but it makes it stick out from the mainstream. For example, if you're writing a codegen, before RISC-V you could assume that you had CMOVE and now you can't. The risk is then that the RISC-V backend will emit some clumsy sequence that emulates CMOVE, to make it fit in with the others.