3 ms·
> Efficient integer overflow should really be implemented in the processor. But it already is. As a comment the article links to describes, add and then jo is
by chrisseaton 11y ago
> Efficient integer overflow should really be implemented in the processor.
But it already is. As a comment the article links to describes, add and then jo is fused by the processor, so the jo causes no extra uops and we can assume it's the same performance as a real add_and_jo instruction would be. The article also says the that the impact on the icache is insignificant so the fact that it's two instructions rather than one until the fusing also doesn't matter.
So what else did you want?
(Edit: spc476 points out that addressing mode arithmetic can't be used with jo, so there is that)
- caf 11y agoThe fused uop also can't be executed on as many ports as a plain add.