diff options
Diffstat (limited to 'src/runtime/preempt_amd64.s')
| -rw-r--r-- | src/runtime/preempt_amd64.s | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/preempt_amd64.s b/src/runtime/preempt_amd64.s index 31f7c8b66f..94a84fb74c 100644 --- a/src/runtime/preempt_amd64.s +++ b/src/runtime/preempt_amd64.s @@ -1,6 +1,7 @@ // Code generated by mkpreempt.go; DO NOT EDIT. #include "go_asm.h" +#include "asm_amd64.h" #include "textflag.h" TEXT ·asyncPreempt(SB),NOSPLIT|NOFRAME,$0-0 @@ -27,8 +28,10 @@ TEXT ·asyncPreempt(SB),NOSPLIT|NOFRAME,$0-0 MOVQ R14, 96(SP) MOVQ R15, 104(SP) #ifdef GOOS_darwin + #ifndef hasAVX CMPB internal∕cpu·X86+const_offsetX86HasAVX(SB), $0 JE 2(PC) + #endif VZEROUPPER #endif MOVUPS X0, 112(SP) |
