Text file
src/runtime/preempt_amd64.s
1 // Code generated by mkpreempt.go; DO NOT EDIT.
2
3 #include "go_asm.h"
4 #include "textflag.h"
5
6 TEXT ·asyncPreempt(SB),NOSPLIT|NOFRAME,$0-0
7 PUSHQ BP
8 MOVQ SP, BP
9 // Save flags before clobbering them
10 PUSHFQ
11 // obj doesn't understand ADD/SUB on SP, but does understand ADJSP
12 ADJSP $368
13 // But vet doesn't know ADJSP, so suppress vet stack checking
14 NOP SP
15 MOVQ AX, 0(SP)
16 MOVQ CX, 8(SP)
17 MOVQ DX, 16(SP)
18 MOVQ BX, 24(SP)
19 MOVQ SI, 32(SP)
20 MOVQ DI, 40(SP)
21 MOVQ R8, 48(SP)
22 MOVQ R9, 56(SP)
23 MOVQ R10, 64(SP)
24 MOVQ R11, 72(SP)
25 MOVQ R12, 80(SP)
26 MOVQ R13, 88(SP)
27 MOVQ R14, 96(SP)
28 MOVQ R15, 104(SP)
29 #ifdef GOOS_darwin
30 CMPB internal∕cpu·X86+const_offsetX86HasAVX(SB), $0
31 JE 2(PC)
32 VZEROUPPER
33 #endif
34 MOVUPS X0, 112(SP)
35 MOVUPS X1, 128(SP)
36 MOVUPS X2, 144(SP)
37 MOVUPS X3, 160(SP)
38 MOVUPS X4, 176(SP)
39 MOVUPS X5, 192(SP)
40 MOVUPS X6, 208(SP)
41 MOVUPS X7, 224(SP)
42 MOVUPS X8, 240(SP)
43 MOVUPS X9, 256(SP)
44 MOVUPS X10, 272(SP)
45 MOVUPS X11, 288(SP)
46 MOVUPS X12, 304(SP)
47 MOVUPS X13, 320(SP)
48 MOVUPS X14, 336(SP)
49 MOVUPS X15, 352(SP)
50 CALL ·asyncPreempt2(SB)
51 MOVUPS 352(SP), X15
52 MOVUPS 336(SP), X14
53 MOVUPS 320(SP), X13
54 MOVUPS 304(SP), X12
55 MOVUPS 288(SP), X11
56 MOVUPS 272(SP), X10
57 MOVUPS 256(SP), X9
58 MOVUPS 240(SP), X8
59 MOVUPS 224(SP), X7
60 MOVUPS 208(SP), X6
61 MOVUPS 192(SP), X5
62 MOVUPS 176(SP), X4
63 MOVUPS 160(SP), X3
64 MOVUPS 144(SP), X2
65 MOVUPS 128(SP), X1
66 MOVUPS 112(SP), X0
67 MOVQ 104(SP), R15
68 MOVQ 96(SP), R14
69 MOVQ 88(SP), R13
70 MOVQ 80(SP), R12
71 MOVQ 72(SP), R11
72 MOVQ 64(SP), R10
73 MOVQ 56(SP), R9
74 MOVQ 48(SP), R8
75 MOVQ 40(SP), DI
76 MOVQ 32(SP), SI
77 MOVQ 24(SP), BX
78 MOVQ 16(SP), DX
79 MOVQ 8(SP), CX
80 MOVQ 0(SP), AX
81 ADJSP $-368
82 POPFQ
83 POPQ BP
84 RET
85
View as plain text