Difference between MOVDQA and MOVAPS x86 instructions?

后端 未结 1 1884
-上瘾入骨i
-上瘾入骨i 2020-12-03 06:27

I\'m looking Intel datasheet: Intel® 64 and IA-32 Architectures Software Developer’s Manual and I can\'t find the difference between

相关标签:
1条回答
  • 2020-12-03 07:05

    In functionality, they are identical.

    On some (but not all) micro-architectures, there are timing differences due to "domain crossing penalties". For this reason, one should generally use movdqa when the data is being used with integer SSE instructions, and movaps when the data is being used with floating-point instructions. For more information on this subject, consult the Intel Optimization Manual, or Agner Fog's excellent microarchitecture guide. Note that these delays are most often associated with register-register moves instead of loads or stores.

    0 讨论(0)
提交回复
热议问题