ref: 289ca2ceaef841babb7ec3a302e0c7c625a54899
parent: 010eae8b2d6ad8713df22de7e7603fb30d4d8ceb
author: Victorien Le Couviour--Tuffet <psilokos@twoorioles.com>
date: Mon Jan 20 05:35:42 EST 2020
x86inc: save xmm_regs_used in spill_xmm for non-win64 This allows for AVX-512 code to issue vzeroupper automatically in RET, when not specified in cglobal but later on, along WIN64_SPILL_XMM.
--- a/src/ext/x86/x86inc.asm
+++ b/src/ext/x86/x86inc.asm
@@ -651,8 +651,10 @@
%if WIN64 == 0
%macro WIN64_SPILL_XMM 1
+ %assign xmm_regs_used %1
%endmacro
%macro WIN64_RESTORE_XMM 0
+ %assign xmm_regs_used 0
%endmacro
%macro WIN64_PUSH_XMM 0
%endmacro