|
|
|
|
|
by wolfgke
3412 days ago
|
|
I know that. But this is only relevant if you exchange registers with memory and is not of relevance if you exchange two registers.
I accept that this is a good point if some variables are moved to the stack because of register spilling or because you want to use the address of the variable (which is not the case here). So I still stand by my point: What is the reason why the compiler uses `mov` for exchanging two registers here instead of `xchg`? |
|
"Vector path instructions are less efficient than single or double instructions because they require exclusive access to the decoders and pipelines and do not always reorder optimally. For example:
This sequence takes 4 clock cycles to decode because the vector path instructions must decode alone."