Is a mov to a segmentation register slower than a mov to a general purpose register?

mov %eax, %ebx between general-purpose registers is one of the most common instructions. Modern hardware supports it extremely efficiently, often with special cases that don’t apply to any other instruction. On older hardware, it’s always been one of the cheapest instructions. On Ivybridge and later, it doesn’t even need an execution unit and has zero … Read more