4 ms·
This email thread from Linus might be interesting: https://yarchive.net/comp/linux/cmov.html https://yarchive.net/comp/linux/cmov.html
by rot13xor 5y ago
This email thread from Linus might be interesting: https://yarchive.net/comp/linux/cmov.html https://yarchive.net/comp/linux/cmov.html
- dataflow 5y agoI think that thread is where I first learned this actually. Didn't remember it until you linked it now, thanks for posting it!
- colejohnson66 5y agoMy understanding of out-of-order (and pipelined) CPUs is limited, but it’s interesting that CMOV isn’t interpreted as a “Jcc over MOV” by the decoder. That would allow using the branch predictor. Would it be too complex or does the microarchitecture not even allow it?