Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

AVX/YMM registers and Win64 ABI

yuhong2
Beginner
812 Views
What are the rules for AVX/YMM registers under the Windows 64-bit ABI?
0 Kudos
4 Replies
Brijender_B_Intel
811 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

0 Kudos
TimP
Honored Contributor III
811 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.
0 Kudos
yuhong2
Beginner
811 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.
0 Kudos
neerajsi_msft
Beginner
811 Views

Yuhong,

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

0 Kudos
Reply