Skip to content

Instantly share code, notes, and snippets.

View andnot.txt
quasilyte src $ gogrep -x '$x & ^$y' ./...
bytes/bytes.go:294:8: wasSpace & ^isSpace
cmd/internal/src/pos.go:407:14: uint(x) & ^uint(xlogueMax<<xlogueShift)
cmd/internal/src/pos.go:415:14: uint(x) & ^uint(isStmtMax<<isStmtShift)
crypto/elliptic/p256.go:1058:11: pIsNoninfiniteMask & ^nIsInfinityMask
crypto/elliptic/p256.go:1139:10: pIsNoninfiniteMask & ^nIsInfinityMask
crypto/tls/conn.go:818:20: payloadBytes & ^(blockSize - 1)
hash/crc32/crc32_ppc64le.go:42:14: len(p) & ^vecAlignMask
hash/crc32/crc32_ppc64le.go:79:14: len(p) & ^vecAlignMask
hash/crc32/crc32_s390x.go:50:14: len(p) & ^vxAlignMask
View go_fma.patch
diff --git a/src/cmd/compile/internal/amd64/ssa.go b/src/cmd/compile/internal/amd64/ssa.go
index 307cdc5e83..dc1ab4161a 100644
--- a/src/cmd/compile/internal/amd64/ssa.go
+++ b/src/cmd/compile/internal/amd64/ssa.go
@@ -149,6 +149,17 @@ func duff(size int64) (int64, int64) {
func ssaGenValue(s *gc.SSAGenState, v *ssa.Value) {
switch v.Op {
+ case ssa.OpAMD64FMASD:
+ p := s.Prog(v.Op.Asm())
View strings_pkg_warnings.txt
$GOROOT/src/strings/replace.go:450:22: unslice: could simplify s[:] to s
$GOROOT/src/strings/replace.go:148:2: elseif: should rewrite if-else to switch statement
$GOROOT/src/strings/replace.go:156:3: elseif: should rewrite if-else to switch statement
$GOROOT/src/strings/replace.go:219:3: elseif: should rewrite if-else to switch statement
$GOROOT/src/strings/replace.go:370:1: paramTypeCombine: func(pattern string, value string) *singleStringReplacer could be replaced with func(pattern, value string) *singleStringReplacer
$GOROOT/src/strings/replace.go:259:2: rangeExprCopy: copy of r.mapping (256 bytes) can be avoided with &r.mapping
$GOROOT/src/strings/replace.go:264:2: rangeExprCopy: copy of r.mapping (256 bytes) can be avoided with &r.mapping
$GOROOT/src/strings/strings.go:791:1: paramTypeCombine: func(s string, cutset string) string could be replaced with func(s, cutset string) string
$GOROOT/src/strings/strings.go:800:1: paramTypeCombine: func(s string, cutset string) string could be replaced with func(s,
View appends.txt
$GOROOT/src/net/http/socks_bundle.go:106:3: append-combine: can combine chain of 2 appends into one
$GOROOT/src/cmd/vet/asmdecl.go:425:4: append-combine: can combine chain of 2 appends into one
$GOROOT/src/cmd/vet/asmdecl.go:430:3: append-combine: can combine chain of 2 appends into one
$GOROOT/src/cmd/vet/asmdecl.go:434:3: append-combine: can combine chain of 2 appends into one
$GOROOT/src/cmd/vet/asmdecl.go:438:3: append-combine: can combine chain of 3 appends into one
$GOROOT/src/cmd/vet/asmdecl.go:443:3: append-combine: can combine chain of 2 appends into one
$GOROOT/src/cmd/vet/asmdecl.go:448:3: append-combine: can combine chain of 2 appends into one
$GOROOT/src/cmd/dist/test.go:605:3: append-combine: can combine chain of 2 appends into one
$GOROOT/src/cmd/dist/test.go:674:4: append-combine: can combine chain of 2 appends into one
$GOROOT/src/net/dnsclient.go:30:3: append-combine: can combine chain of 4 appends into one
View avx512extmap.csv
xed conventional filename
AVX512BW_128 AVX512BW+AVX512VL avx512bw
AVX512BW_128N AVX512BW+AVX512VL avx512bw
AVX512BW_256 AVX512BW+AVX512VL avx512bw
AVX512BW_512 AVX512BW avx512bw
AVX512BW_KOP AVX512BW avx512bw
AVX512CD_128 AVX512CD+AVX512VL avx512cd
AVX512CD_256 AVX512CD+AVX512VL avx512cd
AVX512CD_512 AVX512CD avx512cd
AVX512DQ_128 AVX512DQ+AVX512VL avx512dq
View avx512tests.md

Given this data.txt file that includes all encodings from new end2end tests:

c5f970ffb1
c4e37bf010ff
c4e3fbf010ff
c5f970d1ff
c5fd70d1ff
c5fa70d1ff
c5fe70d1ff
c5fb70d1ff
View gccgo_vs_6g.csv
benchmark speedup%
image/color/YCbCrToRGB/0 100
math/cmplx/Conj 100
image/color/YCbCrToRGB/255 100
image/color/RGBToYCbCr/0 100
image/color/RGBToYCbCr/Cb 100
image/color/RGBToYCbCr/Cr 100
image/color/YCbCrToRGB/128 100
image/color/NYCbCrAToRGBA/255 95
image/color/NYCbCrAToRGBA/0 94
View nop.csv
opcode encoding mode32 mode64 cpuid tags rw_actions multisize datasize
NOP 90+rd V V operand32,operand64 Y
NOP 90+rw V V operand16,operand64 Y
NOP F3 90+rd V V operand32 Y
NOP F3 90+rw V V operand16 Y
NOP r/m32 0F 18 /4 V V operand32 r Y 32
NOP r/m32 0F 18 /5 V V operand32 r Y 32
NOP r/m32 0F 18 /6 V V operand32 r Y 32
NOP r/m32 0F 18 /7 V V operand32 r Y 32
NOP r/m32, r32 0F 19 /r V V operand32 r,r Y 32
View dot_emacs.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File name: ` ~/.emacs '
;;; ---------------------
;;;
;;; If you need your own personal ~/.emacs
;;; please make a copy of this file
;;; an placein your changes and/or extension.
;;;
;;; Copyright (c) 1997-2002 SuSE Gmbh Nuernberg, Germany.
;;;
@quasilyte
quasilyte / emacs
Created Jul 27, 2017
dot emacs dot el -- summer 2017
View emacs
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File name: ` ~/.emacs '
;;; ---------------------
;;;
;;; If you need your own personal ~/.emacs
;;; please make a copy of this file
;;; an placein your changes and/or extension.
;;;
;;; Copyright (c) 1997-2002 SuSE Gmbh Nuernberg, Germany.
;;;