How many XMM registers are available on an x86 processor supporting SSE?

klm123 picture klm123 · Apr 5, 2012 · Viewed 7k times · Source

How to find out the number of XMM registers on a processor which supports SSE?

On Intel X5550, for example.

Answer

Daniel Kamil Kozar picture Daniel Kamil Kozar · Apr 5, 2012

The number of XMM registers is fixed in all the processors that support SSE. If the CPU is in 32-bit mode, you can use 8 registers, from xmm0 to xmm7, while if it's in 64-bit mode, you can address 16 registers, starting at xmm0 up to xmm15. This is thanks to using the REX.W prefix.