logoalt Hacker News

Reubenssontoday at 2:32 PM2 repliesview on HN

What do you mean that cpu does something different? Isnt cpu doing what is being asked, that being xor with consequence of zeroing when given two same values.


Replies

doogliustoday at 5:02 PM

FTA:

> And, having done that it removes the operation from the execution queue - that is the xor takes zero execution cycles!1 It’s essentially optimised out by the CPU

IsTomtoday at 2:37 PM

I think OP means that it has come a long way from the simple mental model of µops being a direct execution of operations and with all the register renamings and so on