The compare register to memory `ucomisd (%rdi),%xmm0` in the first example is also probably slower than the register to register  `ucomisd %xmm1,%xmm0` in the second.