Suppose:
General Purpose Register (GPR) like
r8
is holding value3.14
.r9
is holding value address of2.71
in memory.
Which one faster:
This
movq xmm0, r8 //reading 3.14 from r8
movq r8, xmm0 //writing 3.14 to r8
Or this
movsd xmm1, [r9] //reading 2.71 from memory
movsd [r9], xmm1 //writing 2.71 to memory
What I mean faster is R/W access time.