Skip to content

Instantly share code, notes, and snippets.

@samuel
Created June 21, 2016 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuel/3053bafe149a0459322f6eeaf8bd5ae5 to your computer and use it in GitHub Desktop.
Save samuel/3053bafe149a0459322f6eeaf8bd5ae5 to your computer and use it in GitHub Desktop.
Go 1.6.2
```
"".VScaleF32 t=1 size=128 value=0 args=0x38 locals=0x0
0x0000 00000 (math32.go:7) TEXT "".VScaleF32(SB), $0-56
0x0000 00000 (math32.go:7) MOVQ (TLS), CX
0x0009 00009 (math32.go:7) CMPQ SP, 16(CX)
0x000d 00013 (math32.go:7) JLS 119
0x000f 00015 (math32.go:7) NOP
0x000f 00015 (math32.go:7) NOP
0x000f 00015 (math32.go:7) MOVQ "".output+32(FP), R9
0x0014 00020 (math32.go:7) MOVSS "".scale+56(FP), X2
0x001a 00026 (math32.go:7) MOVQ "".output+40(FP), DI
0x001f 00031 (math32.go:7) FUNCDATA $0, gclocals·71f75e7e2fe2878e818867fe3428bd87(SB)
0x001f 00031 (math32.go:7) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x001f 00031 (math32.go:8) MOVQ "".input+16(FP), AX
0x0024 00036 (math32.go:9) CMPQ DI, AX
0x0027 00039 (math32.go:9) JGE 117
0x0029 00041 (math32.go:9) NOP
0x0029 00041 (math32.go:10) MOVQ DI, AX
0x002c 00044 (math32.go:12) MOVQ "".input+24(FP), BP
0x0031 00049 (math32.go:12) CMPQ AX, BP
0x0034 00052 (math32.go:12) JHI $0, 110
0x0036 00054 (math32.go:12) MOVQ "".input+8(FP), CX
0x003b 00059 (math32.go:12) NOP
0x003b 00059 (math32.go:12) MOVQ AX, SI
0x003e 00062 (math32.go:12) NOP
0x003e 00062 (math32.go:12) MOVQ $0, AX
0x0040 00064 (math32.go:12) CMPQ AX, SI
0x0043 00067 (math32.go:12) JGE $0, 102
0x0045 00069 (math32.go:12) NOP
0x0045 00069 (math32.go:12) MOVSS (CX), X0
0x0049 00073 (math32.go:13) CMPQ AX, DI
0x004c 00076 (math32.go:13) JCC $1, 103
0x004e 00078 (math32.go:13) LEAQ (R9)(AX*4), BX
0x0052 00082 (math32.go:13) MULSS X2, X0
0x0056 00086 (math32.go:13) MOVSS X0, (BX)
0x005a 00090 (math32.go:12) ADDQ $4, CX
0x005e 00094 (math32.go:12) INCQ AX
0x0061 00097 (math32.go:12) CMPQ AX, SI
0x0064 00100 (math32.go:12) JLT $0, 69
0x0066 00102 (math32.go:12) NOP
0x0066 00102 (math32.go:12) NOP
0x0066 00102 (math32.go:15) RET
0x0067 00103 (math32.go:13) PCDATA $0, $0
0x0067 00103 (math32.go:13) CALL runtime.panicindex(SB)
0x006c 00108 (math32.go:13) UNDEF
0x006e 00110 (math32.go:12) PCDATA $0, $0
0x006e 00110 (math32.go:12) CALL runtime.panicslice(SB)
0x0073 00115 (math32.go:12) UNDEF
0x0075 00117 (math32.go:9) NOP
0x0075 00117 (math32.go:12) JMP 44
0x0077 00119 (math32.go:12) NOP
0x0077 00119 (math32.go:7) CALL runtime.morestack_noctxt(SB)
0x007c 00124 (math32.go:7) JMP 0
"".VMaxF32 t=1 size=128 value=0 args=0x20 locals=0x8
0x0000 00000 (math32.go:17) TEXT "".VMaxF32(SB), $8-32
0x0000 00000 (math32.go:17) SUBQ $8, SP
0x0004 00004 (math32.go:17) FUNCDATA $0, gclocals·2fccd208efe70893f9ac8d682812ae72(SB)
0x0004 00004 (math32.go:17) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x0004 00004 (math32.go:17) XORPS X0, X0
0x0007 00007 (math32.go:18) MOVQ $-1, AX
0x000e 00014 (math32.go:18) XORPS X0, X0
0x0011 00017 (math32.go:18) CMPQ AX, $0
0x0015 00021 (math32.go:18) JLT 112
0x0017 00023 (math32.go:18) MOVQ $9218868437227405312, AX
0x0021 00033 (math32.go:18) MOVQ AX, math.b·2(SP)
0x0025 00037 (math32.go:18) XORPS X0, X0
0x0028 00040 (math32.go:18) LEAQ math.b·2(SP), BX
0x002c 00044 (math32.go:18) NOP
0x002c 00044 (math32.go:18) MOVSD (BX), X3
0x0030 00048 (math32.go:18) CVTSD2SS X3, X3
0x0034 00052 (math32.go:19) NOP
0x0034 00052 (math32.go:19) MOVQ "".input+16(FP), AX
0x0039 00057 (math32.go:19) MOVQ "".input+24(FP), DX
0x003e 00062 (math32.go:19) MOVQ "".input+32(FP), BX
0x0043 00067 (math32.go:19) MOVQ $0, CX
0x0045 00069 (math32.go:19) CMPQ CX, DX
0x0048 00072 (math32.go:19) JGE $0, 95
0x004a 00074 (math32.go:19) NOP
0x004a 00074 (math32.go:19) MOVSS (AX), X2
0x004e 00078 (math32.go:20) UCOMISS X3, X2
0x0051 00081 (math32.go:20) JHI 106
0x0053 00083 (math32.go:19) ADDQ $4, AX
0x0057 00087 (math32.go:19) INCQ CX
0x005a 00090 (math32.go:19) CMPQ CX, DX
0x005d 00093 (math32.go:19) JLT $0, 74
0x005f 00095 (math32.go:19) NOP
0x005f 00095 (math32.go:24) MOVSS X3, "".~r1+40(FP)
0x0065 00101 (math32.go:24) ADDQ $8, SP
0x0069 00105 (math32.go:24) RET
0x006a 00106 (math32.go:21) MOVSS X2, X3
0x006e 00110 (math32.go:19) JMP 83
0x0070 00112 (math32.go:18) MOVQ $-4503599627370496, AX
0x007a 00122 (math32.go:18) JMP 33
```
Go 1.7beta2
```
0x0000 00000 (math32.go:7) TEXT "".VScaleF32(SB), $0-56
0x0000 00000 (math32.go:7) MOVQ (TLS), CX
0x0009 00009 (math32.go:7) CMPQ SP, 16(CX)
0x000d 00013 (math32.go:7) JLS 126
0x000f 00015 (math32.go:7) NOP
0x000f 00015 (math32.go:7) NOP
0x000f 00015 (math32.go:7) FUNCDATA $0, gclocals·7e19e3e0bbff70eb430866b7c475135f(SB)
0x000f 00015 (math32.go:7) FUNCDATA $1, gclocals·69c1753bd5f81501d95132d08af04464(SB)
0x000f 00015 (math32.go:9) MOVQ "".output+40(FP), AX
0x0014 00020 (math32.go:9) MOVQ "".input+16(FP), CX
0x0019 00025 (math32.go:9) CMPQ AX, CX
0x001c 00028 (math32.go:9) JGE 121
0x001e 00030 (math32.go:12) MOVQ "".input+24(FP), CX
0x0023 00035 (math32.go:12) CMPQ AX, CX
0x0026 00038 (math32.go:12) JHI $0, 114
0x0028 00040 (math32.go:12) MOVSS "".scale+56(FP), X0
0x002e 00046 (math32.go:12) MOVQ "".output+32(FP), CX
0x0033 00051 (math32.go:12) MOVQ "".output+40(FP), DX
0x0038 00056 (math32.go:12) MOVQ "".input+8(FP), BX
0x003d 00061 (math32.go:12) MOVQ $0, SI
0x003f 00063 (math32.go:12) CMPQ SI, AX
0x0042 00066 (math32.go:12) JGE $0, 106
0x0044 00068 (math32.go:12) MOVSS (BX), X1
0x0048 00072 (math32.go:13) MULSS X0, X1
0x004c 00076 (math32.go:13) CMPQ SI, DX
0x004f 00079 (math32.go:13) JCC $0, 107
0x0051 00081 (math32.go:13) MOVQ SI, DI
0x0054 00084 (math32.go:13) SHLQ $2, SI
0x0058 00088 (math32.go:13) MOVSS X1, (CX)(SI*1)
0x005d 00093 (math32.go:12) ADDQ $4, BX
0x0061 00097 (math32.go:12) LEAQ 1(DI), SI
0x0065 00101 (math32.go:12) CMPQ SI, AX
0x0068 00104 (math32.go:12) JLT $0, 68
0x006a 00106 (math32.go:15) RET
0x006b 00107 (math32.go:13) PCDATA $0, $1
0x006b 00107 (math32.go:13) CALL runtime.panicindex(SB)
0x0070 00112 (math32.go:13) UNDEF
0x0072 00114 (math32.go:12) PCDATA $0, $1
0x0072 00114 (math32.go:12) CALL runtime.panicslice(SB)
0x0077 00119 (math32.go:12) UNDEF
0x0079 00121 (math32.go:9) MOVQ CX, AX
0x007c 00124 (math32.go:12) JMP 30
0x007e 00126 (math32.go:12) NOP
0x007e 00126 (math32.go:7) CALL runtime.morestack_noctxt(SB)
0x0083 00131 (math32.go:7) JMP 0
"".VMaxF32 t=1 size=99 args=0x20 locals=0x10
0x0000 00000 (math32.go:17) TEXT "".VMaxF32(SB), $16-32
0x0000 00000 (math32.go:17) SUBQ $16, SP
0x0004 00004 (math32.go:17) MOVQ BP, 8(SP)
0x0009 00009 (math32.go:17) LEAQ 8(SP), BP
0x000e 00014 (math32.go:17) FUNCDATA $0, gclocals·2fccd208efe70893f9ac8d682812ae72(SB)
0x000e 00014 (math32.go:17) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x000e 00014 (math32.go:18) MOVQ $-4503599627370496, AX
0x0018 00024 (math32.go:18) MOVQ AX, math.b·2(SP)
0x001c 00028 (math32.go:18) MOVSD math.b·2(SP), X0
0x0021 00033 (math32.go:18) CVTSD2SS X0, X0
0x0025 00037 (math32.go:19) MOVQ "".input+32(FP), AX
0x002a 00042 (math32.go:19) MOVQ "".input+24(FP), CX
0x002f 00047 (math32.go:18) MOVQ $0, DX
0x0031 00049 (math32.go:19) CMPQ DX, AX
0x0034 00052 (math32.go:19) JGE $0, 78
0x0036 00054 (math32.go:19) MOVSS (CX), X1
0x003a 00058 (math32.go:20) UCOMISS X0, X1
0x003d 00061 (math32.go:20) JLS 94
0x003f 00063 (math32.go:19) ADDQ $4, CX
0x0043 00067 (math32.go:19) INCQ DX
0x0046 00070 (math32.go:24) MOVUPS X1, X0
0x0049 00073 (math32.go:19) CMPQ DX, AX
0x004c 00076 (math32.go:19) JLT $0, 54
0x004e 00078 (math32.go:24) MOVSS X0, "".~r1+48(FP)
0x0054 00084 (math32.go:24) MOVQ 8(SP), BP
0x0059 00089 (math32.go:24) ADDQ $16, SP
0x005d 00093 (math32.go:24) RET
0x005e 00094 (math32.go:24) MOVUPS X0, X1
0x0061 00097 (math32.go:19) JMP 63
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment