Community
cancel
Showing results for 
Search instead for 
Did you mean: 
yuhong2
Beginner
165 Views

AVX/YMM registers and Win64 ABI

What are the rules for AVX/YMM registers under the Windows 64-bit ABI?
0 Kudos
4 Replies
165 Views

I dont think there is any change around ABI. As XMM registers are lower 128-bit part of YMM registers. In the end they are same registers, however extended to 256bits. So, in case of function calls the lower parts will be used to pass floating point arguements.

http://en.wikipedia.org/wiki/X86_calling_conventions#Microsoft_x64_calling_convention

TimP
Black Belt
165 Views

The story of the week is back to a wait of about a year from the introduction of YMM register machines until a SP for Windows 7 and server will support them.
yuhong2
Beginner
165 Views

Except that it is more than just calling conventions, the ABI also covers exception handling, and it also includes rules for prolog/epilog of functions which needs to followed for it to work properly. That is what I am particularly concerned about.
neerajsi_msft
Beginner
165 Views

Yuhong,

The bottom half of the YMM registers follow the x64 ABI rules for XMM registers. The top half is considered volatile.

Reply