Reputation: 30765
When I disassembled my C code, I saw the following. What does this code do exactly? Does it have something to do with floating points?
movsd (%rdx,%rax,8),%xmm0
mulsd %xmm0,%xmm0
movsd %xmm0,0x30(%rsp)
Upvotes: 1
Views: 254
Reputation: 760
it squares a number:
xmm0=*(rdx*8+rax);
xmm0*=xmm0;
rsp[0x30]=xmmm0;
xmm0 is a floating point register.
Upvotes: 7