Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- platform/dbops/binaries/go/go/src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.go +133 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.s +156 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/s390x/rotate.go +117 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/s390x/rotate_test.go +122 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/s390x/vector.go +1069 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/wasm/a.out.go +341 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/wasm/anames.go +217 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/wasm/wasmobj.go +1331 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/a.out.go +426 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/aenum.go +1610 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/anames.go +1608 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/asm6.go +0 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/asm_test.go +342 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/avx_optabs.go +0 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/evex.go +383 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/list6.go +264 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/obj6.go +1546 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/obj6_test.go +167 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/pcrelative_test.go +105 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/seh.go +165 -0
- platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/ytab.go +44 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/ascii.json +11 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/ascii.test +7 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/bench.json +15 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/bench.test +12 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/benchfail.json +7 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/benchfail.test +4 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/benchshort.json +7 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/benchshort.test +5 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/empty.json +1 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/empty.test +0 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/frame.json +10 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/frame.test +6 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/framebig.json +168 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/framebig.test +138 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/framefuzz.json +69 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/framefuzz.test +56 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue23036.json +13 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue23036.test +9 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue23920.json +15 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue23920.test +7 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue29755.json +39 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue29755.test +27 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/panic.json +20 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/panic.test +17 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/smiley.json +183 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/smiley.test +97 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/timeout.json +8 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/timeout.test +5 -0
- platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/unicode.json +11 -0
platform/dbops/binaries/go/go/src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.go
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2020 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
//go:build riscv64
|
| 6 |
+
// +build riscv64
|
| 7 |
+
|
| 8 |
+
package testbranch
|
| 9 |
+
|
| 10 |
+
import (
|
| 11 |
+
"testing"
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
func testBEQZ(a int64) (r bool)
|
| 15 |
+
func testBGE(a, b int64) (r bool)
|
| 16 |
+
func testBGEU(a, b int64) (r bool)
|
| 17 |
+
func testBGEZ(a int64) (r bool)
|
| 18 |
+
func testBGT(a, b int64) (r bool)
|
| 19 |
+
func testBGTU(a, b int64) (r bool)
|
| 20 |
+
func testBGTZ(a int64) (r bool)
|
| 21 |
+
func testBLE(a, b int64) (r bool)
|
| 22 |
+
func testBLEU(a, b int64) (r bool)
|
| 23 |
+
func testBLEZ(a int64) (r bool)
|
| 24 |
+
func testBLT(a, b int64) (r bool)
|
| 25 |
+
func testBLTU(a, b int64) (r bool)
|
| 26 |
+
func testBLTZ(a int64) (r bool)
|
| 27 |
+
func testBNEZ(a int64) (r bool)
|
| 28 |
+
|
| 29 |
+
func testGoBGE(a, b int64) bool { return a >= b }
|
| 30 |
+
func testGoBGEU(a, b int64) bool { return uint64(a) >= uint64(b) }
|
| 31 |
+
func testGoBGT(a, b int64) bool { return a > b }
|
| 32 |
+
func testGoBGTU(a, b int64) bool { return uint64(a) > uint64(b) }
|
| 33 |
+
func testGoBLE(a, b int64) bool { return a <= b }
|
| 34 |
+
func testGoBLEU(a, b int64) bool { return uint64(a) <= uint64(b) }
|
| 35 |
+
func testGoBLT(a, b int64) bool { return a < b }
|
| 36 |
+
func testGoBLTU(a, b int64) bool { return uint64(a) < uint64(b) }
|
| 37 |
+
|
| 38 |
+
func TestBranchCondition(t *testing.T) {
|
| 39 |
+
tests := []struct {
|
| 40 |
+
ins string
|
| 41 |
+
a int64
|
| 42 |
+
b int64
|
| 43 |
+
fn func(a, b int64) bool
|
| 44 |
+
goFn func(a, b int64) bool
|
| 45 |
+
want bool
|
| 46 |
+
}{
|
| 47 |
+
{"BGE", 0, 1, testBGE, testGoBGE, false},
|
| 48 |
+
{"BGE", 0, 0, testBGE, testGoBGE, true},
|
| 49 |
+
{"BGE", 0, -1, testBGE, testGoBGE, true},
|
| 50 |
+
{"BGE", -1, 0, testBGE, testGoBGE, false},
|
| 51 |
+
{"BGE", 1, 0, testBGE, testGoBGE, true},
|
| 52 |
+
{"BGEU", 0, 1, testBGEU, testGoBGEU, false},
|
| 53 |
+
{"BGEU", 0, 0, testBGEU, testGoBGEU, true},
|
| 54 |
+
{"BGEU", 0, -1, testBGEU, testGoBGEU, false},
|
| 55 |
+
{"BGEU", -1, 0, testBGEU, testGoBGEU, true},
|
| 56 |
+
{"BGEU", 1, 0, testBGEU, testGoBGEU, true},
|
| 57 |
+
{"BGT", 0, 1, testBGT, testGoBGT, false},
|
| 58 |
+
{"BGT", 0, 0, testBGT, testGoBGT, false},
|
| 59 |
+
{"BGT", 0, -1, testBGT, testGoBGT, true},
|
| 60 |
+
{"BGT", -1, 0, testBGT, testGoBGT, false},
|
| 61 |
+
{"BGT", 1, 0, testBGT, testGoBGT, true},
|
| 62 |
+
{"BGTU", 0, 1, testBGTU, testGoBGTU, false},
|
| 63 |
+
{"BGTU", 0, 0, testBGTU, testGoBGTU, false},
|
| 64 |
+
{"BGTU", 0, -1, testBGTU, testGoBGTU, false},
|
| 65 |
+
{"BGTU", -1, 0, testBGTU, testGoBGTU, true},
|
| 66 |
+
{"BGTU", 1, 0, testBGTU, testGoBGTU, true},
|
| 67 |
+
{"BLE", 0, 1, testBLE, testGoBLE, true},
|
| 68 |
+
{"BLE", 0, 0, testBLE, testGoBLE, true},
|
| 69 |
+
{"BLE", 0, -1, testBLE, testGoBLE, false},
|
| 70 |
+
{"BLE", -1, 0, testBLE, testGoBLE, true},
|
| 71 |
+
{"BLE", 1, 0, testBLE, testGoBLE, false},
|
| 72 |
+
{"BLEU", 0, 1, testBLEU, testGoBLEU, true},
|
| 73 |
+
{"BLEU", 0, 0, testBLEU, testGoBLEU, true},
|
| 74 |
+
{"BLEU", 0, -1, testBLEU, testGoBLEU, true},
|
| 75 |
+
{"BLEU", -1, 0, testBLEU, testGoBLEU, false},
|
| 76 |
+
{"BLEU", 1, 0, testBLEU, testGoBLEU, false},
|
| 77 |
+
{"BLT", 0, 1, testBLT, testGoBLT, true},
|
| 78 |
+
{"BLT", 0, 0, testBLT, testGoBLT, false},
|
| 79 |
+
{"BLT", 0, -1, testBLT, testGoBLT, false},
|
| 80 |
+
{"BLT", -1, 0, testBLT, testGoBLT, true},
|
| 81 |
+
{"BLT", 1, 0, testBLT, testGoBLT, false},
|
| 82 |
+
{"BLTU", 0, 1, testBLTU, testGoBLTU, true},
|
| 83 |
+
{"BLTU", 0, 0, testBLTU, testGoBLTU, false},
|
| 84 |
+
{"BLTU", 0, -1, testBLTU, testGoBLTU, true},
|
| 85 |
+
{"BLTU", -1, 0, testBLTU, testGoBLTU, false},
|
| 86 |
+
{"BLTU", 1, 0, testBLTU, testGoBLTU, false},
|
| 87 |
+
}
|
| 88 |
+
for _, test := range tests {
|
| 89 |
+
t.Run(test.ins, func(t *testing.T) {
|
| 90 |
+
if got := test.fn(test.a, test.b); got != test.want {
|
| 91 |
+
t.Errorf("Assembly %v %v, %v = %v, want %v", test.ins, test.a, test.b, got, test.want)
|
| 92 |
+
}
|
| 93 |
+
if got := test.goFn(test.a, test.b); got != test.want {
|
| 94 |
+
t.Errorf("Go %v %v, %v = %v, want %v", test.ins, test.a, test.b, got, test.want)
|
| 95 |
+
}
|
| 96 |
+
})
|
| 97 |
+
}
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
func TestBranchZero(t *testing.T) {
|
| 101 |
+
tests := []struct {
|
| 102 |
+
ins string
|
| 103 |
+
a int64
|
| 104 |
+
fn func(a int64) bool
|
| 105 |
+
want bool
|
| 106 |
+
}{
|
| 107 |
+
{"BEQZ", -1, testBEQZ, false},
|
| 108 |
+
{"BEQZ", 0, testBEQZ, true},
|
| 109 |
+
{"BEQZ", 1, testBEQZ, false},
|
| 110 |
+
{"BGEZ", -1, testBGEZ, false},
|
| 111 |
+
{"BGEZ", 0, testBGEZ, true},
|
| 112 |
+
{"BGEZ", 1, testBGEZ, true},
|
| 113 |
+
{"BGTZ", -1, testBGTZ, false},
|
| 114 |
+
{"BGTZ", 0, testBGTZ, false},
|
| 115 |
+
{"BGTZ", 1, testBGTZ, true},
|
| 116 |
+
{"BLEZ", -1, testBLEZ, true},
|
| 117 |
+
{"BLEZ", 0, testBLEZ, true},
|
| 118 |
+
{"BLEZ", 1, testBLEZ, false},
|
| 119 |
+
{"BLTZ", -1, testBLTZ, true},
|
| 120 |
+
{"BLTZ", 0, testBLTZ, false},
|
| 121 |
+
{"BLTZ", 1, testBLTZ, false},
|
| 122 |
+
{"BNEZ", -1, testBNEZ, true},
|
| 123 |
+
{"BNEZ", 0, testBNEZ, false},
|
| 124 |
+
{"BNEZ", 1, testBNEZ, true},
|
| 125 |
+
}
|
| 126 |
+
for _, test := range tests {
|
| 127 |
+
t.Run(test.ins, func(t *testing.T) {
|
| 128 |
+
if got := test.fn(test.a); got != test.want {
|
| 129 |
+
t.Errorf("%v %v = %v, want %v", test.ins, test.a, got, test.want)
|
| 130 |
+
}
|
| 131 |
+
})
|
| 132 |
+
}
|
| 133 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.s
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2020 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
//go:build riscv64
|
| 6 |
+
// +build riscv64
|
| 7 |
+
|
| 8 |
+
#include "textflag.h"
|
| 9 |
+
|
| 10 |
+
// func testBEQZ(a int64) (r bool)
|
| 11 |
+
TEXT ·testBEQZ(SB),NOSPLIT,$0-9
|
| 12 |
+
MOV a+0(FP), X5
|
| 13 |
+
MOV $1, X6
|
| 14 |
+
BEQZ X5, b
|
| 15 |
+
MOV $0, X6
|
| 16 |
+
b:
|
| 17 |
+
MOV X6, r+8(FP)
|
| 18 |
+
RET
|
| 19 |
+
|
| 20 |
+
// func testBGE(a, b int64) (r bool)
|
| 21 |
+
TEXT ·testBGE(SB),NOSPLIT,$0-17
|
| 22 |
+
MOV a+0(FP), X5
|
| 23 |
+
MOV b+8(FP), X6
|
| 24 |
+
MOV $1, X7
|
| 25 |
+
BGE X5, X6, b
|
| 26 |
+
MOV $0, X7
|
| 27 |
+
b:
|
| 28 |
+
MOV X7, r+16(FP)
|
| 29 |
+
RET
|
| 30 |
+
|
| 31 |
+
// func testBGEU(a, b int64) (r bool)
|
| 32 |
+
TEXT ·testBGEU(SB),NOSPLIT,$0-17
|
| 33 |
+
MOV a+0(FP), X5
|
| 34 |
+
MOV b+8(FP), X6
|
| 35 |
+
MOV $1, X7
|
| 36 |
+
BGEU X5, X6, b
|
| 37 |
+
MOV $0, X7
|
| 38 |
+
b:
|
| 39 |
+
MOV X7, r+16(FP)
|
| 40 |
+
RET
|
| 41 |
+
|
| 42 |
+
// func testBGEZ(a int64) (r bool)
|
| 43 |
+
TEXT ·testBGEZ(SB),NOSPLIT,$0-9
|
| 44 |
+
MOV a+0(FP), X5
|
| 45 |
+
MOV $1, X6
|
| 46 |
+
BGEZ X5, b
|
| 47 |
+
MOV $0, X6
|
| 48 |
+
b:
|
| 49 |
+
MOV X6, r+8(FP)
|
| 50 |
+
RET
|
| 51 |
+
|
| 52 |
+
// func testBGT(a, b int64) (r bool)
|
| 53 |
+
TEXT ·testBGT(SB),NOSPLIT,$0-17
|
| 54 |
+
MOV a+0(FP), X5
|
| 55 |
+
MOV b+8(FP), X6
|
| 56 |
+
MOV $1, X7
|
| 57 |
+
BGT X5, X6, b
|
| 58 |
+
MOV $0, X7
|
| 59 |
+
b:
|
| 60 |
+
MOV X7, r+16(FP)
|
| 61 |
+
RET
|
| 62 |
+
|
| 63 |
+
// func testBGTU(a, b int64) (r bool)
|
| 64 |
+
TEXT ·testBGTU(SB),NOSPLIT,$0-17
|
| 65 |
+
MOV a+0(FP), X5
|
| 66 |
+
MOV b+8(FP), X6
|
| 67 |
+
MOV $1, X7
|
| 68 |
+
BGTU X5, X6, b
|
| 69 |
+
MOV $0, X7
|
| 70 |
+
b:
|
| 71 |
+
MOV X7, r+16(FP)
|
| 72 |
+
RET
|
| 73 |
+
|
| 74 |
+
// func testBGTZ(a int64) (r bool)
|
| 75 |
+
TEXT ·testBGTZ(SB),NOSPLIT,$0-9
|
| 76 |
+
MOV a+0(FP), X5
|
| 77 |
+
MOV $1, X6
|
| 78 |
+
BGTZ X5, b
|
| 79 |
+
MOV $0, X6
|
| 80 |
+
b:
|
| 81 |
+
MOV X6, r+8(FP)
|
| 82 |
+
RET
|
| 83 |
+
|
| 84 |
+
// func testBLE(a, b int64) (r bool)
|
| 85 |
+
TEXT ·testBLE(SB),NOSPLIT,$0-17
|
| 86 |
+
MOV a+0(FP), X5
|
| 87 |
+
MOV b+8(FP), X6
|
| 88 |
+
MOV $1, X7
|
| 89 |
+
BLE X5, X6, b
|
| 90 |
+
MOV $0, X7
|
| 91 |
+
b:
|
| 92 |
+
MOV X7, r+16(FP)
|
| 93 |
+
RET
|
| 94 |
+
|
| 95 |
+
// func testBLEU(a, b int64) (r bool)
|
| 96 |
+
TEXT ·testBLEU(SB),NOSPLIT,$0-17
|
| 97 |
+
MOV a+0(FP), X5
|
| 98 |
+
MOV b+8(FP), X6
|
| 99 |
+
MOV $1, X7
|
| 100 |
+
BLEU X5, X6, b
|
| 101 |
+
MOV $0, X7
|
| 102 |
+
b:
|
| 103 |
+
MOV X7, r+16(FP)
|
| 104 |
+
RET
|
| 105 |
+
|
| 106 |
+
// func testBLEZ(a int64) (r bool)
|
| 107 |
+
TEXT ·testBLEZ(SB),NOSPLIT,$0-9
|
| 108 |
+
MOV a+0(FP), X5
|
| 109 |
+
MOV $1, X6
|
| 110 |
+
BLEZ X5, b
|
| 111 |
+
MOV $0, X6
|
| 112 |
+
b:
|
| 113 |
+
MOV X6, r+8(FP)
|
| 114 |
+
RET
|
| 115 |
+
|
| 116 |
+
// func testBLT(a, b int64) (r bool)
|
| 117 |
+
TEXT ·testBLT(SB),NOSPLIT,$0-17
|
| 118 |
+
MOV a+0(FP), X5
|
| 119 |
+
MOV b+8(FP), X6
|
| 120 |
+
MOV $1, X7
|
| 121 |
+
BLT X5, X6, b
|
| 122 |
+
MOV $0, X7
|
| 123 |
+
b:
|
| 124 |
+
MOV X7, r+16(FP)
|
| 125 |
+
RET
|
| 126 |
+
|
| 127 |
+
// func testBLTU(a, b int64) (r bool)
|
| 128 |
+
TEXT ·testBLTU(SB),NOSPLIT,$0-17
|
| 129 |
+
MOV a+0(FP), X5
|
| 130 |
+
MOV b+8(FP), X6
|
| 131 |
+
MOV $1, X7
|
| 132 |
+
BLTU X5, X6, b
|
| 133 |
+
MOV $0, X7
|
| 134 |
+
b:
|
| 135 |
+
MOV X7, r+16(FP)
|
| 136 |
+
RET
|
| 137 |
+
|
| 138 |
+
// func testBLTZ(a int64) (r bool)
|
| 139 |
+
TEXT ·testBLTZ(SB),NOSPLIT,$0-9
|
| 140 |
+
MOV a+0(FP), X5
|
| 141 |
+
MOV $1, X6
|
| 142 |
+
BLTZ X5, b
|
| 143 |
+
MOV $0, X6
|
| 144 |
+
b:
|
| 145 |
+
MOV X6, r+8(FP)
|
| 146 |
+
RET
|
| 147 |
+
|
| 148 |
+
// func testBNEZ(a int64) (r bool)
|
| 149 |
+
TEXT ·testBNEZ(SB),NOSPLIT,$0-9
|
| 150 |
+
MOV a+0(FP), X5
|
| 151 |
+
MOV $1, X6
|
| 152 |
+
BNEZ X5, b
|
| 153 |
+
MOV $0, X6
|
| 154 |
+
b:
|
| 155 |
+
MOV X6, r+8(FP)
|
| 156 |
+
RET
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/s390x/rotate.go
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2019 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
package s390x
|
| 6 |
+
|
| 7 |
+
import (
|
| 8 |
+
"math/bits"
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
// RotateParams represents the immediates required for a "rotate
|
| 12 |
+
// then ... selected bits instruction".
|
| 13 |
+
//
|
| 14 |
+
// The Start and End values are the indexes that represent
|
| 15 |
+
// the masked region. They are inclusive and are in big-
|
| 16 |
+
// endian order (bit 0 is the MSB, bit 63 is the LSB). They
|
| 17 |
+
// may wrap around.
|
| 18 |
+
//
|
| 19 |
+
// Some examples:
|
| 20 |
+
//
|
| 21 |
+
// Masked region | Start | End
|
| 22 |
+
// --------------------------+-------+----
|
| 23 |
+
// 0x00_00_00_00_00_00_00_0f | 60 | 63
|
| 24 |
+
// 0xf0_00_00_00_00_00_00_00 | 0 | 3
|
| 25 |
+
// 0xf0_00_00_00_00_00_00_0f | 60 | 3
|
| 26 |
+
//
|
| 27 |
+
// The Amount value represents the amount to rotate the
|
| 28 |
+
// input left by. Note that this rotation is performed
|
| 29 |
+
// before the masked region is used.
|
| 30 |
+
type RotateParams struct {
|
| 31 |
+
Start uint8 // big-endian start bit index [0..63]
|
| 32 |
+
End uint8 // big-endian end bit index [0..63]
|
| 33 |
+
Amount uint8 // amount to rotate left
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
// NewRotateParams creates a set of parameters representing a
|
| 37 |
+
// rotation left by the amount provided and a selection of the bits
|
| 38 |
+
// between the provided start and end indexes (inclusive).
|
| 39 |
+
//
|
| 40 |
+
// The start and end indexes and the rotation amount must all
|
| 41 |
+
// be in the range 0-63 inclusive or this function will panic.
|
| 42 |
+
func NewRotateParams(start, end, amount uint8) RotateParams {
|
| 43 |
+
if start&^63 != 0 {
|
| 44 |
+
panic("start out of bounds")
|
| 45 |
+
}
|
| 46 |
+
if end&^63 != 0 {
|
| 47 |
+
panic("end out of bounds")
|
| 48 |
+
}
|
| 49 |
+
if amount&^63 != 0 {
|
| 50 |
+
panic("amount out of bounds")
|
| 51 |
+
}
|
| 52 |
+
return RotateParams{
|
| 53 |
+
Start: start,
|
| 54 |
+
End: end,
|
| 55 |
+
Amount: amount,
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
// RotateLeft generates a new set of parameters with the rotation amount
|
| 60 |
+
// increased by the given value. The selected bits are left unchanged.
|
| 61 |
+
func (r RotateParams) RotateLeft(amount uint8) RotateParams {
|
| 62 |
+
r.Amount += amount
|
| 63 |
+
r.Amount &= 63
|
| 64 |
+
return r
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
// OutMask provides a mask representing the selected bits.
|
| 68 |
+
func (r RotateParams) OutMask() uint64 {
|
| 69 |
+
// Note: z must be unsigned for bootstrap compiler
|
| 70 |
+
z := uint8(63-r.End+r.Start) & 63 // number of zero bits in mask
|
| 71 |
+
return bits.RotateLeft64(^uint64(0)<<z, -int(r.Start))
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
// InMask provides a mask representing the selected bits relative
|
| 75 |
+
// to the source value (i.e. pre-rotation).
|
| 76 |
+
func (r RotateParams) InMask() uint64 {
|
| 77 |
+
return bits.RotateLeft64(r.OutMask(), -int(r.Amount))
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
// OutMerge tries to generate a new set of parameters representing
|
| 81 |
+
// the intersection between the selected bits and the provided mask.
|
| 82 |
+
// If the intersection is unrepresentable (0 or not contiguous) nil
|
| 83 |
+
// will be returned.
|
| 84 |
+
func (r RotateParams) OutMerge(mask uint64) *RotateParams {
|
| 85 |
+
mask &= r.OutMask()
|
| 86 |
+
if mask == 0 {
|
| 87 |
+
return nil
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
// normalize the mask so that the set bits are left aligned
|
| 91 |
+
o := bits.LeadingZeros64(^mask)
|
| 92 |
+
mask = bits.RotateLeft64(mask, o)
|
| 93 |
+
z := bits.LeadingZeros64(mask)
|
| 94 |
+
mask = bits.RotateLeft64(mask, z)
|
| 95 |
+
|
| 96 |
+
// check that the normalized mask is contiguous
|
| 97 |
+
l := bits.LeadingZeros64(^mask)
|
| 98 |
+
if l+bits.TrailingZeros64(mask) != 64 {
|
| 99 |
+
return nil
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
// update start and end positions (rotation amount remains the same)
|
| 103 |
+
r.Start = uint8(o+z) & 63
|
| 104 |
+
r.End = (r.Start + uint8(l) - 1) & 63
|
| 105 |
+
return &r
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
// InMerge tries to generate a new set of parameters representing
|
| 109 |
+
// the intersection between the selected bits and the provided mask
|
| 110 |
+
// as applied to the source value (i.e. pre-rotation).
|
| 111 |
+
// If the intersection is unrepresentable (0 or not contiguous) nil
|
| 112 |
+
// will be returned.
|
| 113 |
+
func (r RotateParams) InMerge(mask uint64) *RotateParams {
|
| 114 |
+
return r.OutMerge(bits.RotateLeft64(mask, int(r.Amount)))
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
func (RotateParams) CanBeAnSSAAux() {}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/s390x/rotate_test.go
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2020 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
package s390x
|
| 6 |
+
|
| 7 |
+
import (
|
| 8 |
+
"testing"
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
func TestRotateParamsMask(t *testing.T) {
|
| 12 |
+
tests := []struct {
|
| 13 |
+
start, end, amount uint8
|
| 14 |
+
inMask, outMask uint64
|
| 15 |
+
}{
|
| 16 |
+
// start before end, no rotation
|
| 17 |
+
{start: 0, end: 63, amount: 0, inMask: ^uint64(0), outMask: ^uint64(0)},
|
| 18 |
+
{start: 1, end: 63, amount: 0, inMask: ^uint64(0) >> 1, outMask: ^uint64(0) >> 1},
|
| 19 |
+
{start: 0, end: 62, amount: 0, inMask: ^uint64(1), outMask: ^uint64(1)},
|
| 20 |
+
{start: 1, end: 62, amount: 0, inMask: ^uint64(3) >> 1, outMask: ^uint64(3) >> 1},
|
| 21 |
+
|
| 22 |
+
// end before start, no rotation
|
| 23 |
+
{start: 63, end: 0, amount: 0, inMask: 1<<63 | 1, outMask: 1<<63 | 1},
|
| 24 |
+
{start: 62, end: 0, amount: 0, inMask: 1<<63 | 3, outMask: 1<<63 | 3},
|
| 25 |
+
{start: 63, end: 1, amount: 0, inMask: 3<<62 | 1, outMask: 3<<62 | 1},
|
| 26 |
+
{start: 62, end: 1, amount: 0, inMask: 3<<62 | 3, outMask: 3<<62 | 3},
|
| 27 |
+
|
| 28 |
+
// rotation
|
| 29 |
+
{start: 32, end: 63, amount: 32, inMask: 0xffffffff00000000, outMask: 0x00000000ffffffff},
|
| 30 |
+
{start: 48, end: 15, amount: 16, inMask: 0xffffffff00000000, outMask: 0xffff00000000ffff},
|
| 31 |
+
{start: 0, end: 7, amount: -8 & 63, inMask: 0xff, outMask: 0xff << 56},
|
| 32 |
+
}
|
| 33 |
+
for i, test := range tests {
|
| 34 |
+
r := NewRotateParams(test.start, test.end, test.amount)
|
| 35 |
+
if m := r.OutMask(); m != test.outMask {
|
| 36 |
+
t.Errorf("out mask %v: want %#x, got %#x", i, test.outMask, m)
|
| 37 |
+
}
|
| 38 |
+
if m := r.InMask(); m != test.inMask {
|
| 39 |
+
t.Errorf("in mask %v: want %#x, got %#x", i, test.inMask, m)
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
func TestRotateParamsMerge(t *testing.T) {
|
| 45 |
+
tests := []struct {
|
| 46 |
+
// inputs
|
| 47 |
+
src RotateParams
|
| 48 |
+
mask uint64
|
| 49 |
+
|
| 50 |
+
// results
|
| 51 |
+
in *RotateParams
|
| 52 |
+
out *RotateParams
|
| 53 |
+
}{
|
| 54 |
+
{
|
| 55 |
+
src: RotateParams{Start: 48, End: 15, Amount: 16},
|
| 56 |
+
mask: 0xffffffffffffffff,
|
| 57 |
+
in: &RotateParams{Start: 48, End: 15, Amount: 16},
|
| 58 |
+
out: &RotateParams{Start: 48, End: 15, Amount: 16},
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
src: RotateParams{Start: 16, End: 47, Amount: 0},
|
| 62 |
+
mask: 0x00000000ffffffff,
|
| 63 |
+
in: &RotateParams{Start: 32, End: 47, Amount: 0},
|
| 64 |
+
out: &RotateParams{Start: 32, End: 47, Amount: 0},
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
src: RotateParams{Start: 16, End: 47, Amount: 0},
|
| 68 |
+
mask: 0xffff00000000ffff,
|
| 69 |
+
in: nil,
|
| 70 |
+
out: nil,
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
src: RotateParams{Start: 0, End: 63, Amount: 0},
|
| 74 |
+
mask: 0xf7f0000000000000,
|
| 75 |
+
in: nil,
|
| 76 |
+
out: nil,
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
src: RotateParams{Start: 0, End: 63, Amount: 1},
|
| 80 |
+
mask: 0x000000000000ff00,
|
| 81 |
+
in: &RotateParams{Start: 47, End: 54, Amount: 1},
|
| 82 |
+
out: &RotateParams{Start: 48, End: 55, Amount: 1},
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
src: RotateParams{Start: 32, End: 63, Amount: 32},
|
| 86 |
+
mask: 0xffff00000000ffff,
|
| 87 |
+
in: &RotateParams{Start: 32, End: 47, Amount: 32},
|
| 88 |
+
out: &RotateParams{Start: 48, End: 63, Amount: 32},
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
src: RotateParams{Start: 0, End: 31, Amount: 32},
|
| 92 |
+
mask: 0x8000000000000000,
|
| 93 |
+
in: nil,
|
| 94 |
+
out: &RotateParams{Start: 0, End: 0, Amount: 32},
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
src: RotateParams{Start: 0, End: 31, Amount: 32},
|
| 98 |
+
mask: 0x0000000080000000,
|
| 99 |
+
in: &RotateParams{Start: 0, End: 0, Amount: 32},
|
| 100 |
+
out: nil,
|
| 101 |
+
},
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
eq := func(x, y *RotateParams) bool {
|
| 105 |
+
if x == nil && y == nil {
|
| 106 |
+
return true
|
| 107 |
+
}
|
| 108 |
+
if x == nil || y == nil {
|
| 109 |
+
return false
|
| 110 |
+
}
|
| 111 |
+
return *x == *y
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
for _, test := range tests {
|
| 115 |
+
if r := test.src.InMerge(test.mask); !eq(r, test.in) {
|
| 116 |
+
t.Errorf("%v merged with %#x (input): want %v, got %v", test.src, test.mask, test.in, r)
|
| 117 |
+
}
|
| 118 |
+
if r := test.src.OutMerge(test.mask); !eq(r, test.out) {
|
| 119 |
+
t.Errorf("%v mer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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2016 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
package s390x
|
| 6 |
+
|
| 7 |
+
import (
|
| 8 |
+
"cmd/internal/obj"
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
// This file contains utility functions for use when
|
| 12 |
+
// assembling vector instructions.
|
| 13 |
+
|
| 14 |
+
// vop returns the opcode, element size and condition
|
| 15 |
+
// setting for the given (possibly extended) mnemonic.
|
| 16 |
+
func vop(as obj.As) (opcode, es, cs uint32) {
|
| 17 |
+
switch as {
|
| 18 |
+
default:
|
| 19 |
+
return 0, 0, 0
|
| 20 |
+
case AVA:
|
| 21 |
+
return op_VA, 0, 0
|
| 22 |
+
case AVAB:
|
| 23 |
+
return op_VA, 0, 0
|
| 24 |
+
case AVAH:
|
| 25 |
+
return op_VA, 1, 0
|
| 26 |
+
case AVAF:
|
| 27 |
+
return op_VA, 2, 0
|
| 28 |
+
case AVAG:
|
| 29 |
+
return op_VA, 3, 0
|
| 30 |
+
case AVAQ:
|
| 31 |
+
return op_VA, 4, 0
|
| 32 |
+
case AVACC:
|
| 33 |
+
return op_VACC, 0, 0
|
| 34 |
+
case AVACCB:
|
| 35 |
+
return op_VACC, 0, 0
|
| 36 |
+
case AVACCH:
|
| 37 |
+
return op_VACC, 1, 0
|
| 38 |
+
case AVACCF:
|
| 39 |
+
return op_VACC, 2, 0
|
| 40 |
+
case AVACCG:
|
| 41 |
+
return op_VACC, 3, 0
|
| 42 |
+
case AVACCQ:
|
| 43 |
+
return op_VACC, 4, 0
|
| 44 |
+
case AVAC:
|
| 45 |
+
return op_VAC, 0, 0
|
| 46 |
+
case AVACQ:
|
| 47 |
+
return op_VAC, 4, 0
|
| 48 |
+
case AVMSLG, AVMSLEG, AVMSLOG, AVMSLEOG:
|
| 49 |
+
return op_VMSL, 3, 0
|
| 50 |
+
case AVACCC:
|
| 51 |
+
return op_VACCC, 0, 0
|
| 52 |
+
case AVACCCQ:
|
| 53 |
+
return op_VACCC, 4, 0
|
| 54 |
+
case AVN:
|
| 55 |
+
return op_VN, 0, 0
|
| 56 |
+
case AVNC:
|
| 57 |
+
return op_VNC, 0, 0
|
| 58 |
+
case AVAVG:
|
| 59 |
+
return op_VAVG, 0, 0
|
| 60 |
+
case AVAVGB:
|
| 61 |
+
return op_VAVG, 0, 0
|
| 62 |
+
case AVAVGH:
|
| 63 |
+
return op_VAVG, 1, 0
|
| 64 |
+
case AVAVGF:
|
| 65 |
+
return op_VAVG, 2, 0
|
| 66 |
+
case AVAVGG:
|
| 67 |
+
return op_VAVG, 3, 0
|
| 68 |
+
case AVAVGL:
|
| 69 |
+
return op_VAVGL, 0, 0
|
| 70 |
+
case AVAVGLB:
|
| 71 |
+
return op_VAVGL, 0, 0
|
| 72 |
+
case AVAVGLH:
|
| 73 |
+
return op_VAVGL, 1, 0
|
| 74 |
+
case AVAVGLF:
|
| 75 |
+
return op_VAVGL, 2, 0
|
| 76 |
+
case AVAVGLG:
|
| 77 |
+
return op_VAVGL, 3, 0
|
| 78 |
+
case AVCKSM:
|
| 79 |
+
return op_VCKSM, 0, 0
|
| 80 |
+
case AVCEQ:
|
| 81 |
+
return op_VCEQ, 0, 0
|
| 82 |
+
case AVCEQB:
|
| 83 |
+
return op_VCEQ, 0, 0
|
| 84 |
+
case AVCEQH:
|
| 85 |
+
return op_VCEQ, 1, 0
|
| 86 |
+
case AVCEQF:
|
| 87 |
+
return op_VCEQ, 2, 0
|
| 88 |
+
case AVCEQG:
|
| 89 |
+
return op_VCEQ, 3, 0
|
| 90 |
+
case AVCEQBS:
|
| 91 |
+
return op_VCEQ, 0, 1
|
| 92 |
+
case AVCEQHS:
|
| 93 |
+
return op_VCEQ, 1, 1
|
| 94 |
+
case AVCEQFS:
|
| 95 |
+
return op_VCEQ, 2, 1
|
| 96 |
+
case AVCEQGS:
|
| 97 |
+
return op_VCEQ, 3, 1
|
| 98 |
+
case AVCH:
|
| 99 |
+
return op_VCH, 0, 0
|
| 100 |
+
case AVCHB:
|
| 101 |
+
return op_VCH, 0, 0
|
| 102 |
+
case AVCHH:
|
| 103 |
+
return op_VCH, 1, 0
|
| 104 |
+
case AVCHF:
|
| 105 |
+
return op_VCH, 2, 0
|
| 106 |
+
case AVCHG:
|
| 107 |
+
return op_VCH, 3, 0
|
| 108 |
+
case AVCHBS:
|
| 109 |
+
return op_VCH, 0, 1
|
| 110 |
+
case AVCHHS:
|
| 111 |
+
return op_VCH, 1, 1
|
| 112 |
+
case AVCHFS:
|
| 113 |
+
return op_VCH, 2, 1
|
| 114 |
+
case AVCHGS:
|
| 115 |
+
return op_VCH, 3, 1
|
| 116 |
+
case AVCHL:
|
| 117 |
+
return op_VCHL, 0, 0
|
| 118 |
+
case AVCHLB:
|
| 119 |
+
return op_VCHL, 0, 0
|
| 120 |
+
case AVCHLH:
|
| 121 |
+
return op_VCHL, 1, 0
|
| 122 |
+
case AVCHLF:
|
| 123 |
+
return op_VCHL, 2, 0
|
| 124 |
+
case AVCHLG:
|
| 125 |
+
return op_VCHL, 3, 0
|
| 126 |
+
case AVCHLBS:
|
| 127 |
+
return op_VCHL, 0, 1
|
| 128 |
+
case AVCHLHS:
|
| 129 |
+
return op_VCHL, 1, 1
|
| 130 |
+
case AVCHLFS:
|
| 131 |
+
return op_VCHL, 2, 1
|
| 132 |
+
case AVCHLGS:
|
| 133 |
+
return op_VCHL, 3, 1
|
| 134 |
+
case AVCLZ:
|
| 135 |
+
return op_VCLZ, 0, 0
|
| 136 |
+
case AVCLZB:
|
| 137 |
+
return op_VCLZ, 0, 0
|
| 138 |
+
case AVCLZH:
|
| 139 |
+
return op_VCLZ, 1, 0
|
| 140 |
+
case AVCLZF:
|
| 141 |
+
return op_VCLZ, 2, 0
|
| 142 |
+
case AVCLZG:
|
| 143 |
+
return op_VCLZ, 3, 0
|
| 144 |
+
case AVCTZ:
|
| 145 |
+
return op_VCTZ, 0, 0
|
| 146 |
+
case AVCTZB:
|
| 147 |
+
return op_VCTZ, 0, 0
|
| 148 |
+
case AVCTZH:
|
| 149 |
+
return op_VCTZ, 1, 0
|
| 150 |
+
case AVCTZF:
|
| 151 |
+
return op_VCTZ, 2, 0
|
| 152 |
+
case AVCTZG:
|
| 153 |
+
return op_VCTZ, 3, 0
|
| 154 |
+
case AVEC:
|
| 155 |
+
return op_VEC, 0, 0
|
| 156 |
+
case AVECB:
|
| 157 |
+
return op_VEC, 0, 0
|
| 158 |
+
case AVECH:
|
| 159 |
+
return op_VEC, 1, 0
|
| 160 |
+
case AVECF:
|
| 161 |
+
return op_VEC, 2, 0
|
| 162 |
+
case AVECG:
|
| 163 |
+
return op_VEC, 3, 0
|
| 164 |
+
case AVECL:
|
| 165 |
+
return op_VECL, 0, 0
|
| 166 |
+
case AVECLB:
|
| 167 |
+
return op_VECL, 0, 0
|
| 168 |
+
case AVECLH:
|
| 169 |
+
return op_VECL, 1, 0
|
| 170 |
+
case AVECLF:
|
| 171 |
+
return op_VECL, 2, 0
|
| 172 |
+
case AVECLG:
|
| 173 |
+
return op_VECL, 3, 0
|
| 174 |
+
case AVERIM:
|
| 175 |
+
return op_VERIM, 0, 0
|
| 176 |
+
case AVERIMB:
|
| 177 |
+
return op_VERIM, 0, 0
|
| 178 |
+
case AVERIMH:
|
| 179 |
+
return op_VERIM, 1, 0
|
| 180 |
+
case AVERIMF:
|
| 181 |
+
return op_VERIM, 2, 0
|
| 182 |
+
case AVERIMG:
|
| 183 |
+
return op_VERIM, 3, 0
|
| 184 |
+
case AVERLL:
|
| 185 |
+
return op_VERLL, 0, 0
|
| 186 |
+
case AVERLLB:
|
| 187 |
+
return op_VERLL, 0, 0
|
| 188 |
+
case AVERLLH:
|
| 189 |
+
return op_VERLL, 1, 0
|
| 190 |
+
case AVERLLF:
|
| 191 |
+
return op_VERLL, 2, 0
|
| 192 |
+
case AVERLLG:
|
| 193 |
+
return op_VERLL, 3, 0
|
| 194 |
+
case AVERLLV:
|
| 195 |
+
return op_VERLLV, 0, 0
|
| 196 |
+
case AVERLLVB:
|
| 197 |
+
return op_VERLLV, 0, 0
|
| 198 |
+
case AVERLLVH:
|
| 199 |
+
return op_VERLLV, 1, 0
|
| 200 |
+
case AVERLLVF:
|
| 201 |
+
return op_VERLLV, 2, 0
|
| 202 |
+
case AVERLLVG:
|
| 203 |
+
return op_VERLLV, 3, 0
|
| 204 |
+
case AVESLV:
|
| 205 |
+
return op_VESLV, 0, 0
|
| 206 |
+
case AVESLVB:
|
| 207 |
+
return op_VESLV, 0, 0
|
| 208 |
+
case AVESLVH:
|
| 209 |
+
return op_VESLV, 1, 0
|
| 210 |
+
case AVESLVF:
|
| 211 |
+
return op_VESLV, 2, 0
|
| 212 |
+
case AVESLVG:
|
| 213 |
+
return op_VESLV, 3, 0
|
| 214 |
+
case AVESL:
|
| 215 |
+
return op_VESL, 0, 0
|
| 216 |
+
case AVESLB:
|
| 217 |
+
return op_VESL, 0, 0
|
| 218 |
+
case AVESLH:
|
| 219 |
+
return op_VESL, 1, 0
|
| 220 |
+
case AVESLF:
|
| 221 |
+
return op_VESL, 2, 0
|
| 222 |
+
case AVESLG:
|
| 223 |
+
return op_VESL, 3, 0
|
| 224 |
+
case AVESRA:
|
| 225 |
+
return op_VESRA, 0, 0
|
| 226 |
+
case AVESRAB:
|
| 227 |
+
return op_VESRA, 0, 0
|
| 228 |
+
case AVESRAH:
|
| 229 |
+
return op_VESRA, 1, 0
|
| 230 |
+
case AVESRAF:
|
| 231 |
+
return op_VESRA, 2, 0
|
| 232 |
+
case AVESRAG:
|
| 233 |
+
return op_VESRA, 3, 0
|
| 234 |
+
case AVESRAV:
|
| 235 |
+
return op_VESRAV, 0, 0
|
| 236 |
+
case AVESRAVB:
|
| 237 |
+
return op_VESRAV, 0, 0
|
| 238 |
+
case AVESRAVH:
|
| 239 |
+
return op_VESRAV, 1, 0
|
| 240 |
+
case AVESRAVF:
|
| 241 |
+
return op_VESRAV, 2, 0
|
| 242 |
+
case AVESRAVG:
|
| 243 |
+
return op_VESRAV, 3, 0
|
| 244 |
+
case AVESRL:
|
| 245 |
+
return op_VESRL, 0, 0
|
| 246 |
+
case AVESRLB:
|
| 247 |
+
return op_VESRL, 0, 0
|
| 248 |
+
case AVESRLH:
|
| 249 |
+
return op_VESRL, 1, 0
|
| 250 |
+
case AVESRLF:
|
| 251 |
+
return op_VESRL, 2, 0
|
| 252 |
+
case AVESRLG:
|
| 253 |
+
return op_VESRL, 3, 0
|
| 254 |
+
case AVESRLV:
|
| 255 |
+
return op_VESRLV, 0, 0
|
| 256 |
+
case AVESRLVB:
|
| 257 |
+
return op_VESRLV, 0, 0
|
| 258 |
+
case AVESRLVH:
|
| 259 |
+
return op_VESRLV, 1, 0
|
| 260 |
+
case AVESRLVF:
|
| 261 |
+
return op_VESRLV, 2, 0
|
| 262 |
+
case AVESRLVG:
|
| 263 |
+
return op_VESRLV, 3, 0
|
| 264 |
+
case AVX:
|
| 265 |
+
return op_VX, 0, 0
|
| 266 |
+
case AVFAE:
|
| 267 |
+
return op_VFAE, 0, 0
|
| 268 |
+
case AVFAEB:
|
| 269 |
+
return op_VFAE, 0, 0
|
| 270 |
+
case AVFAEH:
|
| 271 |
+
return op_VFAE, 1, 0
|
| 272 |
+
case AVFAEF:
|
| 273 |
+
return op_VFAE, 2, 0
|
| 274 |
+
case AVFAEBS:
|
| 275 |
+
return op_VFAE, 0, 1
|
| 276 |
+
case AVFAEHS:
|
| 277 |
+
return op_VFAE, 1, 1
|
| 278 |
+
case AVFAEFS:
|
| 279 |
+
return op_VFAE, 2, 1
|
| 280 |
+
case AVFAEZB:
|
| 281 |
+
return op_VFAE, 0, 2
|
| 282 |
+
case AVFAEZH:
|
| 283 |
+
return op_VFAE, 1, 2
|
| 284 |
+
case AVFAEZF:
|
| 285 |
+
return op_VFAE, 2, 2
|
| 286 |
+
case AVFAEZBS:
|
| 287 |
+
return op_VFAE, 0, 3
|
| 288 |
+
case AVFAEZHS:
|
| 289 |
+
return op_VFAE, 1, 3
|
| 290 |
+
case AVFAEZFS:
|
| 291 |
+
return op_VFAE, 2, 3
|
| 292 |
+
case AVFEE:
|
| 293 |
+
return op_VFEE, 0, 0
|
| 294 |
+
case AVFEEB:
|
| 295 |
+
return op_VFEE, 0, 0
|
| 296 |
+
case AVFEEH:
|
| 297 |
+
return op_VFEE, 1, 0
|
| 298 |
+
case AVFEEF:
|
| 299 |
+
return op_VFEE, 2, 0
|
| 300 |
+
case AVFEEBS:
|
| 301 |
+
return op_VFEE, 0, 1
|
| 302 |
+
case AVFEEHS:
|
| 303 |
+
return op_VFEE, 1, 1
|
| 304 |
+
case AVFEEFS:
|
| 305 |
+
return op_VFEE, 2, 1
|
| 306 |
+
case AVFEEZB:
|
| 307 |
+
return op_VFEE, 0, 2
|
| 308 |
+
case AVFEEZH:
|
| 309 |
+
return op_VFEE, 1, 2
|
| 310 |
+
case AVFEEZF:
|
| 311 |
+
return op_VFEE, 2, 2
|
| 312 |
+
case AVFEEZBS:
|
| 313 |
+
return op_VFEE, 0, 3
|
| 314 |
+
case AVFEEZHS:
|
| 315 |
+
return op_VFEE, 1, 3
|
| 316 |
+
case AVFEEZFS:
|
| 317 |
+
return op_VFEE, 2, 3
|
| 318 |
+
case AVFENE:
|
| 319 |
+
return op_VFENE, 0, 0
|
| 320 |
+
case AVFENEB:
|
| 321 |
+
return op_VFENE, 0, 0
|
| 322 |
+
case AVFENEH:
|
| 323 |
+
return op_VFENE, 1, 0
|
| 324 |
+
case AVFENEF:
|
| 325 |
+
return op_VFENE, 2, 0
|
| 326 |
+
case AVFENEBS:
|
| 327 |
+
return op_VFENE, 0, 1
|
| 328 |
+
case AVFENEHS:
|
| 329 |
+
return op_VFENE, 1, 1
|
| 330 |
+
case AVFENEFS:
|
| 331 |
+
return op_VFENE, 2, 1
|
| 332 |
+
case AVFENEZB:
|
| 333 |
+
return op_VFENE, 0, 2
|
| 334 |
+
case AVFENEZH:
|
| 335 |
+
return op_VFENE, 1, 2
|
| 336 |
+
case AVFENEZF:
|
| 337 |
+
return op_VFENE, 2, 2
|
| 338 |
+
case AVFENEZBS:
|
| 339 |
+
return op_VFENE, 0, 3
|
| 340 |
+
case AVFENEZHS:
|
| 341 |
+
return op_VFENE, 1, 3
|
| 342 |
+
case AVFENEZFS:
|
| 343 |
+
return op_VFENE, 2, 3
|
| 344 |
+
case AVFA:
|
| 345 |
+
return op_VFA, 0, 0
|
| 346 |
+
case AVFADB:
|
| 347 |
+
return op_VFA, 3, 0
|
| 348 |
+
case AWFADB:
|
| 349 |
+
return op_VFA, 3, 0
|
| 350 |
+
case AWFK:
|
| 351 |
+
return op_WFK, 0, 0
|
| 352 |
+
case AWFKDB:
|
| 353 |
+
return op_WFK, 3, 0
|
| 354 |
+
case AVFCE:
|
| 355 |
+
return op_VFCE, 0, 0
|
| 356 |
+
case AVFCEDB:
|
| 357 |
+
return op_VFCE, 3, 0
|
| 358 |
+
case AVFCEDBS:
|
| 359 |
+
return op_VFCE, 3, 1
|
| 360 |
+
case AWFCEDB:
|
| 361 |
+
return op_VFCE, 3, 0
|
| 362 |
+
case AWFCEDBS:
|
| 363 |
+
return op_VFCE, 3, 1
|
| 364 |
+
case AVFCH:
|
| 365 |
+
return op_VFCH, 0, 0
|
| 366 |
+
case AVFCHDB:
|
| 367 |
+
return op_VFCH, 3, 0
|
| 368 |
+
case AVFCHDBS:
|
| 369 |
+
return op_VFCH, 3, 1
|
| 370 |
+
case AWFCHDB:
|
| 371 |
+
return op_VFCH, 3, 0
|
| 372 |
+
case AWFCHDBS:
|
| 373 |
+
return op_VFCH, 3, 1
|
| 374 |
+
case AVFCHE:
|
| 375 |
+
return op_VFCHE, 0, 0
|
| 376 |
+
case AVFCHEDB:
|
| 377 |
+
return op_VFCHE, 3, 0
|
| 378 |
+
case AVFCHEDBS:
|
| 379 |
+
return op_VFCHE, 3, 1
|
| 380 |
+
case AWFCHEDB:
|
| 381 |
+
return op_VFCHE, 3, 0
|
| 382 |
+
case AWFCHEDBS:
|
| 383 |
+
return op_VFCHE, 3, 1
|
| 384 |
+
case AWFC:
|
| 385 |
+
return op_WFC, 0, 0
|
| 386 |
+
case AWFCDB:
|
| 387 |
+
return op_WFC, 3, 0
|
| 388 |
+
case AVCDG:
|
| 389 |
+
return op_VCDG, 0, 0
|
| 390 |
+
case AVCDGB:
|
| 391 |
+
return op_VCDG, 3, 0
|
| 392 |
+
case AWCDGB:
|
| 393 |
+
return op_VCDG, 3, 0
|
| 394 |
+
case AVCDLG:
|
| 395 |
+
return op_VCDLG, 0, 0
|
| 396 |
+
case AVCDLGB:
|
| 397 |
+
return op_VCDLG, 3, 0
|
| 398 |
+
case AWCDLGB:
|
| 399 |
+
return op_VCDLG, 3, 0
|
| 400 |
+
case AVCGD:
|
| 401 |
+
return op_VCGD, 0, 0
|
| 402 |
+
case AVCGDB:
|
| 403 |
+
return op_VCGD, 3, 0
|
| 404 |
+
case AWCGDB:
|
| 405 |
+
return op_VCGD, 3, 0
|
| 406 |
+
case AVCLGD:
|
| 407 |
+
return op_VCLGD, 0, 0
|
| 408 |
+
case AVCLGDB:
|
| 409 |
+
return op_VCLGD, 3, 0
|
| 410 |
+
case AWCLGDB:
|
| 411 |
+
return op_VCLGD, 3, 0
|
| 412 |
+
case AVFD:
|
| 413 |
+
return op_VFD, 0, 0
|
| 414 |
+
case AVFDDB:
|
| 415 |
+
return op_VFD, 3, 0
|
| 416 |
+
case AWFDDB:
|
| 417 |
+
return op_VFD, 3, 0
|
| 418 |
+
case AVLDE:
|
| 419 |
+
return op_VLDE, 0, 0
|
| 420 |
+
case AVLDEB:
|
| 421 |
+
return op_VLDE, 2, 0
|
| 422 |
+
case AWLDEB:
|
| 423 |
+
return op_VLDE, 2, 0
|
| 424 |
+
case AVLED:
|
| 425 |
+
return op_VLED, 0, 0
|
| 426 |
+
case AVLEDB:
|
| 427 |
+
return op_VLED, 3, 0
|
| 428 |
+
case AWLEDB:
|
| 429 |
+
return op_VLED, 3, 0
|
| 430 |
+
case AVFM:
|
| 431 |
+
return op_VFM, 0, 0
|
| 432 |
+
case AVFMDB:
|
| 433 |
+
return op_VFM, 3, 0
|
| 434 |
+
case AWFMDB:
|
| 435 |
+
return op_VFM, 3, 0
|
| 436 |
+
case AVFMA:
|
| 437 |
+
return op_VFMA, 0, 0
|
| 438 |
+
case AVFMADB:
|
| 439 |
+
return op_VFMA, 3, 0
|
| 440 |
+
case AWFMADB:
|
| 441 |
+
return op_VFMA, 3, 0
|
| 442 |
+
case AVFMS:
|
| 443 |
+
return op_VFMS, 0, 0
|
| 444 |
+
case AVFMSDB:
|
| 445 |
+
return op_VFMS, 3, 0
|
| 446 |
+
case AWFMSDB:
|
| 447 |
+
return op_VFMS, 3, 0
|
| 448 |
+
case AVFPSO:
|
| 449 |
+
return op_VFPSO, 0, 0
|
| 450 |
+
case AVFPSODB:
|
| 451 |
+
return op_VFPSO, 3, 0
|
| 452 |
+
case AWFPSODB:
|
| 453 |
+
return op_VFPSO, 3, 0
|
| 454 |
+
case AVFLCDB:
|
| 455 |
+
return op_VFPSO, 3, 0
|
| 456 |
+
case AWFLCDB:
|
| 457 |
+
return op_VFPSO, 3, 0
|
| 458 |
+
case AVFLNDB:
|
| 459 |
+
return op_VFPSO, 3, 1
|
| 460 |
+
case AWFLNDB:
|
| 461 |
+
return op_VFPSO, 3, 1
|
| 462 |
+
case AVFLPDB:
|
| 463 |
+
return op_VFPSO, 3, 2
|
| 464 |
+
case AWFLPDB:
|
| 465 |
+
return op_VFPSO, 3, 2
|
| 466 |
+
case AVFSQ:
|
| 467 |
+
return op_VFSQ, 0, 0
|
| 468 |
+
case AVFSQDB:
|
| 469 |
+
return op_VFSQ, 3, 0
|
| 470 |
+
case AWFSQDB:
|
| 471 |
+
return op_VFSQ, 3, 0
|
| 472 |
+
case AVFS:
|
| 473 |
+
return op_VFS, 0, 0
|
| 474 |
+
case AVFSDB:
|
| 475 |
+
return op_VFS, 3, 0
|
| 476 |
+
case AWFSDB:
|
| 477 |
+
return op_VFS, 3, 0
|
| 478 |
+
case AVFTCI:
|
| 479 |
+
return op_VFTCI, 0, 0
|
| 480 |
+
case AVFTCIDB:
|
| 481 |
+
return op_VFTCI, 3, 0
|
| 482 |
+
case AWFTCIDB:
|
| 483 |
+
return op_VFTCI, 3, 0
|
| 484 |
+
case AVGFM:
|
| 485 |
+
return op_VGFM, 0, 0
|
| 486 |
+
case AVGFMB:
|
| 487 |
+
return op_VGFM, 0, 0
|
| 488 |
+
case AVGFMH:
|
| 489 |
+
return op_VGFM, 1, 0
|
| 490 |
+
case AVGFMF:
|
| 491 |
+
return op_VGFM, 2, 0
|
| 492 |
+
case AVGFMG:
|
| 493 |
+
return op_VGFM, 3, 0
|
| 494 |
+
case AVGFMA:
|
| 495 |
+
return op_VGFMA, 0, 0
|
| 496 |
+
case AVGFMAB:
|
| 497 |
+
return op_VGFMA, 0, 0
|
| 498 |
+
case AVGFMAH:
|
| 499 |
+
return op_VGFMA, 1, 0
|
| 500 |
+
case AVGFMAF:
|
| 501 |
+
return op_VGFMA, 2, 0
|
| 502 |
+
case AVGFMAG:
|
| 503 |
+
return op_VGFMA, 3, 0
|
| 504 |
+
case AVGEF:
|
| 505 |
+
return op_VGEF, 0, 0
|
| 506 |
+
case AVGEG:
|
| 507 |
+
return op_VGEG, 0, 0
|
| 508 |
+
case AVGBM:
|
| 509 |
+
return op_VGBM, 0, 0
|
| 510 |
+
case AVZERO:
|
| 511 |
+
return op_VGBM, 0, 0
|
| 512 |
+
case AVONE:
|
| 513 |
+
return op_VGBM, 0, 0
|
| 514 |
+
case AVGM:
|
| 515 |
+
return op_VGM, 0, 0
|
| 516 |
+
case AVGMB:
|
| 517 |
+
return op_VGM, 0, 0
|
| 518 |
+
case AVGMH:
|
| 519 |
+
return op_VGM, 1, 0
|
| 520 |
+
case AVGMF:
|
| 521 |
+
return op_VGM, 2, 0
|
| 522 |
+
case AVGMG:
|
| 523 |
+
return op_VGM, 3, 0
|
| 524 |
+
case AVISTR:
|
| 525 |
+
return op_VISTR, 0, 0
|
| 526 |
+
case AVISTRB:
|
| 527 |
+
return op_VISTR, 0, 0
|
| 528 |
+
case AVISTRH:
|
| 529 |
+
return op_VISTR, 1, 0
|
| 530 |
+
case AVISTRF:
|
| 531 |
+
return op_VISTR, 2, 0
|
| 532 |
+
case AVISTRBS:
|
| 533 |
+
return op_VISTR, 0, 1
|
| 534 |
+
case AVISTRHS:
|
| 535 |
+
return op_VISTR, 1, 1
|
| 536 |
+
case AVISTRFS:
|
| 537 |
+
return op_VISTR, 2, 1
|
| 538 |
+
case AVL:
|
| 539 |
+
return op_VL, 0, 0
|
| 540 |
+
case AVLR:
|
| 541 |
+
return op_VLR, 0, 0
|
| 542 |
+
case AVLREP:
|
| 543 |
+
return op_VLREP, 0, 0
|
| 544 |
+
case AVLREPB:
|
| 545 |
+
return op_VLREP, 0, 0
|
| 546 |
+
case AVLREPH:
|
| 547 |
+
return op_VLREP, 1, 0
|
| 548 |
+
case AVLREPF:
|
| 549 |
+
return op_VLREP, 2, 0
|
| 550 |
+
case AVLREPG:
|
| 551 |
+
return op_VLREP, 3, 0
|
| 552 |
+
case AVLC:
|
| 553 |
+
return op_VLC, 0, 0
|
| 554 |
+
case AVLCB:
|
| 555 |
+
return op_VLC, 0, 0
|
| 556 |
+
case AVLCH:
|
| 557 |
+
return op_VLC, 1, 0
|
| 558 |
+
case AVLCF:
|
| 559 |
+
return op_VLC, 2, 0
|
| 560 |
+
case AVLCG:
|
| 561 |
+
return op_VLC, 3, 0
|
| 562 |
+
case AVLEH:
|
| 563 |
+
return op_VLEH, 0, 0
|
| 564 |
+
case AVLEF:
|
| 565 |
+
return op_VLEF, 0, 0
|
| 566 |
+
case AVLEG:
|
| 567 |
+
return op_VLEG, 0, 0
|
| 568 |
+
case AVLEB:
|
| 569 |
+
return op_VLEB, 0, 0
|
| 570 |
+
case AVLEIH:
|
| 571 |
+
return op_VLEIH, 0, 0
|
| 572 |
+
case AVLEIF:
|
| 573 |
+
return op_VLEIF, 0, 0
|
| 574 |
+
case AVLEIG:
|
| 575 |
+
return op_VLEIG, 0, 0
|
| 576 |
+
case AVLEIB:
|
| 577 |
+
return op_VLEIB, 0, 0
|
| 578 |
+
case AVFI:
|
| 579 |
+
return op_VFI, 0, 0
|
| 580 |
+
case AVFIDB:
|
| 581 |
+
return op_VFI, 3, 0
|
| 582 |
+
case AWFIDB:
|
| 583 |
+
return op_VFI, 3, 0
|
| 584 |
+
case AVLGV:
|
| 585 |
+
return op_VLGV, 0, 0
|
| 586 |
+
case AVLGVB:
|
| 587 |
+
return op_VLGV, 0, 0
|
| 588 |
+
case AVLGVH:
|
| 589 |
+
return op_VLGV, 1, 0
|
| 590 |
+
case AVLGVF:
|
| 591 |
+
return op_VLGV, 2, 0
|
| 592 |
+
case AVLGVG:
|
| 593 |
+
return op_VLGV, 3, 0
|
| 594 |
+
case AVLLEZ:
|
| 595 |
+
return op_VLLEZ, 0, 0
|
| 596 |
+
case AVLLEZB:
|
| 597 |
+
return op_VLLEZ, 0, 0
|
| 598 |
+
case AVLLEZH:
|
| 599 |
+
return op_VLLEZ, 1, 0
|
| 600 |
+
case AVLLEZF:
|
| 601 |
+
return op_VLLEZ, 2, 0
|
| 602 |
+
case AVLLEZG:
|
| 603 |
+
return op_VLLEZ, 3, 0
|
| 604 |
+
case AVLM:
|
| 605 |
+
return op_VLM, 0, 0
|
| 606 |
+
case AVLP:
|
| 607 |
+
return op_VLP, 0, 0
|
| 608 |
+
case AVLPB:
|
| 609 |
+
return op_VLP, 0, 0
|
| 610 |
+
case AVLPH:
|
| 611 |
+
return op_VLP, 1, 0
|
| 612 |
+
case AVLPF:
|
| 613 |
+
return op_VLP, 2, 0
|
| 614 |
+
case AVLPG:
|
| 615 |
+
return op_VLP, 3, 0
|
| 616 |
+
case AVLBB:
|
| 617 |
+
return op_VLBB, 0, 0
|
| 618 |
+
case AVLVG:
|
| 619 |
+
return op_VLVG, 0, 0
|
| 620 |
+
case AVLVGB:
|
| 621 |
+
return op_VLVG, 0, 0
|
| 622 |
+
case AVLVGH:
|
| 623 |
+
return op_VLVG, 1, 0
|
| 624 |
+
case AVLVGF:
|
| 625 |
+
return op_VLVG, 2, 0
|
| 626 |
+
case AVLVGG:
|
| 627 |
+
return op_VLVG, 3, 0
|
| 628 |
+
case AVLVGP:
|
| 629 |
+
return op_VLVGP, 0, 0
|
| 630 |
+
case AVLL:
|
| 631 |
+
return op_VLL, 0, 0
|
| 632 |
+
case AVMX:
|
| 633 |
+
return op_VMX, 0, 0
|
| 634 |
+
case AVMXB:
|
| 635 |
+
return op_VMX, 0, 0
|
| 636 |
+
case AVMXH:
|
| 637 |
+
return op_VMX, 1, 0
|
| 638 |
+
case AVMXF:
|
| 639 |
+
return op_VMX, 2, 0
|
| 640 |
+
case AVMXG:
|
| 641 |
+
return op_VMX, 3, 0
|
| 642 |
+
case AVMXL:
|
| 643 |
+
return op_VMXL, 0, 0
|
| 644 |
+
case AVMXLB:
|
| 645 |
+
return op_VMXL, 0, 0
|
| 646 |
+
case AVMXLH:
|
| 647 |
+
return op_VMXL, 1, 0
|
| 648 |
+
case AVMXLF:
|
| 649 |
+
return op_VMXL, 2, 0
|
| 650 |
+
case AVMXLG:
|
| 651 |
+
return op_VMXL, 3, 0
|
| 652 |
+
case AVMRH:
|
| 653 |
+
return op_VMRH, 0, 0
|
| 654 |
+
case AVMRHB:
|
| 655 |
+
return op_VMRH, 0, 0
|
| 656 |
+
case AVMRHH:
|
| 657 |
+
return op_VMRH, 1, 0
|
| 658 |
+
case AVMRHF:
|
| 659 |
+
return op_VMRH, 2, 0
|
| 660 |
+
case AVMRHG:
|
| 661 |
+
return op_VMRH, 3, 0
|
| 662 |
+
case AVMRL:
|
| 663 |
+
return op_VMRL, 0, 0
|
| 664 |
+
case AVMRLB:
|
| 665 |
+
return op_VMRL, 0, 0
|
| 666 |
+
case AVMRLH:
|
| 667 |
+
return op_VMRL, 1, 0
|
| 668 |
+
case AVMRLF:
|
| 669 |
+
return op_VMRL, 2, 0
|
| 670 |
+
case AVMRLG:
|
| 671 |
+
return op_VMRL, 3, 0
|
| 672 |
+
case AVMN:
|
| 673 |
+
return op_VMN, 0, 0
|
| 674 |
+
case AVMNB:
|
| 675 |
+
return op_VMN, 0, 0
|
| 676 |
+
case AVMNH:
|
| 677 |
+
return op_VMN, 1, 0
|
| 678 |
+
case AVMNF:
|
| 679 |
+
return op_VMN, 2, 0
|
| 680 |
+
case AVMNG:
|
| 681 |
+
return op_VMN, 3, 0
|
| 682 |
+
case AVMNL:
|
| 683 |
+
return op_VMNL, 0, 0
|
| 684 |
+
case AVMNLB:
|
| 685 |
+
return op_VMNL, 0, 0
|
| 686 |
+
case AVMNLH:
|
| 687 |
+
return op_VMNL, 1, 0
|
| 688 |
+
case AVMNLF:
|
| 689 |
+
return op_VMNL, 2, 0
|
| 690 |
+
case AVMNLG:
|
| 691 |
+
return op_VMNL, 3, 0
|
| 692 |
+
case AVMAE:
|
| 693 |
+
return op_VMAE, 0, 0
|
| 694 |
+
case AVMAEB:
|
| 695 |
+
return op_VMAE, 0, 0
|
| 696 |
+
case AVMAEH:
|
| 697 |
+
return op_VMAE, 1, 0
|
| 698 |
+
case AVMAEF:
|
| 699 |
+
return op_VMAE, 2, 0
|
| 700 |
+
case AVMAH:
|
| 701 |
+
return op_VMAH, 0, 0
|
| 702 |
+
case AVMAHB:
|
| 703 |
+
return op_VMAH, 0, 0
|
| 704 |
+
case AVMAHH:
|
| 705 |
+
return op_VMAH, 1, 0
|
| 706 |
+
case AVMAHF:
|
| 707 |
+
return op_VMAH, 2, 0
|
| 708 |
+
case AVMALE:
|
| 709 |
+
return op_VMALE, 0, 0
|
| 710 |
+
case AVMALEB:
|
| 711 |
+
return op_VMALE, 0, 0
|
| 712 |
+
case AVMALEH:
|
| 713 |
+
return op_VMALE, 1, 0
|
| 714 |
+
case AVMALEF:
|
| 715 |
+
return op_VMALE, 2, 0
|
| 716 |
+
case AVMALH:
|
| 717 |
+
return op_VMALH, 0, 0
|
| 718 |
+
case AVMALHB:
|
| 719 |
+
return op_VMALH, 0, 0
|
| 720 |
+
case AVMALHH:
|
| 721 |
+
return op_VMALH, 1, 0
|
| 722 |
+
case AVMALHF:
|
| 723 |
+
return op_VMALH, 2, 0
|
| 724 |
+
case AVMALO:
|
| 725 |
+
return op_VMALO, 0, 0
|
| 726 |
+
case AVMALOB:
|
| 727 |
+
return op_VMALO, 0, 0
|
| 728 |
+
case AVMALOH:
|
| 729 |
+
return op_VMALO, 1, 0
|
| 730 |
+
case AVMALOF:
|
| 731 |
+
return op_VMALO, 2, 0
|
| 732 |
+
case AVMAL:
|
| 733 |
+
return op_VMAL, 0, 0
|
| 734 |
+
case AVMALB:
|
| 735 |
+
return op_VMAL, 0, 0
|
| 736 |
+
case AVMALHW:
|
| 737 |
+
return op_VMAL, 1, 0
|
| 738 |
+
case AVMALF:
|
| 739 |
+
return op_VMAL, 2, 0
|
| 740 |
+
case AVMAO:
|
| 741 |
+
return op_VMAO, 0, 0
|
| 742 |
+
case AVMAOB:
|
| 743 |
+
return op_VMAO, 0, 0
|
| 744 |
+
case AVMAOH:
|
| 745 |
+
return op_VMAO, 1, 0
|
| 746 |
+
case AVMAOF:
|
| 747 |
+
return op_VMAO, 2, 0
|
| 748 |
+
case AVME:
|
| 749 |
+
return op_VME, 0, 0
|
| 750 |
+
case AVMEB:
|
| 751 |
+
return op_VME, 0, 0
|
| 752 |
+
case AVMEH:
|
| 753 |
+
return op_VME, 1, 0
|
| 754 |
+
case AVMEF:
|
| 755 |
+
return op_VME, 2, 0
|
| 756 |
+
case AVMH:
|
| 757 |
+
return op_VMH, 0, 0
|
| 758 |
+
case AVMHB:
|
| 759 |
+
return op_VMH, 0, 0
|
| 760 |
+
case AVMHH:
|
| 761 |
+
return op_VMH, 1, 0
|
| 762 |
+
case AVMHF:
|
| 763 |
+
return op_VMH, 2, 0
|
| 764 |
+
case AVMLE:
|
| 765 |
+
return op_VMLE, 0, 0
|
| 766 |
+
case AVMLEB:
|
| 767 |
+
return op_VMLE, 0, 0
|
| 768 |
+
case AVMLEH:
|
| 769 |
+
return op_VMLE, 1, 0
|
| 770 |
+
case AVMLEF:
|
| 771 |
+
return op_VMLE, 2, 0
|
| 772 |
+
case AVMLH:
|
| 773 |
+
return op_VMLH, 0, 0
|
| 774 |
+
case AVMLHB:
|
| 775 |
+
return op_VMLH, 0, 0
|
| 776 |
+
case AVMLHH:
|
| 777 |
+
return op_VMLH, 1, 0
|
| 778 |
+
case AVMLHF:
|
| 779 |
+
return op_VMLH, 2, 0
|
| 780 |
+
case AVMLO:
|
| 781 |
+
return op_VMLO, 0, 0
|
| 782 |
+
case AVMLOB:
|
| 783 |
+
return op_VMLO, 0, 0
|
| 784 |
+
case AVMLOH:
|
| 785 |
+
return op_VMLO, 1, 0
|
| 786 |
+
case AVMLOF:
|
| 787 |
+
return op_VMLO, 2, 0
|
| 788 |
+
case AVML:
|
| 789 |
+
return op_VML, 0, 0
|
| 790 |
+
case AVMLB:
|
| 791 |
+
return op_VML, 0, 0
|
| 792 |
+
case AVMLHW:
|
| 793 |
+
return op_VML, 1, 0
|
| 794 |
+
case AVMLF:
|
| 795 |
+
return op_VML, 2, 0
|
| 796 |
+
case AVMO:
|
| 797 |
+
return op_VMO, 0, 0
|
| 798 |
+
case AVMOB:
|
| 799 |
+
return op_VMO, 0, 0
|
| 800 |
+
case AVMOH:
|
| 801 |
+
return op_VMO, 1, 0
|
| 802 |
+
case AVMOF:
|
| 803 |
+
return op_VMO, 2, 0
|
| 804 |
+
case AVNO:
|
| 805 |
+
return op_VNO, 0, 0
|
| 806 |
+
case AVNOT:
|
| 807 |
+
return op_VNO, 0, 0
|
| 808 |
+
case AVO:
|
| 809 |
+
return op_VO, 0, 0
|
| 810 |
+
case AVPK:
|
| 811 |
+
return op_VPK, 0, 0
|
| 812 |
+
case AVPKH:
|
| 813 |
+
return op_VPK, 1, 0
|
| 814 |
+
case AVPKF:
|
| 815 |
+
return op_VPK, 2, 0
|
| 816 |
+
case AVPKG:
|
| 817 |
+
return op_VPK, 3, 0
|
| 818 |
+
case AVPKLS:
|
| 819 |
+
return op_VPKLS, 0, 0
|
| 820 |
+
case AVPKLSH:
|
| 821 |
+
return op_VPKLS, 1, 0
|
| 822 |
+
case AVPKLSF:
|
| 823 |
+
return op_VPKLS, 2, 0
|
| 824 |
+
case AVPKLSG:
|
| 825 |
+
return op_VPKLS, 3, 0
|
| 826 |
+
case AVPKLSHS:
|
| 827 |
+
return op_VPKLS, 1, 1
|
| 828 |
+
case AVPKLSFS:
|
| 829 |
+
return op_VPKLS, 2, 1
|
| 830 |
+
case AVPKLSGS:
|
| 831 |
+
return op_VPKLS, 3, 1
|
| 832 |
+
case AVPKS:
|
| 833 |
+
return op_VPKS, 0, 0
|
| 834 |
+
case AVPKSH:
|
| 835 |
+
return op_VPKS, 1, 0
|
| 836 |
+
case AVPKSF:
|
| 837 |
+
return op_VPKS, 2, 0
|
| 838 |
+
case AVPKSG:
|
| 839 |
+
return op_VPKS, 3, 0
|
| 840 |
+
case AVPKSHS:
|
| 841 |
+
return op_VPKS, 1, 1
|
| 842 |
+
case AVPKSFS:
|
| 843 |
+
return op_VPKS, 2, 1
|
| 844 |
+
case AVPKSGS:
|
| 845 |
+
return op_VPKS, 3, 1
|
| 846 |
+
case AVPERM:
|
| 847 |
+
return op_VPERM, 0, 0
|
| 848 |
+
case AVPDI:
|
| 849 |
+
return op_VPDI, 0, 0
|
| 850 |
+
case AVPOPCT:
|
| 851 |
+
return op_VPOPCT, 0, 0
|
| 852 |
+
case AVREP:
|
| 853 |
+
return op_VREP, 0, 0
|
| 854 |
+
case AVREPB:
|
| 855 |
+
return op_VREP, 0, 0
|
| 856 |
+
case AVREPH:
|
| 857 |
+
return op_VREP, 1, 0
|
| 858 |
+
case AVREPF:
|
| 859 |
+
return op_VREP, 2, 0
|
| 860 |
+
case AVREPG:
|
| 861 |
+
return op_VREP, 3, 0
|
| 862 |
+
case AVREPI:
|
| 863 |
+
return op_VREPI, 0, 0
|
| 864 |
+
case AVREPIB:
|
| 865 |
+
return op_VREPI, 0, 0
|
| 866 |
+
case AVREPIH:
|
| 867 |
+
return op_VREPI, 1, 0
|
| 868 |
+
case AVREPIF:
|
| 869 |
+
return op_VREPI, 2, 0
|
| 870 |
+
case AVREPIG:
|
| 871 |
+
return op_VREPI, 3, 0
|
| 872 |
+
case AVSCEF:
|
| 873 |
+
return op_VSCEF, 0, 0
|
| 874 |
+
case AVSCEG:
|
| 875 |
+
return op_VSCEG, 0, 0
|
| 876 |
+
case AVSEL:
|
| 877 |
+
return op_VSEL, 0, 0
|
| 878 |
+
case AVSL:
|
| 879 |
+
return op_VSL, 0, 0
|
| 880 |
+
case AVSLB:
|
| 881 |
+
return op_VSLB, 0, 0
|
| 882 |
+
case AVSLDB:
|
| 883 |
+
return op_VSLDB, 0, 0
|
| 884 |
+
case AVSRA:
|
| 885 |
+
return op_VSRA, 0, 0
|
| 886 |
+
case AVSRAB:
|
| 887 |
+
return op_VSRAB, 0, 0
|
| 888 |
+
case AVSRL:
|
| 889 |
+
return op_VSRL, 0, 0
|
| 890 |
+
case AVSRLB:
|
| 891 |
+
return op_VSRLB, 0, 0
|
| 892 |
+
case AVSEG:
|
| 893 |
+
return op_VSEG, 0, 0
|
| 894 |
+
case AVSEGB:
|
| 895 |
+
return op_VSEG, 0, 0
|
| 896 |
+
case AVSEGH:
|
| 897 |
+
return op_VSEG, 1, 0
|
| 898 |
+
case AVSEGF:
|
| 899 |
+
return op_VSEG, 2, 0
|
| 900 |
+
case AVST:
|
| 901 |
+
return op_VST, 0, 0
|
| 902 |
+
case AVSTEH:
|
| 903 |
+
return op_VSTEH, 0, 0
|
| 904 |
+
case AVSTEF:
|
| 905 |
+
return op_VSTEF, 0, 0
|
| 906 |
+
case AVSTEG:
|
| 907 |
+
return op_VSTEG, 0, 0
|
| 908 |
+
case AVSTEB:
|
| 909 |
+
return op_VSTEB, 0, 0
|
| 910 |
+
case AVSTM:
|
| 911 |
+
return op_VSTM, 0, 0
|
| 912 |
+
case AVSTL:
|
| 913 |
+
return op_VSTL, 0, 0
|
| 914 |
+
case AVSTRC:
|
| 915 |
+
return op_VSTRC, 0, 0
|
| 916 |
+
case AVSTRCB:
|
| 917 |
+
return op_VSTRC, 0, 0
|
| 918 |
+
case AVSTRCH:
|
| 919 |
+
return op_VSTRC, 1, 0
|
| 920 |
+
case AVSTRCF:
|
| 921 |
+
return op_VSTRC, 2, 0
|
| 922 |
+
case AVSTRCBS:
|
| 923 |
+
return op_VSTRC, 0, 1
|
| 924 |
+
case AVSTRCHS:
|
| 925 |
+
return op_VSTRC, 1, 1
|
| 926 |
+
case AVSTRCFS:
|
| 927 |
+
return op_VSTRC, 2, 1
|
| 928 |
+
case AVSTRCZB:
|
| 929 |
+
return op_VSTRC, 0, 2
|
| 930 |
+
case AVSTRCZH:
|
| 931 |
+
return op_VSTRC, 1, 2
|
| 932 |
+
case AVSTRCZF:
|
| 933 |
+
return op_VSTRC, 2, 2
|
| 934 |
+
case AVSTRCZBS:
|
| 935 |
+
return op_VSTRC, 0, 3
|
| 936 |
+
case AVSTRCZHS:
|
| 937 |
+
return op_VSTRC, 1, 3
|
| 938 |
+
case AVSTRCZFS:
|
| 939 |
+
return op_VSTRC, 2, 3
|
| 940 |
+
case AVS:
|
| 941 |
+
return op_VS, 0, 0
|
| 942 |
+
case AVSB:
|
| 943 |
+
return op_VS, 0, 0
|
| 944 |
+
case AVSH:
|
| 945 |
+
return op_VS, 1, 0
|
| 946 |
+
case AVSF:
|
| 947 |
+
return op_VS, 2, 0
|
| 948 |
+
case AVSG:
|
| 949 |
+
return op_VS, 3, 0
|
| 950 |
+
case AVSQ:
|
| 951 |
+
return op_VS, 4, 0
|
| 952 |
+
case AVSCBI:
|
| 953 |
+
return op_VSCBI, 0, 0
|
| 954 |
+
case AVSCBIB:
|
| 955 |
+
return op_VSCBI, 0, 0
|
| 956 |
+
case AVSCBIH:
|
| 957 |
+
return op_VSCBI, 1, 0
|
| 958 |
+
case AVSCBIF:
|
| 959 |
+
return op_VSCBI, 2, 0
|
| 960 |
+
case AVSCBIG:
|
| 961 |
+
return op_VSCBI, 3, 0
|
| 962 |
+
case AVSCBIQ:
|
| 963 |
+
return op_VSCBI, 4, 0
|
| 964 |
+
case AVSBCBI:
|
| 965 |
+
return op_VSBCBI, 0, 0
|
| 966 |
+
case AVSBCBIQ:
|
| 967 |
+
return op_VSBCBI, 4, 0
|
| 968 |
+
case AVSBI:
|
| 969 |
+
return op_VSBI, 0, 0
|
| 970 |
+
case AVSBIQ:
|
| 971 |
+
return op_VSBI, 4, 0
|
| 972 |
+
case AVSUMG:
|
| 973 |
+
return op_VSUMG, 0, 0
|
| 974 |
+
case AVSUMGH:
|
| 975 |
+
return op_VSUMG, 1, 0
|
| 976 |
+
case AVSUMGF:
|
| 977 |
+
return op_VSUMG, 2, 0
|
| 978 |
+
case AVSUMQ:
|
| 979 |
+
return op_VSUMQ, 0, 0
|
| 980 |
+
case AVSUMQF:
|
| 981 |
+
return op_VSUMQ, 2, 0
|
| 982 |
+
case AVSUMQG:
|
| 983 |
+
return op_VSUMQ, 3, 0
|
| 984 |
+
case AVSUM:
|
| 985 |
+
return op_VSUM, 0, 0
|
| 986 |
+
case AVSUMB:
|
| 987 |
+
return op_VSUM, 0, 0
|
| 988 |
+
case AVSUMH:
|
| 989 |
+
return op_VSUM, 1, 0
|
| 990 |
+
case AVTM:
|
| 991 |
+
return op_VTM, 0, 0
|
| 992 |
+
case AVUPH:
|
| 993 |
+
return op_VUPH, 0, 0
|
| 994 |
+
case AVUPHB:
|
| 995 |
+
return op_VUPH, 0, 0
|
| 996 |
+
case AVUPHH:
|
| 997 |
+
return op_VUPH, 1, 0
|
| 998 |
+
case AVUPHF:
|
| 999 |
+
return op_VUPH, 2, 0
|
| 1000 |
+
case AVUPLH:
|
| 1001 |
+
return op_VUPLH, 0, 0
|
| 1002 |
+
case AVUPLHB:
|
| 1003 |
+
return op_VUPLH, 0, 0
|
| 1004 |
+
case AVUPLHH:
|
| 1005 |
+
return op_VUPLH, 1, 0
|
| 1006 |
+
case AVUPLHF:
|
| 1007 |
+
return op_VUPLH, 2, 0
|
| 1008 |
+
case AVUPLL:
|
| 1009 |
+
return op_VUPLL, 0, 0
|
| 1010 |
+
case AVUPLLB:
|
| 1011 |
+
return op_VUPLL, 0, 0
|
| 1012 |
+
case AVUPLLH:
|
| 1013 |
+
return op_VUPLL, 1, 0
|
| 1014 |
+
case AVUPLLF:
|
| 1015 |
+
return op_VUPLL, 2, 0
|
| 1016 |
+
case AVUPL:
|
| 1017 |
+
return op_VUPL, 0, 0
|
| 1018 |
+
case AVUPLB:
|
| 1019 |
+
return op_VUPL, 0, 0
|
| 1020 |
+
case AVUPLHW:
|
| 1021 |
+
return op_VUPL, 1, 0
|
| 1022 |
+
case AVUPLF:
|
| 1023 |
+
return op_VUPL, 2, 0
|
| 1024 |
+
}
|
| 1025 |
+
}
|
| 1026 |
+
|
| 1027 |
+
// singleElementMask returns the single element mask bits required for the
|
| 1028 |
+
// given instruction.
|
| 1029 |
+
func singleElementMask(as obj.As) uint32 {
|
| 1030 |
+
switch as {
|
| 1031 |
+
case AWFADB,
|
| 1032 |
+
AWFK,
|
| 1033 |
+
AWFKDB,
|
| 1034 |
+
AWFCEDB,
|
| 1035 |
+
AWFCEDBS,
|
| 1036 |
+
AWFCHDB,
|
| 1037 |
+
AWFCHDBS,
|
| 1038 |
+
AWFCHEDB,
|
| 1039 |
+
AWFCHEDBS,
|
| 1040 |
+
AWFC,
|
| 1041 |
+
AWFCDB,
|
| 1042 |
+
AWCDGB,
|
| 1043 |
+
AWCDLGB,
|
| 1044 |
+
AWCGDB,
|
| 1045 |
+
AWCLGDB,
|
| 1046 |
+
AWFDDB,
|
| 1047 |
+
AWLDEB,
|
| 1048 |
+
AWLEDB,
|
| 1049 |
+
AWFMDB,
|
| 1050 |
+
AWFMADB,
|
| 1051 |
+
AWFMSDB,
|
| 1052 |
+
AWFPSODB,
|
| 1053 |
+
AWFLCDB,
|
| 1054 |
+
AWFLNDB,
|
| 1055 |
+
AWFLPDB,
|
| 1056 |
+
AWFSQDB,
|
| 1057 |
+
AWFSDB,
|
| 1058 |
+
AWFTCIDB,
|
| 1059 |
+
AWFIDB:
|
| 1060 |
+
return 8
|
| 1061 |
+
case AVMSLEG:
|
| 1062 |
+
return 8
|
| 1063 |
+
case AVMSLOG:
|
| 1064 |
+
return 4
|
| 1065 |
+
case AVMSLEOG:
|
| 1066 |
+
return 12
|
| 1067 |
+
}
|
| 1068 |
+
return 0
|
| 1069 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/wasm/a.out.go
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2018 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
package wasm
|
| 6 |
+
|
| 7 |
+
import "cmd/internal/obj"
|
| 8 |
+
|
| 9 |
+
//go:generate go run ../stringer.go -i $GOFILE -o anames.go -p wasm
|
| 10 |
+
|
| 11 |
+
const (
|
| 12 |
+
/* mark flags */
|
| 13 |
+
DONE = 1 << iota
|
| 14 |
+
PRESERVEFLAGS // not allowed to clobber flags
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
/*
|
| 18 |
+
* wasm
|
| 19 |
+
*/
|
| 20 |
+
const (
|
| 21 |
+
AGet = obj.ABaseWasm + obj.A_ARCHSPECIFIC + iota
|
| 22 |
+
ASet
|
| 23 |
+
ATee
|
| 24 |
+
ANot // alias for I32Eqz
|
| 25 |
+
|
| 26 |
+
// The following are low-level WebAssembly instructions.
|
| 27 |
+
// Their order matters, since it matches the opcode encoding.
|
| 28 |
+
// Gaps in the encoding are indicated by comments.
|
| 29 |
+
|
| 30 |
+
AUnreachable // opcode 0x00
|
| 31 |
+
ANop
|
| 32 |
+
ABlock
|
| 33 |
+
ALoop
|
| 34 |
+
AIf
|
| 35 |
+
AElse
|
| 36 |
+
|
| 37 |
+
AEnd // opcode 0x0B
|
| 38 |
+
ABr
|
| 39 |
+
ABrIf
|
| 40 |
+
ABrTable
|
| 41 |
+
// ACall and AReturn are WebAssembly instructions. obj.ACALL and obj.ARET are higher level instructions
|
| 42 |
+
// with Go semantics, e.g. they manipulate the Go stack on the linear memory.
|
| 43 |
+
AReturn
|
| 44 |
+
ACall
|
| 45 |
+
ACallIndirect
|
| 46 |
+
|
| 47 |
+
ADrop // opcode 0x1A
|
| 48 |
+
ASelect
|
| 49 |
+
|
| 50 |
+
ALocalGet // opcode 0x20
|
| 51 |
+
ALocalSet
|
| 52 |
+
ALocalTee
|
| 53 |
+
AGlobalGet
|
| 54 |
+
AGlobalSet
|
| 55 |
+
|
| 56 |
+
AI32Load // opcode 0x28
|
| 57 |
+
AI64Load
|
| 58 |
+
AF32Load
|
| 59 |
+
AF64Load
|
| 60 |
+
AI32Load8S
|
| 61 |
+
AI32Load8U
|
| 62 |
+
AI32Load16S
|
| 63 |
+
AI32Load16U
|
| 64 |
+
AI64Load8S
|
| 65 |
+
AI64Load8U
|
| 66 |
+
AI64Load16S
|
| 67 |
+
AI64Load16U
|
| 68 |
+
AI64Load32S
|
| 69 |
+
AI64Load32U
|
| 70 |
+
AI32Store
|
| 71 |
+
AI64Store
|
| 72 |
+
AF32Store
|
| 73 |
+
AF64Store
|
| 74 |
+
AI32Store8
|
| 75 |
+
AI32Store16
|
| 76 |
+
AI64Store8
|
| 77 |
+
AI64Store16
|
| 78 |
+
AI64Store32
|
| 79 |
+
ACurrentMemory
|
| 80 |
+
AGrowMemory
|
| 81 |
+
|
| 82 |
+
AI32Const
|
| 83 |
+
AI64Const
|
| 84 |
+
AF32Const
|
| 85 |
+
AF64Const
|
| 86 |
+
|
| 87 |
+
AI32Eqz
|
| 88 |
+
AI32Eq
|
| 89 |
+
AI32Ne
|
| 90 |
+
AI32LtS
|
| 91 |
+
AI32LtU
|
| 92 |
+
AI32GtS
|
| 93 |
+
AI32GtU
|
| 94 |
+
AI32LeS
|
| 95 |
+
AI32LeU
|
| 96 |
+
AI32GeS
|
| 97 |
+
AI32GeU
|
| 98 |
+
|
| 99 |
+
AI64Eqz
|
| 100 |
+
AI64Eq
|
| 101 |
+
AI64Ne
|
| 102 |
+
AI64LtS
|
| 103 |
+
AI64LtU
|
| 104 |
+
AI64GtS
|
| 105 |
+
AI64GtU
|
| 106 |
+
AI64LeS
|
| 107 |
+
AI64LeU
|
| 108 |
+
AI64GeS
|
| 109 |
+
AI64GeU
|
| 110 |
+
|
| 111 |
+
AF32Eq
|
| 112 |
+
AF32Ne
|
| 113 |
+
AF32Lt
|
| 114 |
+
AF32Gt
|
| 115 |
+
AF32Le
|
| 116 |
+
AF32Ge
|
| 117 |
+
|
| 118 |
+
AF64Eq
|
| 119 |
+
AF64Ne
|
| 120 |
+
AF64Lt
|
| 121 |
+
AF64Gt
|
| 122 |
+
AF64Le
|
| 123 |
+
AF64Ge
|
| 124 |
+
|
| 125 |
+
AI32Clz
|
| 126 |
+
AI32Ctz
|
| 127 |
+
AI32Popcnt
|
| 128 |
+
AI32Add
|
| 129 |
+
AI32Sub
|
| 130 |
+
AI32Mul
|
| 131 |
+
AI32DivS
|
| 132 |
+
AI32DivU
|
| 133 |
+
AI32RemS
|
| 134 |
+
AI32RemU
|
| 135 |
+
AI32And
|
| 136 |
+
AI32Or
|
| 137 |
+
AI32Xor
|
| 138 |
+
AI32Shl
|
| 139 |
+
AI32ShrS
|
| 140 |
+
AI32ShrU
|
| 141 |
+
AI32Rotl
|
| 142 |
+
AI32Rotr
|
| 143 |
+
|
| 144 |
+
AI64Clz
|
| 145 |
+
AI64Ctz
|
| 146 |
+
AI64Popcnt
|
| 147 |
+
AI64Add
|
| 148 |
+
AI64Sub
|
| 149 |
+
AI64Mul
|
| 150 |
+
AI64DivS
|
| 151 |
+
AI64DivU
|
| 152 |
+
AI64RemS
|
| 153 |
+
AI64RemU
|
| 154 |
+
AI64And
|
| 155 |
+
AI64Or
|
| 156 |
+
AI64Xor
|
| 157 |
+
AI64Shl
|
| 158 |
+
AI64ShrS
|
| 159 |
+
AI64ShrU
|
| 160 |
+
AI64Rotl
|
| 161 |
+
AI64Rotr
|
| 162 |
+
|
| 163 |
+
AF32Abs
|
| 164 |
+
AF32Neg
|
| 165 |
+
AF32Ceil
|
| 166 |
+
AF32Floor
|
| 167 |
+
AF32Trunc
|
| 168 |
+
AF32Nearest
|
| 169 |
+
AF32Sqrt
|
| 170 |
+
AF32Add
|
| 171 |
+
AF32Sub
|
| 172 |
+
AF32Mul
|
| 173 |
+
AF32Div
|
| 174 |
+
AF32Min
|
| 175 |
+
AF32Max
|
| 176 |
+
AF32Copysign
|
| 177 |
+
|
| 178 |
+
AF64Abs
|
| 179 |
+
AF64Neg
|
| 180 |
+
AF64Ceil
|
| 181 |
+
AF64Floor
|
| 182 |
+
AF64Trunc
|
| 183 |
+
AF64Nearest
|
| 184 |
+
AF64Sqrt
|
| 185 |
+
AF64Add
|
| 186 |
+
AF64Sub
|
| 187 |
+
AF64Mul
|
| 188 |
+
AF64Div
|
| 189 |
+
AF64Min
|
| 190 |
+
AF64Max
|
| 191 |
+
AF64Copysign
|
| 192 |
+
|
| 193 |
+
AI32WrapI64
|
| 194 |
+
AI32TruncF32S
|
| 195 |
+
AI32TruncF32U
|
| 196 |
+
AI32TruncF64S
|
| 197 |
+
AI32TruncF64U
|
| 198 |
+
AI64ExtendI32S
|
| 199 |
+
AI64ExtendI32U
|
| 200 |
+
AI64TruncF32S
|
| 201 |
+
AI64TruncF32U
|
| 202 |
+
AI64TruncF64S
|
| 203 |
+
AI64TruncF64U
|
| 204 |
+
AF32ConvertI32S
|
| 205 |
+
AF32ConvertI32U
|
| 206 |
+
AF32ConvertI64S
|
| 207 |
+
AF32ConvertI64U
|
| 208 |
+
AF32DemoteF64
|
| 209 |
+
AF64ConvertI32S
|
| 210 |
+
AF64ConvertI32U
|
| 211 |
+
AF64ConvertI64S
|
| 212 |
+
AF64ConvertI64U
|
| 213 |
+
AF64PromoteF32
|
| 214 |
+
AI32ReinterpretF32
|
| 215 |
+
AI64ReinterpretF64
|
| 216 |
+
AF32ReinterpretI32
|
| 217 |
+
AF64ReinterpretI64
|
| 218 |
+
AI32Extend8S
|
| 219 |
+
AI32Extend16S
|
| 220 |
+
AI64Extend8S
|
| 221 |
+
AI64Extend16S
|
| 222 |
+
AI64Extend32S
|
| 223 |
+
|
| 224 |
+
AI32TruncSatF32S // opcode 0xFC 0x00
|
| 225 |
+
AI32TruncSatF32U
|
| 226 |
+
AI32TruncSatF64S
|
| 227 |
+
AI32TruncSatF64U
|
| 228 |
+
AI64TruncSatF32S
|
| 229 |
+
AI64TruncSatF32U
|
| 230 |
+
AI64TruncSatF64S
|
| 231 |
+
AI64TruncSatF64U
|
| 232 |
+
|
| 233 |
+
AMemoryInit
|
| 234 |
+
ADataDrop
|
| 235 |
+
AMemoryCopy
|
| 236 |
+
AMemoryFill
|
| 237 |
+
ATableInit
|
| 238 |
+
AElemDrop
|
| 239 |
+
ATableCopy
|
| 240 |
+
ATableGrow
|
| 241 |
+
ATableSize
|
| 242 |
+
ATableFill
|
| 243 |
+
|
| 244 |
+
ALast // Sentinel: End of low-level WebAssembly instructions.
|
| 245 |
+
|
| 246 |
+
ARESUMEPOINT
|
| 247 |
+
// ACALLNORESUME is a call which is not followed by a resume point.
|
| 248 |
+
// It is allowed inside of WebAssembly blocks, whereas obj.ACALL is not.
|
| 249 |
+
// However, it is not allowed to switch goroutines while inside of an ACALLNORESUME call.
|
| 250 |
+
ACALLNORESUME
|
| 251 |
+
|
| 252 |
+
ARETUNWIND
|
| 253 |
+
|
| 254 |
+
AMOVB
|
| 255 |
+
AMOVH
|
| 256 |
+
AMOVW
|
| 257 |
+
AMOVD
|
| 258 |
+
|
| 259 |
+
AWORD
|
| 260 |
+
ALAST
|
| 261 |
+
)
|
| 262 |
+
|
| 263 |
+
const (
|
| 264 |
+
REG_NONE = 0
|
| 265 |
+
)
|
| 266 |
+
|
| 267 |
+
const (
|
| 268 |
+
// globals
|
| 269 |
+
REG_SP = obj.RBaseWasm + iota // SP is currently 32-bit, until 64-bit memory operations are available
|
| 270 |
+
REG_CTXT
|
| 271 |
+
REG_g
|
| 272 |
+
// RET* are used by runtime.return0 and runtime.reflectcall. These functions pass return values in registers.
|
| 273 |
+
REG_RET0
|
| 274 |
+
REG_RET1
|
| 275 |
+
REG_RET2
|
| 276 |
+
REG_RET3
|
| 277 |
+
REG_PAUSE
|
| 278 |
+
|
| 279 |
+
// i32 locals
|
| 280 |
+
REG_R0
|
| 281 |
+
REG_R1
|
| 282 |
+
REG_R2
|
| 283 |
+
REG_R3
|
| 284 |
+
REG_R4
|
| 285 |
+
REG_R5
|
| 286 |
+
REG_R6
|
| 287 |
+
REG_R7
|
| 288 |
+
REG_R8
|
| 289 |
+
REG_R9
|
| 290 |
+
REG_R10
|
| 291 |
+
REG_R11
|
| 292 |
+
REG_R12
|
| 293 |
+
REG_R13
|
| 294 |
+
REG_R14
|
| 295 |
+
REG_R15
|
| 296 |
+
|
| 297 |
+
// f32 locals
|
| 298 |
+
REG_F0
|
| 299 |
+
REG_F1
|
| 300 |
+
REG_F2
|
| 301 |
+
REG_F3
|
| 302 |
+
REG_F4
|
| 303 |
+
REG_F5
|
| 304 |
+
REG_F6
|
| 305 |
+
REG_F7
|
| 306 |
+
REG_F8
|
| 307 |
+
REG_F9
|
| 308 |
+
REG_F10
|
| 309 |
+
REG_F11
|
| 310 |
+
REG_F12
|
| 311 |
+
REG_F13
|
| 312 |
+
REG_F14
|
| 313 |
+
REG_F15
|
| 314 |
+
|
| 315 |
+
// f64 locals
|
| 316 |
+
REG_F16
|
| 317 |
+
REG_F17
|
| 318 |
+
REG_F18
|
| 319 |
+
REG_F19
|
| 320 |
+
REG_F20
|
| 321 |
+
REG_F21
|
| 322 |
+
REG_F22
|
| 323 |
+
REG_F23
|
| 324 |
+
REG_F24
|
| 325 |
+
REG_F25
|
| 326 |
+
REG_F26
|
| 327 |
+
REG_F27
|
| 328 |
+
REG_F28
|
| 329 |
+
REG_F29
|
| 330 |
+
REG_F30
|
| 331 |
+
REG_F31
|
| 332 |
+
|
| 333 |
+
REG_PC_B // also first parameter, i32
|
| 334 |
+
|
| 335 |
+
MAXREG
|
| 336 |
+
|
| 337 |
+
MINREG = REG_SP
|
| 338 |
+
REGSP = REG_SP
|
| 339 |
+
REGCTXT = REG_CTXT
|
| 340 |
+
REGG = REG_g
|
| 341 |
+
)
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/wasm/anames.go
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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IT.
|
| 2 |
+
|
| 3 |
+
package wasm
|
| 4 |
+
|
| 5 |
+
import "cmd/internal/obj"
|
| 6 |
+
|
| 7 |
+
var Anames = []string{
|
| 8 |
+
obj.A_ARCHSPECIFIC: "Get",
|
| 9 |
+
"Set",
|
| 10 |
+
"Tee",
|
| 11 |
+
"Not",
|
| 12 |
+
"Unreachable",
|
| 13 |
+
"Nop",
|
| 14 |
+
"Block",
|
| 15 |
+
"Loop",
|
| 16 |
+
"If",
|
| 17 |
+
"Else",
|
| 18 |
+
"End",
|
| 19 |
+
"Br",
|
| 20 |
+
"BrIf",
|
| 21 |
+
"BrTable",
|
| 22 |
+
"Return",
|
| 23 |
+
"Call",
|
| 24 |
+
"CallIndirect",
|
| 25 |
+
"Drop",
|
| 26 |
+
"Select",
|
| 27 |
+
"LocalGet",
|
| 28 |
+
"LocalSet",
|
| 29 |
+
"LocalTee",
|
| 30 |
+
"GlobalGet",
|
| 31 |
+
"GlobalSet",
|
| 32 |
+
"I32Load",
|
| 33 |
+
"I64Load",
|
| 34 |
+
"F32Load",
|
| 35 |
+
"F64Load",
|
| 36 |
+
"I32Load8S",
|
| 37 |
+
"I32Load8U",
|
| 38 |
+
"I32Load16S",
|
| 39 |
+
"I32Load16U",
|
| 40 |
+
"I64Load8S",
|
| 41 |
+
"I64Load8U",
|
| 42 |
+
"I64Load16S",
|
| 43 |
+
"I64Load16U",
|
| 44 |
+
"I64Load32S",
|
| 45 |
+
"I64Load32U",
|
| 46 |
+
"I32Store",
|
| 47 |
+
"I64Store",
|
| 48 |
+
"F32Store",
|
| 49 |
+
"F64Store",
|
| 50 |
+
"I32Store8",
|
| 51 |
+
"I32Store16",
|
| 52 |
+
"I64Store8",
|
| 53 |
+
"I64Store16",
|
| 54 |
+
"I64Store32",
|
| 55 |
+
"CurrentMemory",
|
| 56 |
+
"GrowMemory",
|
| 57 |
+
"I32Const",
|
| 58 |
+
"I64Const",
|
| 59 |
+
"F32Const",
|
| 60 |
+
"F64Const",
|
| 61 |
+
"I32Eqz",
|
| 62 |
+
"I32Eq",
|
| 63 |
+
"I32Ne",
|
| 64 |
+
"I32LtS",
|
| 65 |
+
"I32LtU",
|
| 66 |
+
"I32GtS",
|
| 67 |
+
"I32GtU",
|
| 68 |
+
"I32LeS",
|
| 69 |
+
"I32LeU",
|
| 70 |
+
"I32GeS",
|
| 71 |
+
"I32GeU",
|
| 72 |
+
"I64Eqz",
|
| 73 |
+
"I64Eq",
|
| 74 |
+
"I64Ne",
|
| 75 |
+
"I64LtS",
|
| 76 |
+
"I64LtU",
|
| 77 |
+
"I64GtS",
|
| 78 |
+
"I64GtU",
|
| 79 |
+
"I64LeS",
|
| 80 |
+
"I64LeU",
|
| 81 |
+
"I64GeS",
|
| 82 |
+
"I64GeU",
|
| 83 |
+
"F32Eq",
|
| 84 |
+
"F32Ne",
|
| 85 |
+
"F32Lt",
|
| 86 |
+
"F32Gt",
|
| 87 |
+
"F32Le",
|
| 88 |
+
"F32Ge",
|
| 89 |
+
"F64Eq",
|
| 90 |
+
"F64Ne",
|
| 91 |
+
"F64Lt",
|
| 92 |
+
"F64Gt",
|
| 93 |
+
"F64Le",
|
| 94 |
+
"F64Ge",
|
| 95 |
+
"I32Clz",
|
| 96 |
+
"I32Ctz",
|
| 97 |
+
"I32Popcnt",
|
| 98 |
+
"I32Add",
|
| 99 |
+
"I32Sub",
|
| 100 |
+
"I32Mul",
|
| 101 |
+
"I32DivS",
|
| 102 |
+
"I32DivU",
|
| 103 |
+
"I32RemS",
|
| 104 |
+
"I32RemU",
|
| 105 |
+
"I32And",
|
| 106 |
+
"I32Or",
|
| 107 |
+
"I32Xor",
|
| 108 |
+
"I32Shl",
|
| 109 |
+
"I32ShrS",
|
| 110 |
+
"I32ShrU",
|
| 111 |
+
"I32Rotl",
|
| 112 |
+
"I32Rotr",
|
| 113 |
+
"I64Clz",
|
| 114 |
+
"I64Ctz",
|
| 115 |
+
"I64Popcnt",
|
| 116 |
+
"I64Add",
|
| 117 |
+
"I64Sub",
|
| 118 |
+
"I64Mul",
|
| 119 |
+
"I64DivS",
|
| 120 |
+
"I64DivU",
|
| 121 |
+
"I64RemS",
|
| 122 |
+
"I64RemU",
|
| 123 |
+
"I64And",
|
| 124 |
+
"I64Or",
|
| 125 |
+
"I64Xor",
|
| 126 |
+
"I64Shl",
|
| 127 |
+
"I64ShrS",
|
| 128 |
+
"I64ShrU",
|
| 129 |
+
"I64Rotl",
|
| 130 |
+
"I64Rotr",
|
| 131 |
+
"F32Abs",
|
| 132 |
+
"F32Neg",
|
| 133 |
+
"F32Ceil",
|
| 134 |
+
"F32Floor",
|
| 135 |
+
"F32Trunc",
|
| 136 |
+
"F32Nearest",
|
| 137 |
+
"F32Sqrt",
|
| 138 |
+
"F32Add",
|
| 139 |
+
"F32Sub",
|
| 140 |
+
"F32Mul",
|
| 141 |
+
"F32Div",
|
| 142 |
+
"F32Min",
|
| 143 |
+
"F32Max",
|
| 144 |
+
"F32Copysign",
|
| 145 |
+
"F64Abs",
|
| 146 |
+
"F64Neg",
|
| 147 |
+
"F64Ceil",
|
| 148 |
+
"F64Floor",
|
| 149 |
+
"F64Trunc",
|
| 150 |
+
"F64Nearest",
|
| 151 |
+
"F64Sqrt",
|
| 152 |
+
"F64Add",
|
| 153 |
+
"F64Sub",
|
| 154 |
+
"F64Mul",
|
| 155 |
+
"F64Div",
|
| 156 |
+
"F64Min",
|
| 157 |
+
"F64Max",
|
| 158 |
+
"F64Copysign",
|
| 159 |
+
"I32WrapI64",
|
| 160 |
+
"I32TruncF32S",
|
| 161 |
+
"I32TruncF32U",
|
| 162 |
+
"I32TruncF64S",
|
| 163 |
+
"I32TruncF64U",
|
| 164 |
+
"I64ExtendI32S",
|
| 165 |
+
"I64ExtendI32U",
|
| 166 |
+
"I64TruncF32S",
|
| 167 |
+
"I64TruncF32U",
|
| 168 |
+
"I64TruncF64S",
|
| 169 |
+
"I64TruncF64U",
|
| 170 |
+
"F32ConvertI32S",
|
| 171 |
+
"F32ConvertI32U",
|
| 172 |
+
"F32ConvertI64S",
|
| 173 |
+
"F32ConvertI64U",
|
| 174 |
+
"F32DemoteF64",
|
| 175 |
+
"F64ConvertI32S",
|
| 176 |
+
"F64ConvertI32U",
|
| 177 |
+
"F64ConvertI64S",
|
| 178 |
+
"F64ConvertI64U",
|
| 179 |
+
"F64PromoteF32",
|
| 180 |
+
"I32ReinterpretF32",
|
| 181 |
+
"I64ReinterpretF64",
|
| 182 |
+
"F32ReinterpretI32",
|
| 183 |
+
"F64ReinterpretI64",
|
| 184 |
+
"I32Extend8S",
|
| 185 |
+
"I32Extend16S",
|
| 186 |
+
"I64Extend8S",
|
| 187 |
+
"I64Extend16S",
|
| 188 |
+
"I64Extend32S",
|
| 189 |
+
"I32TruncSatF32S",
|
| 190 |
+
"I32TruncSatF32U",
|
| 191 |
+
"I32TruncSatF64S",
|
| 192 |
+
"I32TruncSatF64U",
|
| 193 |
+
"I64TruncSatF32S",
|
| 194 |
+
"I64TruncSatF32U",
|
| 195 |
+
"I64TruncSatF64S",
|
| 196 |
+
"I64TruncSatF64U",
|
| 197 |
+
"MemoryInit",
|
| 198 |
+
"DataDrop",
|
| 199 |
+
"MemoryCopy",
|
| 200 |
+
"MemoryFill",
|
| 201 |
+
"TableInit",
|
| 202 |
+
"ElemDrop",
|
| 203 |
+
"TableCopy",
|
| 204 |
+
"TableGrow",
|
| 205 |
+
"TableSize",
|
| 206 |
+
"TableFill",
|
| 207 |
+
"Last",
|
| 208 |
+
"RESUMEPOINT",
|
| 209 |
+
"CALLNORESUME",
|
| 210 |
+
"RETUNWIND",
|
| 211 |
+
"MOVB",
|
| 212 |
+
"MOVH",
|
| 213 |
+
"MOVW",
|
| 214 |
+
"MOVD",
|
| 215 |
+
"WORD",
|
| 216 |
+
"LAST",
|
| 217 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/wasm/wasmobj.go
ADDED
|
@@ -0,0 +1,1331 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2018 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
package wasm
|
| 6 |
+
|
| 7 |
+
import (
|
| 8 |
+
"bytes"
|
| 9 |
+
"cmd/internal/obj"
|
| 10 |
+
"cmd/internal/objabi"
|
| 11 |
+
"cmd/internal/sys"
|
| 12 |
+
"encoding/binary"
|
| 13 |
+
"fmt"
|
| 14 |
+
"internal/abi"
|
| 15 |
+
"io"
|
| 16 |
+
"math"
|
| 17 |
+
)
|
| 18 |
+
|
| 19 |
+
var Register = map[string]int16{
|
| 20 |
+
"SP": REG_SP,
|
| 21 |
+
"CTXT": REG_CTXT,
|
| 22 |
+
"g": REG_g,
|
| 23 |
+
"RET0": REG_RET0,
|
| 24 |
+
"RET1": REG_RET1,
|
| 25 |
+
"RET2": REG_RET2,
|
| 26 |
+
"RET3": REG_RET3,
|
| 27 |
+
"PAUSE": REG_PAUSE,
|
| 28 |
+
|
| 29 |
+
"R0": REG_R0,
|
| 30 |
+
"R1": REG_R1,
|
| 31 |
+
"R2": REG_R2,
|
| 32 |
+
"R3": REG_R3,
|
| 33 |
+
"R4": REG_R4,
|
| 34 |
+
"R5": REG_R5,
|
| 35 |
+
"R6": REG_R6,
|
| 36 |
+
"R7": REG_R7,
|
| 37 |
+
"R8": REG_R8,
|
| 38 |
+
"R9": REG_R9,
|
| 39 |
+
"R10": REG_R10,
|
| 40 |
+
"R11": REG_R11,
|
| 41 |
+
"R12": REG_R12,
|
| 42 |
+
"R13": REG_R13,
|
| 43 |
+
"R14": REG_R14,
|
| 44 |
+
"R15": REG_R15,
|
| 45 |
+
|
| 46 |
+
"F0": REG_F0,
|
| 47 |
+
"F1": REG_F1,
|
| 48 |
+
"F2": REG_F2,
|
| 49 |
+
"F3": REG_F3,
|
| 50 |
+
"F4": REG_F4,
|
| 51 |
+
"F5": REG_F5,
|
| 52 |
+
"F6": REG_F6,
|
| 53 |
+
"F7": REG_F7,
|
| 54 |
+
"F8": REG_F8,
|
| 55 |
+
"F9": REG_F9,
|
| 56 |
+
"F10": REG_F10,
|
| 57 |
+
"F11": REG_F11,
|
| 58 |
+
"F12": REG_F12,
|
| 59 |
+
"F13": REG_F13,
|
| 60 |
+
"F14": REG_F14,
|
| 61 |
+
"F15": REG_F15,
|
| 62 |
+
|
| 63 |
+
"F16": REG_F16,
|
| 64 |
+
"F17": REG_F17,
|
| 65 |
+
"F18": REG_F18,
|
| 66 |
+
"F19": REG_F19,
|
| 67 |
+
"F20": REG_F20,
|
| 68 |
+
"F21": REG_F21,
|
| 69 |
+
"F22": REG_F22,
|
| 70 |
+
"F23": REG_F23,
|
| 71 |
+
"F24": REG_F24,
|
| 72 |
+
"F25": REG_F25,
|
| 73 |
+
"F26": REG_F26,
|
| 74 |
+
"F27": REG_F27,
|
| 75 |
+
"F28": REG_F28,
|
| 76 |
+
"F29": REG_F29,
|
| 77 |
+
"F30": REG_F30,
|
| 78 |
+
"F31": REG_F31,
|
| 79 |
+
|
| 80 |
+
"PC_B": REG_PC_B,
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
var registerNames []string
|
| 84 |
+
|
| 85 |
+
func init() {
|
| 86 |
+
obj.RegisterRegister(MINREG, MAXREG, rconv)
|
| 87 |
+
obj.RegisterOpcode(obj.ABaseWasm, Anames)
|
| 88 |
+
|
| 89 |
+
registerNames = make([]string, MAXREG-MINREG)
|
| 90 |
+
for name, reg := range Register {
|
| 91 |
+
registerNames[reg-MINREG] = name
|
| 92 |
+
}
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
func rconv(r int) string {
|
| 96 |
+
return registerNames[r-MINREG]
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
var unaryDst = map[obj.As]bool{
|
| 100 |
+
ASet: true,
|
| 101 |
+
ATee: true,
|
| 102 |
+
ACall: true,
|
| 103 |
+
ACallIndirect: true,
|
| 104 |
+
ABr: true,
|
| 105 |
+
ABrIf: true,
|
| 106 |
+
ABrTable: true,
|
| 107 |
+
AI32Store: true,
|
| 108 |
+
AI64Store: true,
|
| 109 |
+
AF32Store: true,
|
| 110 |
+
AF64Store: true,
|
| 111 |
+
AI32Store8: true,
|
| 112 |
+
AI32Store16: true,
|
| 113 |
+
AI64Store8: true,
|
| 114 |
+
AI64Store16: true,
|
| 115 |
+
AI64Store32: true,
|
| 116 |
+
ACALLNORESUME: true,
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
var Linkwasm = obj.LinkArch{
|
| 120 |
+
Arch: sys.ArchWasm,
|
| 121 |
+
Init: instinit,
|
| 122 |
+
Preprocess: preprocess,
|
| 123 |
+
Assemble: assemble,
|
| 124 |
+
UnaryDst: unaryDst,
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
var (
|
| 128 |
+
morestack *obj.LSym
|
| 129 |
+
morestackNoCtxt *obj.LSym
|
| 130 |
+
sigpanic *obj.LSym
|
| 131 |
+
)
|
| 132 |
+
|
| 133 |
+
const (
|
| 134 |
+
/* mark flags */
|
| 135 |
+
WasmImport = 1 << 0
|
| 136 |
+
)
|
| 137 |
+
|
| 138 |
+
const (
|
| 139 |
+
// This is a special wasm module name that when used as the module name
|
| 140 |
+
// in //go:wasmimport will cause the generated code to pass the stack pointer
|
| 141 |
+
// directly to the imported function. In other words, any function that
|
| 142 |
+
// uses the gojs module understands the internal Go WASM ABI directly.
|
| 143 |
+
GojsModule = "gojs"
|
| 144 |
+
)
|
| 145 |
+
|
| 146 |
+
func instinit(ctxt *obj.Link) {
|
| 147 |
+
morestack = ctxt.Lookup("runtime.morestack")
|
| 148 |
+
morestackNoCtxt = ctxt.Lookup("runtime.morestack_noctxt")
|
| 149 |
+
sigpanic = ctxt.LookupABI("runtime.sigpanic", obj.ABIInternal)
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
func preprocess(ctxt *obj.Link, s *obj.LSym, newprog obj.ProgAlloc) {
|
| 153 |
+
appendp := func(p *obj.Prog, as obj.As, args ...obj.Addr) *obj.Prog {
|
| 154 |
+
if p.As != obj.ANOP {
|
| 155 |
+
p2 := obj.Appendp(p, newprog)
|
| 156 |
+
p2.Pc = p.Pc
|
| 157 |
+
p = p2
|
| 158 |
+
}
|
| 159 |
+
p.As = as
|
| 160 |
+
switch len(args) {
|
| 161 |
+
case 0:
|
| 162 |
+
p.From = obj.Addr{}
|
| 163 |
+
p.To = obj.Addr{}
|
| 164 |
+
case 1:
|
| 165 |
+
if unaryDst[as] {
|
| 166 |
+
p.From = obj.Addr{}
|
| 167 |
+
p.To = args[0]
|
| 168 |
+
} else {
|
| 169 |
+
p.From = args[0]
|
| 170 |
+
p.To = obj.Addr{}
|
| 171 |
+
}
|
| 172 |
+
case 2:
|
| 173 |
+
p.From = args[0]
|
| 174 |
+
p.To = args[1]
|
| 175 |
+
default:
|
| 176 |
+
panic("bad args")
|
| 177 |
+
}
|
| 178 |
+
return p
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
framesize := s.Func().Text.To.Offset
|
| 182 |
+
if framesize < 0 {
|
| 183 |
+
panic("bad framesize")
|
| 184 |
+
}
|
| 185 |
+
s.Func().Args = s.Func().Text.To.Val.(int32)
|
| 186 |
+
s.Func().Locals = int32(framesize)
|
| 187 |
+
|
| 188 |
+
// If the function exits just to call out to a wasmimport, then
|
| 189 |
+
// generate the code to translate from our internal Go-stack
|
| 190 |
+
// based call convention to the native webassembly call convention.
|
| 191 |
+
if wi := s.Func().WasmImport; wi != nil {
|
| 192 |
+
s.Func().WasmImportSym = wi.CreateSym(ctxt)
|
| 193 |
+
p := s.Func().Text
|
| 194 |
+
if p.Link != nil {
|
| 195 |
+
panic("wrapper functions for WASM imports should not have a body")
|
| 196 |
+
}
|
| 197 |
+
to := obj.Addr{
|
| 198 |
+
Type: obj.TYPE_MEM,
|
| 199 |
+
Name: obj.NAME_EXTERN,
|
| 200 |
+
Sym: s,
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
// If the module that the import is for is our magic "gojs" module, then this
|
| 204 |
+
// indicates that the called function understands the Go stack-based call convention
|
| 205 |
+
// so we just pass the stack pointer to it, knowing it will read the params directly
|
| 206 |
+
// off the stack and push the results into memory based on the stack pointer.
|
| 207 |
+
if wi.Module == GojsModule {
|
| 208 |
+
// The called function has a signature of 'func(sp int)'. It has access to the memory
|
| 209 |
+
// value somewhere to be able to address the memory based on the "sp" value.
|
| 210 |
+
|
| 211 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 212 |
+
p = appendp(p, ACall, to)
|
| 213 |
+
|
| 214 |
+
p.Mark = WasmImport
|
| 215 |
+
} else {
|
| 216 |
+
if len(wi.Results) > 1 {
|
| 217 |
+
// TODO(evanphx) implement support for the multi-value proposal:
|
| 218 |
+
// https://github.com/WebAssembly/multi-value/blob/master/proposals/multi-value/Overview.md
|
| 219 |
+
panic("invalid results type") // impossible until multi-value proposal has landed
|
| 220 |
+
}
|
| 221 |
+
if len(wi.Results) == 1 {
|
| 222 |
+
// If we have a result (rather than returning nothing at all), then
|
| 223 |
+
// we'll write the result to the Go stack relative to the current stack pointer.
|
| 224 |
+
// We cache the current stack pointer value on the wasm stack here and then use
|
| 225 |
+
// it after the Call instruction to store the result.
|
| 226 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 227 |
+
}
|
| 228 |
+
for _, f := range wi.Params {
|
| 229 |
+
// Each load instructions will consume the value of sp on the stack, so
|
| 230 |
+
// we need to read sp for each param. WASM appears to not have a stack dup instruction
|
| 231 |
+
// (a strange omission for a stack-based VM), if it did, we'd be using the dup here.
|
| 232 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 233 |
+
|
| 234 |
+
// Offset is the location of the param on the Go stack (ie relative to sp).
|
| 235 |
+
// Because of our call convention, the parameters are located an additional 8 bytes
|
| 236 |
+
// from sp because we store the return address as an int64 at the bottom of the stack.
|
| 237 |
+
// Ie the stack looks like [return_addr, param3, param2, param1, etc]
|
| 238 |
+
|
| 239 |
+
// Ergo, we add 8 to the true byte offset of the param to skip the return address.
|
| 240 |
+
loadOffset := f.Offset + 8
|
| 241 |
+
|
| 242 |
+
// We're reading the value from the Go stack onto the WASM stack and leaving it there
|
| 243 |
+
// for CALL to pick them up.
|
| 244 |
+
switch f.Type {
|
| 245 |
+
case obj.WasmI32:
|
| 246 |
+
p = appendp(p, AI32Load, constAddr(loadOffset))
|
| 247 |
+
case obj.WasmI64:
|
| 248 |
+
p = appendp(p, AI64Load, constAddr(loadOffset))
|
| 249 |
+
case obj.WasmF32:
|
| 250 |
+
p = appendp(p, AF32Load, constAddr(loadOffset))
|
| 251 |
+
case obj.WasmF64:
|
| 252 |
+
p = appendp(p, AF64Load, constAddr(loadOffset))
|
| 253 |
+
case obj.WasmPtr:
|
| 254 |
+
p = appendp(p, AI64Load, constAddr(loadOffset))
|
| 255 |
+
p = appendp(p, AI32WrapI64)
|
| 256 |
+
default:
|
| 257 |
+
panic("bad param type")
|
| 258 |
+
}
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
// The call instruction is marked as being for a wasm import so that a later phase
|
| 262 |
+
// will generate relocation information that allows us to patch this with then
|
| 263 |
+
// offset of the imported function in the wasm imports.
|
| 264 |
+
p = appendp(p, ACall, to)
|
| 265 |
+
p.Mark = WasmImport
|
| 266 |
+
|
| 267 |
+
if len(wi.Results) == 1 {
|
| 268 |
+
f := wi.Results[0]
|
| 269 |
+
|
| 270 |
+
// Much like with the params, we need to adjust the offset we store the result value
|
| 271 |
+
// to by 8 bytes to account for the return address on the Go stack.
|
| 272 |
+
storeOffset := f.Offset + 8
|
| 273 |
+
|
| 274 |
+
// This code is paired the code above that reads the stack pointer onto the wasm
|
| 275 |
+
// stack. We've done this so we have a consistent view of the sp value as it might
|
| 276 |
+
// be manipulated by the call and we want to ignore that manipulation here.
|
| 277 |
+
switch f.Type {
|
| 278 |
+
case obj.WasmI32:
|
| 279 |
+
p = appendp(p, AI32Store, constAddr(storeOffset))
|
| 280 |
+
case obj.WasmI64:
|
| 281 |
+
p = appendp(p, AI64Store, constAddr(storeOffset))
|
| 282 |
+
case obj.WasmF32:
|
| 283 |
+
p = appendp(p, AF32Store, constAddr(storeOffset))
|
| 284 |
+
case obj.WasmF64:
|
| 285 |
+
p = appendp(p, AF64Store, constAddr(storeOffset))
|
| 286 |
+
case obj.WasmPtr:
|
| 287 |
+
p = appendp(p, AI64ExtendI32U)
|
| 288 |
+
p = appendp(p, AI64Store, constAddr(storeOffset))
|
| 289 |
+
default:
|
| 290 |
+
panic("bad result type")
|
| 291 |
+
}
|
| 292 |
+
}
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
p = appendp(p, obj.ARET)
|
| 296 |
+
|
| 297 |
+
// It should be 0 already, but we'll set it to 0 anyway just to be sure
|
| 298 |
+
// that the code below which adds frame expansion code to the function body
|
| 299 |
+
// isn't run. We don't want the frame expansion code because our function
|
| 300 |
+
// body is just the code to translate and call the imported function.
|
| 301 |
+
framesize = 0
|
| 302 |
+
} else if s.Func().Text.From.Sym.Wrapper() {
|
| 303 |
+
// if g._panic != nil && g._panic.argp == FP {
|
| 304 |
+
// g._panic.argp = bottom-of-frame
|
| 305 |
+
// }
|
| 306 |
+
//
|
| 307 |
+
// MOVD g_panic(g), R0
|
| 308 |
+
// Get R0
|
| 309 |
+
// I64Eqz
|
| 310 |
+
// Not
|
| 311 |
+
// If
|
| 312 |
+
// Get SP
|
| 313 |
+
// I64ExtendI32U
|
| 314 |
+
// I64Const $framesize+8
|
| 315 |
+
// I64Add
|
| 316 |
+
// I64Load panic_argp(R0)
|
| 317 |
+
// I64Eq
|
| 318 |
+
// If
|
| 319 |
+
// MOVD SP, panic_argp(R0)
|
| 320 |
+
// End
|
| 321 |
+
// End
|
| 322 |
+
|
| 323 |
+
gpanic := obj.Addr{
|
| 324 |
+
Type: obj.TYPE_MEM,
|
| 325 |
+
Reg: REGG,
|
| 326 |
+
Offset: 4 * 8, // g_panic
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
panicargp := obj.Addr{
|
| 330 |
+
Type: obj.TYPE_MEM,
|
| 331 |
+
Reg: REG_R0,
|
| 332 |
+
Offset: 0, // panic.argp
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
p := s.Func().Text
|
| 336 |
+
p = appendp(p, AMOVD, gpanic, regAddr(REG_R0))
|
| 337 |
+
|
| 338 |
+
p = appendp(p, AGet, regAddr(REG_R0))
|
| 339 |
+
p = appendp(p, AI64Eqz)
|
| 340 |
+
p = appendp(p, ANot)
|
| 341 |
+
p = appendp(p, AIf)
|
| 342 |
+
|
| 343 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 344 |
+
p = appendp(p, AI64ExtendI32U)
|
| 345 |
+
p = appendp(p, AI64Const, constAddr(framesize+8))
|
| 346 |
+
p = appendp(p, AI64Add)
|
| 347 |
+
p = appendp(p, AI64Load, panicargp)
|
| 348 |
+
|
| 349 |
+
p = appendp(p, AI64Eq)
|
| 350 |
+
p = appendp(p, AIf)
|
| 351 |
+
p = appendp(p, AMOVD, regAddr(REG_SP), panicargp)
|
| 352 |
+
p = appendp(p, AEnd)
|
| 353 |
+
|
| 354 |
+
p = appendp(p, AEnd)
|
| 355 |
+
}
|
| 356 |
+
|
| 357 |
+
if framesize > 0 {
|
| 358 |
+
p := s.Func().Text
|
| 359 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 360 |
+
p = appendp(p, AI32Const, constAddr(framesize))
|
| 361 |
+
p = appendp(p, AI32Sub)
|
| 362 |
+
p = appendp(p, ASet, regAddr(REG_SP))
|
| 363 |
+
p.Spadj = int32(framesize)
|
| 364 |
+
}
|
| 365 |
+
|
| 366 |
+
// If the framesize is 0, then imply nosplit because it's a specially
|
| 367 |
+
// generated function.
|
| 368 |
+
needMoreStack := framesize > 0 && !s.Func().Text.From.Sym.NoSplit()
|
| 369 |
+
|
| 370 |
+
// If the maymorestack debug option is enabled, insert the
|
| 371 |
+
// call to maymorestack *before* processing resume points so
|
| 372 |
+
// we can construct a resume point after maymorestack for
|
| 373 |
+
// morestack to resume at.
|
| 374 |
+
var pMorestack = s.Func().Text
|
| 375 |
+
if needMoreStack && ctxt.Flag_maymorestack != "" {
|
| 376 |
+
p := pMorestack
|
| 377 |
+
|
| 378 |
+
// Save REGCTXT on the stack.
|
| 379 |
+
const tempFrame = 8
|
| 380 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 381 |
+
p = appendp(p, AI32Const, constAddr(tempFrame))
|
| 382 |
+
p = appendp(p, AI32Sub)
|
| 383 |
+
p = appendp(p, ASet, regAddr(REG_SP))
|
| 384 |
+
p.Spadj = tempFrame
|
| 385 |
+
ctxtp := obj.Addr{
|
| 386 |
+
Type: obj.TYPE_MEM,
|
| 387 |
+
Reg: REG_SP,
|
| 388 |
+
Offset: 0,
|
| 389 |
+
}
|
| 390 |
+
p = appendp(p, AMOVD, regAddr(REGCTXT), ctxtp)
|
| 391 |
+
|
| 392 |
+
// maymorestack must not itself preempt because we
|
| 393 |
+
// don't have full stack information, so this can be
|
| 394 |
+
// ACALLNORESUME.
|
| 395 |
+
p = appendp(p, ACALLNORESUME, constAddr(0))
|
| 396 |
+
// See ../x86/obj6.go
|
| 397 |
+
sym := ctxt.LookupABI(ctxt.Flag_maymorestack, s.ABI())
|
| 398 |
+
p.To = obj.Addr{Type: obj.TYPE_MEM, Name: obj.NAME_EXTERN, Sym: sym}
|
| 399 |
+
|
| 400 |
+
// Restore REGCTXT.
|
| 401 |
+
p = appendp(p, AMOVD, ctxtp, regAddr(REGCTXT))
|
| 402 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 403 |
+
p = appendp(p, AI32Const, constAddr(tempFrame))
|
| 404 |
+
p = appendp(p, AI32Add)
|
| 405 |
+
p = appendp(p, ASet, regAddr(REG_SP))
|
| 406 |
+
p.Spadj = -tempFrame
|
| 407 |
+
|
| 408 |
+
// Add an explicit ARESUMEPOINT after maymorestack for
|
| 409 |
+
// morestack to resume at.
|
| 410 |
+
pMorestack = appendp(p, ARESUMEPOINT)
|
| 411 |
+
}
|
| 412 |
+
|
| 413 |
+
// Introduce resume points for CALL instructions
|
| 414 |
+
// and collect other explicit resume points.
|
| 415 |
+
numResumePoints := 0
|
| 416 |
+
explicitBlockDepth := 0
|
| 417 |
+
pc := int64(0) // pc is only incremented when necessary, this avoids bloat of the BrTable instruction
|
| 418 |
+
var tableIdxs []uint64
|
| 419 |
+
tablePC := int64(0)
|
| 420 |
+
base := ctxt.PosTable.Pos(s.Func().Text.Pos).Base()
|
| 421 |
+
for p := s.Func().Text; p != nil; p = p.Link {
|
| 422 |
+
prevBase := base
|
| 423 |
+
base = ctxt.PosTable.Pos(p.Pos).Base()
|
| 424 |
+
switch p.As {
|
| 425 |
+
case ABlock, ALoop, AIf:
|
| 426 |
+
explicitBlockDepth++
|
| 427 |
+
|
| 428 |
+
case AEnd:
|
| 429 |
+
if explicitBlockDepth == 0 {
|
| 430 |
+
panic("End without block")
|
| 431 |
+
}
|
| 432 |
+
explicitBlockDepth--
|
| 433 |
+
|
| 434 |
+
case ARESUMEPOINT:
|
| 435 |
+
if explicitBlockDepth != 0 {
|
| 436 |
+
panic("RESUME can only be used on toplevel")
|
| 437 |
+
}
|
| 438 |
+
p.As = AEnd
|
| 439 |
+
for tablePC <= pc {
|
| 440 |
+
tableIdxs = append(tableIdxs, uint64(numResumePoints))
|
| 441 |
+
tablePC++
|
| 442 |
+
}
|
| 443 |
+
numResumePoints++
|
| 444 |
+
pc++
|
| 445 |
+
|
| 446 |
+
case obj.ACALL:
|
| 447 |
+
if explicitBlockDepth != 0 {
|
| 448 |
+
panic("CALL can only be used on toplevel, try CALLNORESUME instead")
|
| 449 |
+
}
|
| 450 |
+
appendp(p, ARESUMEPOINT)
|
| 451 |
+
}
|
| 452 |
+
|
| 453 |
+
p.Pc = pc
|
| 454 |
+
|
| 455 |
+
// Increase pc whenever some pc-value table needs a new entry. Don't increase it
|
| 456 |
+
// more often to avoid bloat of the BrTable instruction.
|
| 457 |
+
// The "base != prevBase" condition detects inlined instructions. They are an
|
| 458 |
+
// implicit call, so entering and leaving this section affects the stack trace.
|
| 459 |
+
if p.As == ACALLNORESUME || p.As == obj.ANOP || p.As == ANop || p.Spadj != 0 || base != prevBase {
|
| 460 |
+
pc++
|
| 461 |
+
if p.To.Sym == sigpanic {
|
| 462 |
+
// The panic stack trace expects the PC at the call of sigpanic,
|
| 463 |
+
// not the next one. However, runtime.Caller subtracts 1 from the
|
| 464 |
+
// PC. To make both PC and PC-1 work (have the same line number),
|
| 465 |
+
// we advance the PC by 2 at sigpanic.
|
| 466 |
+
pc++
|
| 467 |
+
}
|
| 468 |
+
}
|
| 469 |
+
}
|
| 470 |
+
tableIdxs = append(tableIdxs, uint64(numResumePoints))
|
| 471 |
+
s.Size = pc + 1
|
| 472 |
+
|
| 473 |
+
if needMoreStack {
|
| 474 |
+
p := pMorestack
|
| 475 |
+
|
| 476 |
+
if framesize <= abi.StackSmall {
|
| 477 |
+
// small stack: SP <= stackguard
|
| 478 |
+
// Get SP
|
| 479 |
+
// Get g
|
| 480 |
+
// I32WrapI64
|
| 481 |
+
// I32Load $stackguard0
|
| 482 |
+
// I32GtU
|
| 483 |
+
|
| 484 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 485 |
+
p = appendp(p, AGet, regAddr(REGG))
|
| 486 |
+
p = appendp(p, AI32WrapI64)
|
| 487 |
+
p = appendp(p, AI32Load, constAddr(2*int64(ctxt.Arch.PtrSize))) // G.stackguard0
|
| 488 |
+
p = appendp(p, AI32LeU)
|
| 489 |
+
} else {
|
| 490 |
+
// large stack: SP-framesize <= stackguard-StackSmall
|
| 491 |
+
// SP <= stackguard+(framesize-StackSmall)
|
| 492 |
+
// Get SP
|
| 493 |
+
// Get g
|
| 494 |
+
// I32WrapI64
|
| 495 |
+
// I32Load $stackguard0
|
| 496 |
+
// I32Const $(framesize-StackSmall)
|
| 497 |
+
// I32Add
|
| 498 |
+
// I32GtU
|
| 499 |
+
|
| 500 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 501 |
+
p = appendp(p, AGet, regAddr(REGG))
|
| 502 |
+
p = appendp(p, AI32WrapI64)
|
| 503 |
+
p = appendp(p, AI32Load, constAddr(2*int64(ctxt.Arch.PtrSize))) // G.stackguard0
|
| 504 |
+
p = appendp(p, AI32Const, constAddr(framesize-abi.StackSmall))
|
| 505 |
+
p = appendp(p, AI32Add)
|
| 506 |
+
p = appendp(p, AI32LeU)
|
| 507 |
+
}
|
| 508 |
+
// TODO(neelance): handle wraparound case
|
| 509 |
+
|
| 510 |
+
p = appendp(p, AIf)
|
| 511 |
+
// This CALL does *not* have a resume point after it
|
| 512 |
+
// (we already inserted all of the resume points). As
|
| 513 |
+
// a result, morestack will resume at the *previous*
|
| 514 |
+
// resume point (typically, the beginning of the
|
| 515 |
+
// function) and perform the morestack check again.
|
| 516 |
+
// This is why we don't need an explicit loop like
|
| 517 |
+
// other architectures.
|
| 518 |
+
p = appendp(p, obj.ACALL, constAddr(0))
|
| 519 |
+
if s.Func().Text.From.Sym.NeedCtxt() {
|
| 520 |
+
p.To = obj.Addr{Type: obj.TYPE_MEM, Name: obj.NAME_EXTERN, Sym: morestack}
|
| 521 |
+
} else {
|
| 522 |
+
p.To = obj.Addr{Type: obj.TYPE_MEM, Name: obj.NAME_EXTERN, Sym: morestackNoCtxt}
|
| 523 |
+
}
|
| 524 |
+
p = appendp(p, AEnd)
|
| 525 |
+
}
|
| 526 |
+
|
| 527 |
+
// record the branches targeting the entry loop and the unwind exit,
|
| 528 |
+
// their targets with be filled in later
|
| 529 |
+
var entryPointLoopBranches []*obj.Prog
|
| 530 |
+
var unwindExitBranches []*obj.Prog
|
| 531 |
+
currentDepth := 0
|
| 532 |
+
for p := s.Func().Text; p != nil; p = p.Link {
|
| 533 |
+
switch p.As {
|
| 534 |
+
case ABlock, ALoop, AIf:
|
| 535 |
+
currentDepth++
|
| 536 |
+
case AEnd:
|
| 537 |
+
currentDepth--
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
switch p.As {
|
| 541 |
+
case obj.AJMP:
|
| 542 |
+
jmp := *p
|
| 543 |
+
p.As = obj.ANOP
|
| 544 |
+
|
| 545 |
+
if jmp.To.Type == obj.TYPE_BRANCH {
|
| 546 |
+
// jump to basic block
|
| 547 |
+
p = appendp(p, AI32Const, constAddr(jmp.To.Val.(*obj.Prog).Pc))
|
| 548 |
+
p = appendp(p, ASet, regAddr(REG_PC_B)) // write next basic block to PC_B
|
| 549 |
+
p = appendp(p, ABr) // jump to beginning of entryPointLoop
|
| 550 |
+
entryPointLoopBranches = append(entryPointLoopBranches, p)
|
| 551 |
+
break
|
| 552 |
+
}
|
| 553 |
+
|
| 554 |
+
// low-level WebAssembly call to function
|
| 555 |
+
switch jmp.To.Type {
|
| 556 |
+
case obj.TYPE_MEM:
|
| 557 |
+
if !notUsePC_B[jmp.To.Sym.Name] {
|
| 558 |
+
// Set PC_B parameter to function entry.
|
| 559 |
+
p = appendp(p, AI32Const, constAddr(0))
|
| 560 |
+
}
|
| 561 |
+
p = appendp(p, ACall, jmp.To)
|
| 562 |
+
|
| 563 |
+
case obj.TYPE_NONE:
|
| 564 |
+
// (target PC is on stack)
|
| 565 |
+
p = appendp(p, AI32WrapI64)
|
| 566 |
+
p = appendp(p, AI32Const, constAddr(16)) // only needs PC_F bits (16-31), PC_B bits (0-15) are zero
|
| 567 |
+
p = appendp(p, AI32ShrU)
|
| 568 |
+
|
| 569 |
+
// Set PC_B parameter to function entry.
|
| 570 |
+
// We need to push this before pushing the target PC_F,
|
| 571 |
+
// so temporarily pop PC_F, using our REG_PC_B as a
|
| 572 |
+
// scratch register, and push it back after pushing 0.
|
| 573 |
+
p = appendp(p, ASet, regAddr(REG_PC_B))
|
| 574 |
+
p = appendp(p, AI32Const, constAddr(0))
|
| 575 |
+
p = appendp(p, AGet, regAddr(REG_PC_B))
|
| 576 |
+
|
| 577 |
+
p = appendp(p, ACallIndirect)
|
| 578 |
+
|
| 579 |
+
default:
|
| 580 |
+
panic("bad target for JMP")
|
| 581 |
+
}
|
| 582 |
+
|
| 583 |
+
p = appendp(p, AReturn)
|
| 584 |
+
|
| 585 |
+
case obj.ACALL, ACALLNORESUME:
|
| 586 |
+
call := *p
|
| 587 |
+
p.As = obj.ANOP
|
| 588 |
+
|
| 589 |
+
pcAfterCall := call.Link.Pc
|
| 590 |
+
if call.To.Sym == sigpanic {
|
| 591 |
+
pcAfterCall-- // sigpanic expects to be called without advancing the pc
|
| 592 |
+
}
|
| 593 |
+
|
| 594 |
+
// SP -= 8
|
| 595 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 596 |
+
p = appendp(p, AI32Const, constAddr(8))
|
| 597 |
+
p = appendp(p, AI32Sub)
|
| 598 |
+
p = appendp(p, ASet, regAddr(REG_SP))
|
| 599 |
+
|
| 600 |
+
// write return address to Go stack
|
| 601 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 602 |
+
p = appendp(p, AI64Const, obj.Addr{
|
| 603 |
+
Type: obj.TYPE_ADDR,
|
| 604 |
+
Name: obj.NAME_EXTERN,
|
| 605 |
+
Sym: s, // PC_F
|
| 606 |
+
Offset: pcAfterCall, // PC_B
|
| 607 |
+
})
|
| 608 |
+
p = appendp(p, AI64Store, constAddr(0))
|
| 609 |
+
|
| 610 |
+
// low-level WebAssembly call to function
|
| 611 |
+
switch call.To.Type {
|
| 612 |
+
case obj.TYPE_MEM:
|
| 613 |
+
if !notUsePC_B[call.To.Sym.Name] {
|
| 614 |
+
// Set PC_B parameter to function entry.
|
| 615 |
+
p = appendp(p, AI32Const, constAddr(0))
|
| 616 |
+
}
|
| 617 |
+
p = appendp(p, ACall, call.To)
|
| 618 |
+
|
| 619 |
+
case obj.TYPE_NONE:
|
| 620 |
+
// (target PC is on stack)
|
| 621 |
+
p = appendp(p, AI32WrapI64)
|
| 622 |
+
p = appendp(p, AI32Const, constAddr(16)) // only needs PC_F bits (16-31), PC_B bits (0-15) are zero
|
| 623 |
+
p = appendp(p, AI32ShrU)
|
| 624 |
+
|
| 625 |
+
// Set PC_B parameter to function entry.
|
| 626 |
+
// We need to push this before pushing the target PC_F,
|
| 627 |
+
// so temporarily pop PC_F, using our PC_B as a
|
| 628 |
+
// scratch register, and push it back after pushing 0.
|
| 629 |
+
p = appendp(p, ASet, regAddr(REG_PC_B))
|
| 630 |
+
p = appendp(p, AI32Const, constAddr(0))
|
| 631 |
+
p = appendp(p, AGet, regAddr(REG_PC_B))
|
| 632 |
+
|
| 633 |
+
p = appendp(p, ACallIndirect)
|
| 634 |
+
|
| 635 |
+
default:
|
| 636 |
+
panic("bad target for CALL")
|
| 637 |
+
}
|
| 638 |
+
|
| 639 |
+
// return value of call is on the top of the stack, indicating whether to unwind the WebAssembly stack
|
| 640 |
+
if call.As == ACALLNORESUME && call.To.Sym != sigpanic { // sigpanic unwinds the stack, but it never resumes
|
| 641 |
+
// trying to unwind WebAssembly stack but call has no resume point, terminate with error
|
| 642 |
+
p = appendp(p, AIf)
|
| 643 |
+
p = appendp(p, obj.AUNDEF)
|
| 644 |
+
p = appendp(p, AEnd)
|
| 645 |
+
} else {
|
| 646 |
+
// unwinding WebAssembly stack to switch goroutine, return 1
|
| 647 |
+
p = appendp(p, ABrIf)
|
| 648 |
+
unwindExitBranches = append(unwindExitBranches, p)
|
| 649 |
+
}
|
| 650 |
+
|
| 651 |
+
case obj.ARET, ARETUNWIND:
|
| 652 |
+
ret := *p
|
| 653 |
+
p.As = obj.ANOP
|
| 654 |
+
|
| 655 |
+
if framesize > 0 {
|
| 656 |
+
// SP += framesize
|
| 657 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 658 |
+
p = appendp(p, AI32Const, constAddr(framesize))
|
| 659 |
+
p = appendp(p, AI32Add)
|
| 660 |
+
p = appendp(p, ASet, regAddr(REG_SP))
|
| 661 |
+
// TODO(neelance): This should theoretically set Spadj, but it only works without.
|
| 662 |
+
// p.Spadj = int32(-framesize)
|
| 663 |
+
}
|
| 664 |
+
|
| 665 |
+
if ret.To.Type == obj.TYPE_MEM {
|
| 666 |
+
// Set PC_B parameter to function entry.
|
| 667 |
+
p = appendp(p, AI32Const, constAddr(0))
|
| 668 |
+
|
| 669 |
+
// low-level WebAssembly call to function
|
| 670 |
+
p = appendp(p, ACall, ret.To)
|
| 671 |
+
p = appendp(p, AReturn)
|
| 672 |
+
break
|
| 673 |
+
}
|
| 674 |
+
|
| 675 |
+
// SP += 8
|
| 676 |
+
p = appendp(p, AGet, regAddr(REG_SP))
|
| 677 |
+
p = appendp(p, AI32Const, constAddr(8))
|
| 678 |
+
p = appendp(p, AI32Add)
|
| 679 |
+
p = appendp(p, ASet, regAddr(REG_SP))
|
| 680 |
+
|
| 681 |
+
if ret.As == ARETUNWIND {
|
| 682 |
+
// function needs to unwind the WebAssembly stack, return 1
|
| 683 |
+
p = appendp(p, AI32Const, constAddr(1))
|
| 684 |
+
p = appendp(p, AReturn)
|
| 685 |
+
break
|
| 686 |
+
}
|
| 687 |
+
|
| 688 |
+
// not unwinding the WebAssembly stack, return 0
|
| 689 |
+
p = appendp(p, AI32Const, constAddr(0))
|
| 690 |
+
p = appendp(p, AReturn)
|
| 691 |
+
}
|
| 692 |
+
}
|
| 693 |
+
|
| 694 |
+
for p := s.Func().Text; p != nil; p = p.Link {
|
| 695 |
+
switch p.From.Name {
|
| 696 |
+
case obj.NAME_AUTO:
|
| 697 |
+
p.From.Offset += framesize
|
| 698 |
+
case obj.NAME_PARAM:
|
| 699 |
+
p.From.Reg = REG_SP
|
| 700 |
+
p.From.Offset += framesize + 8 // parameters are after the frame and the 8-byte return address
|
| 701 |
+
}
|
| 702 |
+
|
| 703 |
+
switch p.To.Name {
|
| 704 |
+
case obj.NAME_AUTO:
|
| 705 |
+
p.To.Offset += framesize
|
| 706 |
+
case obj.NAME_PARAM:
|
| 707 |
+
p.To.Reg = REG_SP
|
| 708 |
+
p.To.Offset += framesize + 8 // parameters are after the frame and the 8-byte return address
|
| 709 |
+
}
|
| 710 |
+
|
| 711 |
+
switch p.As {
|
| 712 |
+
case AGet:
|
| 713 |
+
if p.From.Type == obj.TYPE_ADDR {
|
| 714 |
+
get := *p
|
| 715 |
+
p.As = obj.ANOP
|
| 716 |
+
|
| 717 |
+
switch get.From.Name {
|
| 718 |
+
case obj.NAME_EXTERN:
|
| 719 |
+
p = appendp(p, AI64Const, get.From)
|
| 720 |
+
case obj.NAME_AUTO, obj.NAME_PARAM:
|
| 721 |
+
p = appendp(p, AGet, regAddr(get.From.Reg))
|
| 722 |
+
if get.From.Reg == REG_SP {
|
| 723 |
+
p = appendp(p, AI64ExtendI32U)
|
| 724 |
+
}
|
| 725 |
+
if get.From.Offset != 0 {
|
| 726 |
+
p = appendp(p, AI64Const, constAddr(get.From.Offset))
|
| 727 |
+
p = appendp(p, AI64Add)
|
| 728 |
+
}
|
| 729 |
+
default:
|
| 730 |
+
panic("bad Get: invalid name")
|
| 731 |
+
}
|
| 732 |
+
}
|
| 733 |
+
|
| 734 |
+
case AI32Load, AI64Load, AF32Load, AF64Load, AI32Load8S, AI32Load8U, AI32Load16S, AI32Load16U, AI64Load8S, AI64Load8U, AI64Load16S, AI64Load16U, AI64Load32S, AI64Load32U:
|
| 735 |
+
if p.From.Type == obj.TYPE_MEM {
|
| 736 |
+
as := p.As
|
| 737 |
+
from := p.From
|
| 738 |
+
|
| 739 |
+
p.As = AGet
|
| 740 |
+
p.From = regAddr(from.Reg)
|
| 741 |
+
|
| 742 |
+
if from.Reg != REG_SP {
|
| 743 |
+
p = appendp(p, AI32WrapI64)
|
| 744 |
+
}
|
| 745 |
+
|
| 746 |
+
p = appendp(p, as, constAddr(from.Offset))
|
| 747 |
+
}
|
| 748 |
+
|
| 749 |
+
case AMOVB, AMOVH, AMOVW, AMOVD:
|
| 750 |
+
mov := *p
|
| 751 |
+
p.As = obj.ANOP
|
| 752 |
+
|
| 753 |
+
var loadAs obj.As
|
| 754 |
+
var storeAs obj.As
|
| 755 |
+
switch mov.As {
|
| 756 |
+
case AMOVB:
|
| 757 |
+
loadAs = AI64Load8U
|
| 758 |
+
storeAs = AI64Store8
|
| 759 |
+
case AMOVH:
|
| 760 |
+
loadAs = AI64Load16U
|
| 761 |
+
storeAs = AI64Store16
|
| 762 |
+
case AMOVW:
|
| 763 |
+
loadAs = AI64Load32U
|
| 764 |
+
storeAs = AI64Store32
|
| 765 |
+
case AMOVD:
|
| 766 |
+
loadAs = AI64Load
|
| 767 |
+
storeAs = AI64Store
|
| 768 |
+
}
|
| 769 |
+
|
| 770 |
+
appendValue := func() {
|
| 771 |
+
switch mov.From.Type {
|
| 772 |
+
case obj.TYPE_CONST:
|
| 773 |
+
p = appendp(p, AI64Const, constAddr(mov.From.Offset))
|
| 774 |
+
|
| 775 |
+
case obj.TYPE_ADDR:
|
| 776 |
+
switch mov.From.Name {
|
| 777 |
+
case obj.NAME_NONE, obj.NAME_PARAM, obj.NAME_AUTO:
|
| 778 |
+
p = appendp(p, AGet, regAddr(mov.From.Reg))
|
| 779 |
+
if mov.From.Reg == REG_SP {
|
| 780 |
+
p = appendp(p, AI64ExtendI32U)
|
| 781 |
+
}
|
| 782 |
+
p = appendp(p, AI64Const, constAddr(mov.From.Offset))
|
| 783 |
+
p = appendp(p, AI64Add)
|
| 784 |
+
case obj.NAME_EXTERN:
|
| 785 |
+
p = appendp(p, AI64Const, mov.From)
|
| 786 |
+
default:
|
| 787 |
+
panic("bad name for MOV")
|
| 788 |
+
}
|
| 789 |
+
|
| 790 |
+
case obj.TYPE_REG:
|
| 791 |
+
p = appendp(p, AGet, mov.From)
|
| 792 |
+
if mov.From.Reg == REG_SP {
|
| 793 |
+
p = appendp(p, AI64ExtendI32U)
|
| 794 |
+
}
|
| 795 |
+
|
| 796 |
+
case obj.TYPE_MEM:
|
| 797 |
+
p = appendp(p, AGet, regAddr(mov.From.Reg))
|
| 798 |
+
if mov.From.Reg != REG_SP {
|
| 799 |
+
p = appendp(p, AI32WrapI64)
|
| 800 |
+
}
|
| 801 |
+
p = appendp(p, loadAs, constAddr(mov.From.Offset))
|
| 802 |
+
|
| 803 |
+
default:
|
| 804 |
+
panic("bad MOV type")
|
| 805 |
+
}
|
| 806 |
+
}
|
| 807 |
+
|
| 808 |
+
switch mov.To.Type {
|
| 809 |
+
case obj.TYPE_REG:
|
| 810 |
+
appendValue()
|
| 811 |
+
if mov.To.Reg == REG_SP {
|
| 812 |
+
p = appendp(p, AI32WrapI64)
|
| 813 |
+
}
|
| 814 |
+
p = appendp(p, ASet, mov.To)
|
| 815 |
+
|
| 816 |
+
case obj.TYPE_MEM:
|
| 817 |
+
switch mov.To.Name {
|
| 818 |
+
case obj.NAME_NONE, obj.NAME_PARAM:
|
| 819 |
+
p = appendp(p, AGet, regAddr(mov.To.Reg))
|
| 820 |
+
if mov.To.Reg != REG_SP {
|
| 821 |
+
p = appendp(p, AI32WrapI64)
|
| 822 |
+
}
|
| 823 |
+
case obj.NAME_EXTERN:
|
| 824 |
+
p = appendp(p, AI32Const, obj.Addr{Type: obj.TYPE_ADDR, Name: obj.NAME_EXTERN, Sym: mov.To.Sym})
|
| 825 |
+
default:
|
| 826 |
+
panic("bad MOV name")
|
| 827 |
+
}
|
| 828 |
+
appendValue()
|
| 829 |
+
p = appendp(p, storeAs, constAddr(mov.To.Offset))
|
| 830 |
+
|
| 831 |
+
default:
|
| 832 |
+
panic("bad MOV type")
|
| 833 |
+
}
|
| 834 |
+
}
|
| 835 |
+
}
|
| 836 |
+
|
| 837 |
+
{
|
| 838 |
+
p := s.Func().Text
|
| 839 |
+
if len(unwindExitBranches) > 0 {
|
| 840 |
+
p = appendp(p, ABlock) // unwindExit, used to return 1 when unwinding the stack
|
| 841 |
+
for _, b := range unwindExitBranches {
|
| 842 |
+
b.To = obj.Addr{Type: obj.TYPE_BRANCH, Val: p}
|
| 843 |
+
}
|
| 844 |
+
}
|
| 845 |
+
if len(entryPointLoopBranches) > 0 {
|
| 846 |
+
p = appendp(p, ALoop) // entryPointLoop, used to jump between basic blocks
|
| 847 |
+
for _, b := range entryPointLoopBranches {
|
| 848 |
+
b.To = obj.Addr{Type: obj.TYPE_BRANCH, Val: p}
|
| 849 |
+
}
|
| 850 |
+
}
|
| 851 |
+
if numResumePoints > 0 {
|
| 852 |
+
// Add Block instructions for resume points and BrTable to jump to selected resume point.
|
| 853 |
+
for i := 0; i < numResumePoints+1; i++ {
|
| 854 |
+
p = appendp(p, ABlock)
|
| 855 |
+
}
|
| 856 |
+
p = appendp(p, AGet, regAddr(REG_PC_B)) // read next basic block from PC_B
|
| 857 |
+
p = appendp(p, ABrTable, obj.Addr{Val: tableIdxs})
|
| 858 |
+
p = appendp(p, AEnd) // end of Block
|
| 859 |
+
}
|
| 860 |
+
for p.Link != nil {
|
| 861 |
+
p = p.Link // function instructions
|
| 862 |
+
}
|
| 863 |
+
if len(entryPointLoopBranches) > 0 {
|
| 864 |
+
p = appendp(p, AEnd) // end of entryPointLoop
|
| 865 |
+
}
|
| 866 |
+
p = appendp(p, obj.AUNDEF)
|
| 867 |
+
if len(unwindExitBranches) > 0 {
|
| 868 |
+
p = appendp(p, AEnd) // end of unwindExit
|
| 869 |
+
p = appendp(p, AI32Const, constAddr(1))
|
| 870 |
+
}
|
| 871 |
+
}
|
| 872 |
+
|
| 873 |
+
currentDepth = 0
|
| 874 |
+
blockDepths := make(map[*obj.Prog]int)
|
| 875 |
+
for p := s.Func().Text; p != nil; p = p.Link {
|
| 876 |
+
switch p.As {
|
| 877 |
+
case ABlock, ALoop, AIf:
|
| 878 |
+
currentDepth++
|
| 879 |
+
blockDepths[p] = currentDepth
|
| 880 |
+
case AEnd:
|
| 881 |
+
currentDepth--
|
| 882 |
+
}
|
| 883 |
+
|
| 884 |
+
switch p.As {
|
| 885 |
+
case ABr, ABrIf:
|
| 886 |
+
if p.To.Type == obj.TYPE_BRANCH {
|
| 887 |
+
blockDepth, ok := blockDepths[p.To.Val.(*obj.Prog)]
|
| 888 |
+
if !ok {
|
| 889 |
+
panic("label not at block")
|
| 890 |
+
}
|
| 891 |
+
p.To = constAddr(int64(currentDepth - blockDepth))
|
| 892 |
+
}
|
| 893 |
+
}
|
| 894 |
+
}
|
| 895 |
+
}
|
| 896 |
+
|
| 897 |
+
func constAddr(value int64) obj.Addr {
|
| 898 |
+
return obj.Addr{Type: obj.TYPE_CONST, Offset: value}
|
| 899 |
+
}
|
| 900 |
+
|
| 901 |
+
func regAddr(reg int16) obj.Addr {
|
| 902 |
+
return obj.Addr{Type: obj.TYPE_REG, Reg: reg}
|
| 903 |
+
}
|
| 904 |
+
|
| 905 |
+
// Most of the Go functions has a single parameter (PC_B) in
|
| 906 |
+
// Wasm ABI. This is a list of exceptions.
|
| 907 |
+
var notUsePC_B = map[string]bool{
|
| 908 |
+
"_rt0_wasm_js": true,
|
| 909 |
+
"_rt0_wasm_wasip1": true,
|
| 910 |
+
"wasm_export_run": true,
|
| 911 |
+
"wasm_export_resume": true,
|
| 912 |
+
"wasm_export_getsp": true,
|
| 913 |
+
"wasm_pc_f_loop": true,
|
| 914 |
+
"gcWriteBarrier": true,
|
| 915 |
+
"runtime.gcWriteBarrier1": true,
|
| 916 |
+
"runtime.gcWriteBarrier2": true,
|
| 917 |
+
"runtime.gcWriteBarrier3": true,
|
| 918 |
+
"runtime.gcWriteBarrier4": true,
|
| 919 |
+
"runtime.gcWriteBarrier5": true,
|
| 920 |
+
"runtime.gcWriteBarrier6": true,
|
| 921 |
+
"runtime.gcWriteBarrier7": true,
|
| 922 |
+
"runtime.gcWriteBarrier8": true,
|
| 923 |
+
"runtime.wasmDiv": true,
|
| 924 |
+
"runtime.wasmTruncS": true,
|
| 925 |
+
"runtime.wasmTruncU": true,
|
| 926 |
+
"cmpbody": true,
|
| 927 |
+
"memeqbody": true,
|
| 928 |
+
"memcmp": true,
|
| 929 |
+
"memchr": true,
|
| 930 |
+
}
|
| 931 |
+
|
| 932 |
+
func assemble(ctxt *obj.Link, s *obj.LSym, newprog obj.ProgAlloc) {
|
| 933 |
+
type regVar struct {
|
| 934 |
+
global bool
|
| 935 |
+
index uint64
|
| 936 |
+
}
|
| 937 |
+
|
| 938 |
+
type varDecl struct {
|
| 939 |
+
count uint64
|
| 940 |
+
typ valueType
|
| 941 |
+
}
|
| 942 |
+
|
| 943 |
+
hasLocalSP := false
|
| 944 |
+
regVars := [MAXREG - MINREG]*regVar{
|
| 945 |
+
REG_SP - MINREG: {true, 0},
|
| 946 |
+
REG_CTXT - MINREG: {true, 1},
|
| 947 |
+
REG_g - MINREG: {true, 2},
|
| 948 |
+
REG_RET0 - MINREG: {true, 3},
|
| 949 |
+
REG_RET1 - MINREG: {true, 4},
|
| 950 |
+
REG_RET2 - MINREG: {true, 5},
|
| 951 |
+
REG_RET3 - MINREG: {true, 6},
|
| 952 |
+
REG_PAUSE - MINREG: {true, 7},
|
| 953 |
+
}
|
| 954 |
+
var varDecls []*varDecl
|
| 955 |
+
useAssemblyRegMap := func() {
|
| 956 |
+
for i := int16(0); i < 16; i++ {
|
| 957 |
+
regVars[REG_R0+i-MINREG] = ®Var{false, uint64(i)}
|
| 958 |
+
}
|
| 959 |
+
}
|
| 960 |
+
|
| 961 |
+
// Function starts with declaration of locals: numbers and types.
|
| 962 |
+
// Some functions use a special calling convention.
|
| 963 |
+
switch s.Name {
|
| 964 |
+
case "_rt0_wasm_js", "_rt0_wasm_wasip1", "wasm_export_run", "wasm_export_resume", "wasm_export_getsp",
|
| 965 |
+
"wasm_pc_f_loop", "runtime.wasmDiv", "runtime.wasmTruncS", "runtime.wasmTruncU", "memeqbody":
|
| 966 |
+
varDecls = []*varDecl{}
|
| 967 |
+
useAssemblyRegMap()
|
| 968 |
+
case "memchr", "memcmp":
|
| 969 |
+
varDecls = []*varDecl{{count: 2, typ: i32}}
|
| 970 |
+
useAssemblyRegMap()
|
| 971 |
+
case "cmpbody":
|
| 972 |
+
varDecls = []*varDecl{{count: 2, typ: i64}}
|
| 973 |
+
useAssemblyRegMap()
|
| 974 |
+
case "gcWriteBarrier":
|
| 975 |
+
varDecls = []*varDecl{{count: 5, typ: i64}}
|
| 976 |
+
useAssemblyRegMap()
|
| 977 |
+
case "runtime.gcWriteBarrier1",
|
| 978 |
+
"runtime.gcWriteBarrier2",
|
| 979 |
+
"runtime.gcWriteBarrier3",
|
| 980 |
+
"runtime.gcWriteBarrier4",
|
| 981 |
+
"runtime.gcWriteBarrier5",
|
| 982 |
+
"runtime.gcWriteBarrier6",
|
| 983 |
+
"runtime.gcWriteBarrier7",
|
| 984 |
+
"runtime.gcWriteBarrier8":
|
| 985 |
+
// no locals
|
| 986 |
+
useAssemblyRegMap()
|
| 987 |
+
default:
|
| 988 |
+
// Normal calling convention: PC_B as WebAssembly parameter. First local variable is local SP cache.
|
| 989 |
+
regVars[REG_PC_B-MINREG] = ®Var{false, 0}
|
| 990 |
+
hasLocalSP = true
|
| 991 |
+
|
| 992 |
+
var regUsed [MAXREG - MINREG]bool
|
| 993 |
+
for p := s.Func().Text; p != nil; p = p.Link {
|
| 994 |
+
if p.From.Reg != 0 {
|
| 995 |
+
regUsed[p.From.Reg-MINREG] = true
|
| 996 |
+
}
|
| 997 |
+
if p.To.Reg != 0 {
|
| 998 |
+
regUsed[p.To.Reg-MINREG] = true
|
| 999 |
+
}
|
| 1000 |
+
}
|
| 1001 |
+
|
| 1002 |
+
regs := []int16{REG_SP}
|
| 1003 |
+
for reg := int16(REG_R0); reg <= REG_F31; reg++ {
|
| 1004 |
+
if regUsed[reg-MINREG] {
|
| 1005 |
+
regs = append(regs, reg)
|
| 1006 |
+
}
|
| 1007 |
+
}
|
| 1008 |
+
|
| 1009 |
+
var lastDecl *varDecl
|
| 1010 |
+
for i, reg := range regs {
|
| 1011 |
+
t := regType(reg)
|
| 1012 |
+
if lastDecl == nil || lastDecl.typ != t {
|
| 1013 |
+
lastDecl = &varDecl{
|
| 1014 |
+
count: 0,
|
| 1015 |
+
typ: t,
|
| 1016 |
+
}
|
| 1017 |
+
varDecls = append(varDecls, lastDecl)
|
| 1018 |
+
}
|
| 1019 |
+
lastDecl.count++
|
| 1020 |
+
if reg != REG_SP {
|
| 1021 |
+
regVars[reg-MINREG] = ®Var{false, 1 + uint64(i)}
|
| 1022 |
+
}
|
| 1023 |
+
}
|
| 1024 |
+
}
|
| 1025 |
+
|
| 1026 |
+
w := new(bytes.Buffer)
|
| 1027 |
+
|
| 1028 |
+
writeUleb128(w, uint64(len(varDecls)))
|
| 1029 |
+
for _, decl := range varDecls {
|
| 1030 |
+
writeUleb128(w, decl.count)
|
| 1031 |
+
w.WriteByte(byte(decl.typ))
|
| 1032 |
+
}
|
| 1033 |
+
|
| 1034 |
+
if hasLocalSP {
|
| 1035 |
+
// Copy SP from its global variable into a local variable. Accessing a local variable is more efficient.
|
| 1036 |
+
updateLocalSP(w)
|
| 1037 |
+
}
|
| 1038 |
+
|
| 1039 |
+
for p := s.Func().Text; p != nil; p = p.Link {
|
| 1040 |
+
switch p.As {
|
| 1041 |
+
case AGet:
|
| 1042 |
+
if p.From.Type != obj.TYPE_REG {
|
| 1043 |
+
panic("bad Get: argument is not a register")
|
| 1044 |
+
}
|
| 1045 |
+
reg := p.From.Reg
|
| 1046 |
+
v := regVars[reg-MINREG]
|
| 1047 |
+
if v == nil {
|
| 1048 |
+
panic("bad Get: invalid register")
|
| 1049 |
+
}
|
| 1050 |
+
if reg == REG_SP && hasLocalSP {
|
| 1051 |
+
writeOpcode(w, ALocalGet)
|
| 1052 |
+
writeUleb128(w, 1) // local SP
|
| 1053 |
+
continue
|
| 1054 |
+
}
|
| 1055 |
+
if v.global {
|
| 1056 |
+
writeOpcode(w, AGlobalGet)
|
| 1057 |
+
} else {
|
| 1058 |
+
writeOpcode(w, ALocalGet)
|
| 1059 |
+
}
|
| 1060 |
+
writeUleb128(w, v.index)
|
| 1061 |
+
continue
|
| 1062 |
+
|
| 1063 |
+
case ASet:
|
| 1064 |
+
if p.To.Type != obj.TYPE_REG {
|
| 1065 |
+
panic("bad Set: argument is not a register")
|
| 1066 |
+
}
|
| 1067 |
+
reg := p.To.Reg
|
| 1068 |
+
v := regVars[reg-MINREG]
|
| 1069 |
+
if v == nil {
|
| 1070 |
+
panic("bad Set: invalid register")
|
| 1071 |
+
}
|
| 1072 |
+
if reg == REG_SP && hasLocalSP {
|
| 1073 |
+
writeOpcode(w, ALocalTee)
|
| 1074 |
+
writeUleb128(w, 1) // local SP
|
| 1075 |
+
}
|
| 1076 |
+
if v.global {
|
| 1077 |
+
writeOpcode(w, AGlobalSet)
|
| 1078 |
+
} else {
|
| 1079 |
+
if p.Link.As == AGet && p.Link.From.Reg == reg {
|
| 1080 |
+
writeOpcode(w, ALocalTee)
|
| 1081 |
+
p = p.Link
|
| 1082 |
+
} else {
|
| 1083 |
+
writeOpcode(w, ALocalSet)
|
| 1084 |
+
}
|
| 1085 |
+
}
|
| 1086 |
+
writeUleb128(w, v.index)
|
| 1087 |
+
continue
|
| 1088 |
+
|
| 1089 |
+
case ATee:
|
| 1090 |
+
if p.To.Type != obj.TYPE_REG {
|
| 1091 |
+
panic("bad Tee: argument is not a register")
|
| 1092 |
+
}
|
| 1093 |
+
reg := p.To.Reg
|
| 1094 |
+
v := regVars[reg-MINREG]
|
| 1095 |
+
if v == nil {
|
| 1096 |
+
panic("bad Tee: invalid register")
|
| 1097 |
+
}
|
| 1098 |
+
writeOpcode(w, ALocalTee)
|
| 1099 |
+
writeUleb128(w, v.index)
|
| 1100 |
+
continue
|
| 1101 |
+
|
| 1102 |
+
case ANot:
|
| 1103 |
+
writeOpcode(w, AI32Eqz)
|
| 1104 |
+
continue
|
| 1105 |
+
|
| 1106 |
+
case obj.AUNDEF:
|
| 1107 |
+
writeOpcode(w, AUnreachable)
|
| 1108 |
+
continue
|
| 1109 |
+
|
| 1110 |
+
case obj.ANOP, obj.ATEXT, obj.AFUNCDATA, obj.APCDATA:
|
| 1111 |
+
// ignore
|
| 1112 |
+
continue
|
| 1113 |
+
}
|
| 1114 |
+
|
| 1115 |
+
writeOpcode(w, p.As)
|
| 1116 |
+
|
| 1117 |
+
switch p.As {
|
| 1118 |
+
case ABlock, ALoop, AIf:
|
| 1119 |
+
if p.From.Offset != 0 {
|
| 1120 |
+
// block type, rarely used, e.g. for code compiled with emscripten
|
| 1121 |
+
w.WriteByte(0x80 - byte(p.From.Offset))
|
| 1122 |
+
continue
|
| 1123 |
+
}
|
| 1124 |
+
w.WriteByte(0x40)
|
| 1125 |
+
|
| 1126 |
+
case ABr, ABrIf:
|
| 1127 |
+
if p.To.Type != obj.TYPE_CONST {
|
| 1128 |
+
panic("bad Br/BrIf")
|
| 1129 |
+
}
|
| 1130 |
+
writeUleb128(w, uint64(p.To.Offset))
|
| 1131 |
+
|
| 1132 |
+
case ABrTable:
|
| 1133 |
+
idxs := p.To.Val.([]uint64)
|
| 1134 |
+
writeUleb128(w, uint64(len(idxs)-1))
|
| 1135 |
+
for _, idx := range idxs {
|
| 1136 |
+
writeUleb128(w, idx)
|
| 1137 |
+
}
|
| 1138 |
+
|
| 1139 |
+
case ACall:
|
| 1140 |
+
switch p.To.Type {
|
| 1141 |
+
case obj.TYPE_CONST:
|
| 1142 |
+
writeUleb128(w, uint64(p.To.Offset))
|
| 1143 |
+
|
| 1144 |
+
case obj.TYPE_MEM:
|
| 1145 |
+
if p.To.Name != obj.NAME_EXTERN && p.To.Name != obj.NAME_STATIC {
|
| 1146 |
+
fmt.Println(p.To)
|
| 1147 |
+
panic("bad name for Call")
|
| 1148 |
+
}
|
| 1149 |
+
r := obj.Addrel(s)
|
| 1150 |
+
r.Siz = 1 // actually variable sized
|
| 1151 |
+
r.Off = int32(w.Len())
|
| 1152 |
+
r.Type = objabi.R_CALL
|
| 1153 |
+
if p.Mark&WasmImport != 0 {
|
| 1154 |
+
r.Type = objabi.R_WASMIMPORT
|
| 1155 |
+
}
|
| 1156 |
+
r.Sym = p.To.Sym
|
| 1157 |
+
if hasLocalSP {
|
| 1158 |
+
// The stack may have moved, which changes SP. Update the local SP variable.
|
| 1159 |
+
updateLocalSP(w)
|
| 1160 |
+
}
|
| 1161 |
+
|
| 1162 |
+
default:
|
| 1163 |
+
panic("bad type for Call")
|
| 1164 |
+
}
|
| 1165 |
+
|
| 1166 |
+
case ACallIndirect:
|
| 1167 |
+
writeUleb128(w, uint64(p.To.Offset))
|
| 1168 |
+
w.WriteByte(0x00) // reserved value
|
| 1169 |
+
if hasLocalSP {
|
| 1170 |
+
// The stack may have moved, which changes SP. Update the local SP variable.
|
| 1171 |
+
updateLocalSP(w)
|
| 1172 |
+
}
|
| 1173 |
+
|
| 1174 |
+
case AI32Const, AI64Const:
|
| 1175 |
+
if p.From.Name == obj.NAME_EXTERN {
|
| 1176 |
+
r := obj.Addrel(s)
|
| 1177 |
+
r.Siz = 1 // actually variable sized
|
| 1178 |
+
r.Off = int32(w.Len())
|
| 1179 |
+
r.Type = objabi.R_ADDR
|
| 1180 |
+
r.Sym = p.From.Sym
|
| 1181 |
+
r.Add = p.From.Offset
|
| 1182 |
+
break
|
| 1183 |
+
}
|
| 1184 |
+
writeSleb128(w, p.From.Offset)
|
| 1185 |
+
|
| 1186 |
+
case AF32Const:
|
| 1187 |
+
b := make([]byte, 4)
|
| 1188 |
+
binary.LittleEndian.PutUint32(b, math.Float32bits(float32(p.From.Val.(float64))))
|
| 1189 |
+
w.Write(b)
|
| 1190 |
+
|
| 1191 |
+
case AF64Const:
|
| 1192 |
+
b := make([]byte, 8)
|
| 1193 |
+
binary.LittleEndian.PutUint64(b, math.Float64bits(p.From.Val.(float64)))
|
| 1194 |
+
w.Write(b)
|
| 1195 |
+
|
| 1196 |
+
case AI32Load, AI64Load, AF32Load, AF64Load, AI32Load8S, AI32Load8U, AI32Load16S, AI32Load16U, AI64Load8S, AI64Load8U, AI64Load16S, AI64Load16U, AI64Load32S, AI64Load32U:
|
| 1197 |
+
if p.From.Offset < 0 {
|
| 1198 |
+
panic("negative offset for *Load")
|
| 1199 |
+
}
|
| 1200 |
+
if p.From.Type != obj.TYPE_CONST {
|
| 1201 |
+
panic("bad type for *Load")
|
| 1202 |
+
}
|
| 1203 |
+
if p.From.Offset > math.MaxUint32 {
|
| 1204 |
+
ctxt.Diag("bad offset in %v", p)
|
| 1205 |
+
}
|
| 1206 |
+
writeUleb128(w, align(p.As))
|
| 1207 |
+
writeUleb128(w, uint64(p.From.Offset))
|
| 1208 |
+
|
| 1209 |
+
case AI32Store, AI64Store, AF32Store, AF64Store, AI32Store8, AI32Store16, AI64Store8, AI64Store16, AI64Store32:
|
| 1210 |
+
if p.To.Offset < 0 {
|
| 1211 |
+
panic("negative offset")
|
| 1212 |
+
}
|
| 1213 |
+
if p.From.Offset > math.MaxUint32 {
|
| 1214 |
+
ctxt.Diag("bad offset in %v", p)
|
| 1215 |
+
}
|
| 1216 |
+
writeUleb128(w, align(p.As))
|
| 1217 |
+
writeUleb128(w, uint64(p.To.Offset))
|
| 1218 |
+
|
| 1219 |
+
case ACurrentMemory, AGrowMemory, AMemoryFill:
|
| 1220 |
+
w.WriteByte(0x00)
|
| 1221 |
+
|
| 1222 |
+
case AMemoryCopy:
|
| 1223 |
+
w.WriteByte(0x00)
|
| 1224 |
+
w.WriteByte(0x00)
|
| 1225 |
+
|
| 1226 |
+
}
|
| 1227 |
+
}
|
| 1228 |
+
|
| 1229 |
+
w.WriteByte(0x0b) // end
|
| 1230 |
+
|
| 1231 |
+
s.P = w.Bytes()
|
| 1232 |
+
}
|
| 1233 |
+
|
| 1234 |
+
func updateLocalSP(w *bytes.Buffer) {
|
| 1235 |
+
writeOpcode(w, AGlobalGet)
|
| 1236 |
+
writeUleb128(w, 0) // global SP
|
| 1237 |
+
writeOpcode(w, ALocalSet)
|
| 1238 |
+
writeUleb128(w, 1) // local SP
|
| 1239 |
+
}
|
| 1240 |
+
|
| 1241 |
+
func writeOpcode(w *bytes.Buffer, as obj.As) {
|
| 1242 |
+
switch {
|
| 1243 |
+
case as < AUnreachable:
|
| 1244 |
+
panic(fmt.Sprintf("unexpected assembler op: %s", as))
|
| 1245 |
+
case as < AEnd:
|
| 1246 |
+
w.WriteByte(byte(as - AUnreachable + 0x00))
|
| 1247 |
+
case as < ADrop:
|
| 1248 |
+
w.WriteByte(byte(as - AEnd + 0x0B))
|
| 1249 |
+
case as < ALocalGet:
|
| 1250 |
+
w.WriteByte(byte(as - ADrop + 0x1A))
|
| 1251 |
+
case as < AI32Load:
|
| 1252 |
+
w.WriteByte(byte(as - ALocalGet + 0x20))
|
| 1253 |
+
case as < AI32TruncSatF32S:
|
| 1254 |
+
w.WriteByte(byte(as - AI32Load + 0x28))
|
| 1255 |
+
case as < ALast:
|
| 1256 |
+
w.WriteByte(0xFC)
|
| 1257 |
+
w.WriteByte(byte(as - AI32TruncSatF32S + 0x00))
|
| 1258 |
+
default:
|
| 1259 |
+
panic(fmt.Sprintf("unexpected assembler op: %s", as))
|
| 1260 |
+
}
|
| 1261 |
+
}
|
| 1262 |
+
|
| 1263 |
+
type valueType byte
|
| 1264 |
+
|
| 1265 |
+
const (
|
| 1266 |
+
i32 valueType = 0x7F
|
| 1267 |
+
i64 valueType = 0x7E
|
| 1268 |
+
f32 valueType = 0x7D
|
| 1269 |
+
f64 valueType = 0x7C
|
| 1270 |
+
)
|
| 1271 |
+
|
| 1272 |
+
func regType(reg int16) valueType {
|
| 1273 |
+
switch {
|
| 1274 |
+
case reg == REG_SP:
|
| 1275 |
+
return i32
|
| 1276 |
+
case reg >= REG_R0 && reg <= REG_R15:
|
| 1277 |
+
return i64
|
| 1278 |
+
case reg >= REG_F0 && reg <= REG_F15:
|
| 1279 |
+
return f32
|
| 1280 |
+
case reg >= REG_F16 && reg <= REG_F31:
|
| 1281 |
+
return f64
|
| 1282 |
+
default:
|
| 1283 |
+
panic("invalid register")
|
| 1284 |
+
}
|
| 1285 |
+
}
|
| 1286 |
+
|
| 1287 |
+
func align(as obj.As) uint64 {
|
| 1288 |
+
switch as {
|
| 1289 |
+
case AI32Load8S, AI32Load8U, AI64Load8S, AI64Load8U, AI32Store8, AI64Store8:
|
| 1290 |
+
return 0
|
| 1291 |
+
case AI32Load16S, AI32Load16U, AI64Load16S, AI64Load16U, AI32Store16, AI64Store16:
|
| 1292 |
+
return 1
|
| 1293 |
+
case AI32Load, AF32Load, AI64Load32S, AI64Load32U, AI32Store, AF32Store, AI64Store32:
|
| 1294 |
+
return 2
|
| 1295 |
+
case AI64Load, AF64Load, AI64Store, AF64Store:
|
| 1296 |
+
return 3
|
| 1297 |
+
default:
|
| 1298 |
+
panic("align: bad op")
|
| 1299 |
+
}
|
| 1300 |
+
}
|
| 1301 |
+
|
| 1302 |
+
func writeUleb128(w io.ByteWriter, v uint64) {
|
| 1303 |
+
if v < 128 {
|
| 1304 |
+
w.WriteByte(uint8(v))
|
| 1305 |
+
return
|
| 1306 |
+
}
|
| 1307 |
+
more := true
|
| 1308 |
+
for more {
|
| 1309 |
+
c := uint8(v & 0x7f)
|
| 1310 |
+
v >>= 7
|
| 1311 |
+
more = v != 0
|
| 1312 |
+
if more {
|
| 1313 |
+
c |= 0x80
|
| 1314 |
+
}
|
| 1315 |
+
w.WriteByte(c)
|
| 1316 |
+
}
|
| 1317 |
+
}
|
| 1318 |
+
|
| 1319 |
+
func writeSleb128(w io.ByteWriter, v int64) {
|
| 1320 |
+
more := true
|
| 1321 |
+
for more {
|
| 1322 |
+
c := uint8(v & 0x7f)
|
| 1323 |
+
s := uint8(v & 0x40)
|
| 1324 |
+
v >>= 7
|
| 1325 |
+
more = !((v == 0 && s == 0) || (v == -1 && s != 0))
|
| 1326 |
+
if more {
|
| 1327 |
+
c |= 0x80
|
| 1328 |
+
}
|
| 1329 |
+
w.WriteByte(c)
|
| 1330 |
+
}
|
| 1331 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/a.out.go
ADDED
|
@@ -0,0 +1,426 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Inferno utils/6c/6.out.h
|
| 2 |
+
// https://bitbucket.org/inferno-os/inferno-os/src/master/utils/6c/6.out.h
|
| 3 |
+
//
|
| 4 |
+
// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
|
| 5 |
+
// Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net)
|
| 6 |
+
// Portions Copyright © 1997-1999 Vita Nuova Limited
|
| 7 |
+
// Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuova.com)
|
| 8 |
+
// Portions Copyright © 2004,2006 Bruce Ellis
|
| 9 |
+
// Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net)
|
| 10 |
+
// Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others
|
| 11 |
+
// Portions Copyright © 2009 The Go Authors. All rights reserved.
|
| 12 |
+
//
|
| 13 |
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 14 |
+
// of this software and associated documentation files (the "Software"), to deal
|
| 15 |
+
// in the Software without restriction, including without limitation the rights
|
| 16 |
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 17 |
+
// copies of the Software, and to permit persons to whom the Software is
|
| 18 |
+
// furnished to do so, subject to the following conditions:
|
| 19 |
+
//
|
| 20 |
+
// The above copyright notice and this permission notice shall be included in
|
| 21 |
+
// all copies or substantial portions of the Software.
|
| 22 |
+
//
|
| 23 |
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 24 |
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 26 |
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 27 |
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 28 |
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 29 |
+
// THE SOFTWARE.
|
| 30 |
+
|
| 31 |
+
package x86
|
| 32 |
+
|
| 33 |
+
import "cmd/internal/obj"
|
| 34 |
+
|
| 35 |
+
const (
|
| 36 |
+
REG_NONE = 0
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
const (
|
| 40 |
+
REG_AL = obj.RBaseAMD64 + iota
|
| 41 |
+
REG_CL
|
| 42 |
+
REG_DL
|
| 43 |
+
REG_BL
|
| 44 |
+
REG_SPB
|
| 45 |
+
REG_BPB
|
| 46 |
+
REG_SIB
|
| 47 |
+
REG_DIB
|
| 48 |
+
REG_R8B
|
| 49 |
+
REG_R9B
|
| 50 |
+
REG_R10B
|
| 51 |
+
REG_R11B
|
| 52 |
+
REG_R12B
|
| 53 |
+
REG_R13B
|
| 54 |
+
REG_R14B
|
| 55 |
+
REG_R15B
|
| 56 |
+
|
| 57 |
+
REG_AX
|
| 58 |
+
REG_CX
|
| 59 |
+
REG_DX
|
| 60 |
+
REG_BX
|
| 61 |
+
REG_SP
|
| 62 |
+
REG_BP
|
| 63 |
+
REG_SI
|
| 64 |
+
REG_DI
|
| 65 |
+
REG_R8
|
| 66 |
+
REG_R9
|
| 67 |
+
REG_R10
|
| 68 |
+
REG_R11
|
| 69 |
+
REG_R12
|
| 70 |
+
REG_R13
|
| 71 |
+
REG_R14
|
| 72 |
+
REG_R15
|
| 73 |
+
|
| 74 |
+
REG_AH
|
| 75 |
+
REG_CH
|
| 76 |
+
REG_DH
|
| 77 |
+
REG_BH
|
| 78 |
+
|
| 79 |
+
REG_F0
|
| 80 |
+
REG_F1
|
| 81 |
+
REG_F2
|
| 82 |
+
REG_F3
|
| 83 |
+
REG_F4
|
| 84 |
+
REG_F5
|
| 85 |
+
REG_F6
|
| 86 |
+
REG_F7
|
| 87 |
+
|
| 88 |
+
REG_M0
|
| 89 |
+
REG_M1
|
| 90 |
+
REG_M2
|
| 91 |
+
REG_M3
|
| 92 |
+
REG_M4
|
| 93 |
+
REG_M5
|
| 94 |
+
REG_M6
|
| 95 |
+
REG_M7
|
| 96 |
+
|
| 97 |
+
REG_K0
|
| 98 |
+
REG_K1
|
| 99 |
+
REG_K2
|
| 100 |
+
REG_K3
|
| 101 |
+
REG_K4
|
| 102 |
+
REG_K5
|
| 103 |
+
REG_K6
|
| 104 |
+
REG_K7
|
| 105 |
+
|
| 106 |
+
REG_X0
|
| 107 |
+
REG_X1
|
| 108 |
+
REG_X2
|
| 109 |
+
REG_X3
|
| 110 |
+
REG_X4
|
| 111 |
+
REG_X5
|
| 112 |
+
REG_X6
|
| 113 |
+
REG_X7
|
| 114 |
+
REG_X8
|
| 115 |
+
REG_X9
|
| 116 |
+
REG_X10
|
| 117 |
+
REG_X11
|
| 118 |
+
REG_X12
|
| 119 |
+
REG_X13
|
| 120 |
+
REG_X14
|
| 121 |
+
REG_X15
|
| 122 |
+
REG_X16
|
| 123 |
+
REG_X17
|
| 124 |
+
REG_X18
|
| 125 |
+
REG_X19
|
| 126 |
+
REG_X20
|
| 127 |
+
REG_X21
|
| 128 |
+
REG_X22
|
| 129 |
+
REG_X23
|
| 130 |
+
REG_X24
|
| 131 |
+
REG_X25
|
| 132 |
+
REG_X26
|
| 133 |
+
REG_X27
|
| 134 |
+
REG_X28
|
| 135 |
+
REG_X29
|
| 136 |
+
REG_X30
|
| 137 |
+
REG_X31
|
| 138 |
+
|
| 139 |
+
REG_Y0
|
| 140 |
+
REG_Y1
|
| 141 |
+
REG_Y2
|
| 142 |
+
REG_Y3
|
| 143 |
+
REG_Y4
|
| 144 |
+
REG_Y5
|
| 145 |
+
REG_Y6
|
| 146 |
+
REG_Y7
|
| 147 |
+
REG_Y8
|
| 148 |
+
REG_Y9
|
| 149 |
+
REG_Y10
|
| 150 |
+
REG_Y11
|
| 151 |
+
REG_Y12
|
| 152 |
+
REG_Y13
|
| 153 |
+
REG_Y14
|
| 154 |
+
REG_Y15
|
| 155 |
+
REG_Y16
|
| 156 |
+
REG_Y17
|
| 157 |
+
REG_Y18
|
| 158 |
+
REG_Y19
|
| 159 |
+
REG_Y20
|
| 160 |
+
REG_Y21
|
| 161 |
+
REG_Y22
|
| 162 |
+
REG_Y23
|
| 163 |
+
REG_Y24
|
| 164 |
+
REG_Y25
|
| 165 |
+
REG_Y26
|
| 166 |
+
REG_Y27
|
| 167 |
+
REG_Y28
|
| 168 |
+
REG_Y29
|
| 169 |
+
REG_Y30
|
| 170 |
+
REG_Y31
|
| 171 |
+
|
| 172 |
+
REG_Z0
|
| 173 |
+
REG_Z1
|
| 174 |
+
REG_Z2
|
| 175 |
+
REG_Z3
|
| 176 |
+
REG_Z4
|
| 177 |
+
REG_Z5
|
| 178 |
+
REG_Z6
|
| 179 |
+
REG_Z7
|
| 180 |
+
REG_Z8
|
| 181 |
+
REG_Z9
|
| 182 |
+
REG_Z10
|
| 183 |
+
REG_Z11
|
| 184 |
+
REG_Z12
|
| 185 |
+
REG_Z13
|
| 186 |
+
REG_Z14
|
| 187 |
+
REG_Z15
|
| 188 |
+
REG_Z16
|
| 189 |
+
REG_Z17
|
| 190 |
+
REG_Z18
|
| 191 |
+
REG_Z19
|
| 192 |
+
REG_Z20
|
| 193 |
+
REG_Z21
|
| 194 |
+
REG_Z22
|
| 195 |
+
REG_Z23
|
| 196 |
+
REG_Z24
|
| 197 |
+
REG_Z25
|
| 198 |
+
REG_Z26
|
| 199 |
+
REG_Z27
|
| 200 |
+
REG_Z28
|
| 201 |
+
REG_Z29
|
| 202 |
+
REG_Z30
|
| 203 |
+
REG_Z31
|
| 204 |
+
|
| 205 |
+
REG_CS
|
| 206 |
+
REG_SS
|
| 207 |
+
REG_DS
|
| 208 |
+
REG_ES
|
| 209 |
+
REG_FS
|
| 210 |
+
REG_GS
|
| 211 |
+
|
| 212 |
+
REG_GDTR // global descriptor table register
|
| 213 |
+
REG_IDTR // interrupt descriptor table register
|
| 214 |
+
REG_LDTR // local descriptor table register
|
| 215 |
+
REG_MSW // machine status word
|
| 216 |
+
REG_TASK // task register
|
| 217 |
+
|
| 218 |
+
REG_CR0
|
| 219 |
+
REG_CR1
|
| 220 |
+
REG_CR2
|
| 221 |
+
REG_CR3
|
| 222 |
+
REG_CR4
|
| 223 |
+
REG_CR5
|
| 224 |
+
REG_CR6
|
| 225 |
+
REG_CR7
|
| 226 |
+
REG_CR8
|
| 227 |
+
REG_CR9
|
| 228 |
+
REG_CR10
|
| 229 |
+
REG_CR11
|
| 230 |
+
REG_CR12
|
| 231 |
+
REG_CR13
|
| 232 |
+
REG_CR14
|
| 233 |
+
REG_CR15
|
| 234 |
+
|
| 235 |
+
REG_DR0
|
| 236 |
+
REG_DR1
|
| 237 |
+
REG_DR2
|
| 238 |
+
REG_DR3
|
| 239 |
+
REG_DR4
|
| 240 |
+
REG_DR5
|
| 241 |
+
REG_DR6
|
| 242 |
+
REG_DR7
|
| 243 |
+
|
| 244 |
+
REG_TR0
|
| 245 |
+
REG_TR1
|
| 246 |
+
REG_TR2
|
| 247 |
+
REG_TR3
|
| 248 |
+
REG_TR4
|
| 249 |
+
REG_TR5
|
| 250 |
+
REG_TR6
|
| 251 |
+
REG_TR7
|
| 252 |
+
|
| 253 |
+
REG_TLS
|
| 254 |
+
|
| 255 |
+
MAXREG
|
| 256 |
+
|
| 257 |
+
REG_CR = REG_CR0
|
| 258 |
+
REG_DR = REG_DR0
|
| 259 |
+
REG_TR = REG_TR0
|
| 260 |
+
|
| 261 |
+
REGARG = -1
|
| 262 |
+
REGRET = REG_AX
|
| 263 |
+
FREGRET = REG_X0
|
| 264 |
+
REGSP = REG_SP
|
| 265 |
+
REGCTXT = REG_DX
|
| 266 |
+
REGENTRYTMP0 = REG_R12 // scratch register available at function entry in ABIInternal
|
| 267 |
+
REGENTRYTMP1 = REG_R13 // scratch register available at function entry in ABIInternal
|
| 268 |
+
REGG = REG_R14 // g register in ABIInternal
|
| 269 |
+
REGEXT = REG_R15 // compiler allocates external registers R15 down
|
| 270 |
+
FREGMIN = REG_X0 + 5 // first register variable
|
| 271 |
+
FREGEXT = REG_X0 + 15 // first external register
|
| 272 |
+
T_TYPE = 1 << 0
|
| 273 |
+
T_INDEX = 1 << 1
|
| 274 |
+
T_OFFSET = 1 << 2
|
| 275 |
+
T_FCONST = 1 << 3
|
| 276 |
+
T_SYM = 1 << 4
|
| 277 |
+
T_SCONST = 1 << 5
|
| 278 |
+
T_64 = 1 << 6
|
| 279 |
+
T_GOTYPE = 1 << 7
|
| 280 |
+
)
|
| 281 |
+
|
| 282 |
+
// https://www.uclibc.org/docs/psABI-x86_64.pdf, figure 3.36
|
| 283 |
+
var AMD64DWARFRegisters = map[int16]int16{
|
| 284 |
+
REG_AX: 0,
|
| 285 |
+
REG_DX: 1,
|
| 286 |
+
REG_CX: 2,
|
| 287 |
+
REG_BX: 3,
|
| 288 |
+
REG_SI: 4,
|
| 289 |
+
REG_DI: 5,
|
| 290 |
+
REG_BP: 6,
|
| 291 |
+
REG_SP: 7,
|
| 292 |
+
REG_R8: 8,
|
| 293 |
+
REG_R9: 9,
|
| 294 |
+
REG_R10: 10,
|
| 295 |
+
REG_R11: 11,
|
| 296 |
+
REG_R12: 12,
|
| 297 |
+
REG_R13: 13,
|
| 298 |
+
REG_R14: 14,
|
| 299 |
+
REG_R15: 15,
|
| 300 |
+
// 16 is "Return Address RA", whatever that is.
|
| 301 |
+
// 17-24 vector registers (X/Y/Z).
|
| 302 |
+
REG_X0: 17,
|
| 303 |
+
REG_X1: 18,
|
| 304 |
+
REG_X2: 19,
|
| 305 |
+
REG_X3: 20,
|
| 306 |
+
REG_X4: 21,
|
| 307 |
+
REG_X5: 22,
|
| 308 |
+
REG_X6: 23,
|
| 309 |
+
REG_X7: 24,
|
| 310 |
+
// 25-32 extended vector registers (X/Y/Z).
|
| 311 |
+
REG_X8: 25,
|
| 312 |
+
REG_X9: 26,
|
| 313 |
+
REG_X10: 27,
|
| 314 |
+
REG_X11: 28,
|
| 315 |
+
REG_X12: 29,
|
| 316 |
+
REG_X13: 30,
|
| 317 |
+
REG_X14: 31,
|
| 318 |
+
REG_X15: 32,
|
| 319 |
+
// ST registers. %stN => FN.
|
| 320 |
+
REG_F0: 33,
|
| 321 |
+
REG_F1: 34,
|
| 322 |
+
REG_F2: 35,
|
| 323 |
+
REG_F3: 36,
|
| 324 |
+
REG_F4: 37,
|
| 325 |
+
REG_F5: 38,
|
| 326 |
+
REG_F6: 39,
|
| 327 |
+
REG_F7: 40,
|
| 328 |
+
// MMX registers. %mmN => MN.
|
| 329 |
+
REG_M0: 41,
|
| 330 |
+
REG_M1: 42,
|
| 331 |
+
REG_M2: 43,
|
| 332 |
+
REG_M3: 44,
|
| 333 |
+
REG_M4: 45,
|
| 334 |
+
REG_M5: 46,
|
| 335 |
+
REG_M6: 47,
|
| 336 |
+
REG_M7: 48,
|
| 337 |
+
// 48 is flags, which doesn't have a name.
|
| 338 |
+
REG_ES: 50,
|
| 339 |
+
REG_CS: 51,
|
| 340 |
+
REG_SS: 52,
|
| 341 |
+
REG_DS: 53,
|
| 342 |
+
REG_FS: 54,
|
| 343 |
+
REG_GS: 55,
|
| 344 |
+
// 58 and 59 are {fs,gs}base, which don't have names.
|
| 345 |
+
REG_TR: 62,
|
| 346 |
+
REG_LDTR: 63,
|
| 347 |
+
// 64-66 are mxcsr, fcw, fsw, which don't have names.
|
| 348 |
+
|
| 349 |
+
// 67-82 upper vector registers (X/Y/Z).
|
| 350 |
+
REG_X16: 67,
|
| 351 |
+
REG_X17: 68,
|
| 352 |
+
REG_X18: 69,
|
| 353 |
+
REG_X19: 70,
|
| 354 |
+
REG_X20: 71,
|
| 355 |
+
REG_X21: 72,
|
| 356 |
+
REG_X22: 73,
|
| 357 |
+
REG_X23: 74,
|
| 358 |
+
REG_X24: 75,
|
| 359 |
+
REG_X25: 76,
|
| 360 |
+
REG_X26: 77,
|
| 361 |
+
REG_X27: 78,
|
| 362 |
+
REG_X28: 79,
|
| 363 |
+
REG_X29: 80,
|
| 364 |
+
REG_X30: 81,
|
| 365 |
+
REG_X31: 82,
|
| 366 |
+
|
| 367 |
+
// 118-125 vector mask registers. %kN => KN.
|
| 368 |
+
REG_K0: 118,
|
| 369 |
+
REG_K1: 119,
|
| 370 |
+
REG_K2: 120,
|
| 371 |
+
REG_K3: 121,
|
| 372 |
+
REG_K4: 122,
|
| 373 |
+
REG_K5: 123,
|
| 374 |
+
REG_K6: 124,
|
| 375 |
+
REG_K7: 125,
|
| 376 |
+
}
|
| 377 |
+
|
| 378 |
+
// https://www.uclibc.org/docs/psABI-i386.pdf, table 2.14
|
| 379 |
+
var X86DWARFRegisters = map[int16]int16{
|
| 380 |
+
REG_AX: 0,
|
| 381 |
+
REG_CX: 1,
|
| 382 |
+
REG_DX: 2,
|
| 383 |
+
REG_BX: 3,
|
| 384 |
+
REG_SP: 4,
|
| 385 |
+
REG_BP: 5,
|
| 386 |
+
REG_SI: 6,
|
| 387 |
+
REG_DI: 7,
|
| 388 |
+
// 8 is "Return Address RA", whatever that is.
|
| 389 |
+
// 9 is flags, which doesn't have a name.
|
| 390 |
+
// ST registers. %stN => FN.
|
| 391 |
+
REG_F0: 11,
|
| 392 |
+
REG_F1: 12,
|
| 393 |
+
REG_F2: 13,
|
| 394 |
+
REG_F3: 14,
|
| 395 |
+
REG_F4: 15,
|
| 396 |
+
REG_F5: 16,
|
| 397 |
+
REG_F6: 17,
|
| 398 |
+
REG_F7: 18,
|
| 399 |
+
// XMM registers. %xmmN => XN.
|
| 400 |
+
REG_X0: 21,
|
| 401 |
+
REG_X1: 22,
|
| 402 |
+
REG_X2: 23,
|
| 403 |
+
REG_X3: 24,
|
| 404 |
+
REG_X4: 25,
|
| 405 |
+
REG_X5: 26,
|
| 406 |
+
REG_X6: 27,
|
| 407 |
+
REG_X7: 28,
|
| 408 |
+
// MMX registers. %mmN => MN.
|
| 409 |
+
REG_M0: 29,
|
| 410 |
+
REG_M1: 30,
|
| 411 |
+
REG_M2: 31,
|
| 412 |
+
REG_M3: 32,
|
| 413 |
+
REG_M4: 33,
|
| 414 |
+
REG_M5: 34,
|
| 415 |
+
REG_M6: 35,
|
| 416 |
+
REG_M7: 36,
|
| 417 |
+
// 39 is mxcsr, which doesn't have a name.
|
| 418 |
+
REG_ES: 40,
|
| 419 |
+
REG_CS: 41,
|
| 420 |
+
REG_SS: 42,
|
| 421 |
+
REG_DS: 43,
|
| 422 |
+
REG_FS: 44,
|
| 423 |
+
REG_GS: 45,
|
| 424 |
+
REG_TR: 48,
|
| 425 |
+
REG_LDTR: 49,
|
| 426 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/aenum.go
ADDED
|
@@ -0,0 +1,1610 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ate go run ../stringer.go -i $GOFILE -o anames.go -p x86
|
| 8 |
+
|
| 9 |
+
const (
|
| 10 |
+
AAAA = obj.ABaseAMD64 + obj.A_ARCHSPECIFIC + iota
|
| 11 |
+
AAAD
|
| 12 |
+
AAAM
|
| 13 |
+
AAAS
|
| 14 |
+
AADCB
|
| 15 |
+
AADCL
|
| 16 |
+
AADCQ
|
| 17 |
+
AADCW
|
| 18 |
+
AADCXL
|
| 19 |
+
AADCXQ
|
| 20 |
+
AADDB
|
| 21 |
+
AADDL
|
| 22 |
+
AADDPD
|
| 23 |
+
AADDPS
|
| 24 |
+
AADDQ
|
| 25 |
+
AADDSD
|
| 26 |
+
AADDSS
|
| 27 |
+
AADDSUBPD
|
| 28 |
+
AADDSUBPS
|
| 29 |
+
AADDW
|
| 30 |
+
AADJSP
|
| 31 |
+
AADOXL
|
| 32 |
+
AADOXQ
|
| 33 |
+
AAESDEC
|
| 34 |
+
AAESDECLAST
|
| 35 |
+
AAESENC
|
| 36 |
+
AAESENCLAST
|
| 37 |
+
AAESIMC
|
| 38 |
+
AAESKEYGENASSIST
|
| 39 |
+
AANDB
|
| 40 |
+
AANDL
|
| 41 |
+
AANDNL
|
| 42 |
+
AANDNPD
|
| 43 |
+
AANDNPS
|
| 44 |
+
AANDNQ
|
| 45 |
+
AANDPD
|
| 46 |
+
AANDPS
|
| 47 |
+
AANDQ
|
| 48 |
+
AANDW
|
| 49 |
+
AARPL
|
| 50 |
+
ABEXTRL
|
| 51 |
+
ABEXTRQ
|
| 52 |
+
ABLENDPD
|
| 53 |
+
ABLENDPS
|
| 54 |
+
ABLENDVPD
|
| 55 |
+
ABLENDVPS
|
| 56 |
+
ABLSIL
|
| 57 |
+
ABLSIQ
|
| 58 |
+
ABLSMSKL
|
| 59 |
+
ABLSMSKQ
|
| 60 |
+
ABLSRL
|
| 61 |
+
ABLSRQ
|
| 62 |
+
ABOUNDL
|
| 63 |
+
ABOUNDW
|
| 64 |
+
ABSFL
|
| 65 |
+
ABSFQ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| 124 |
+
ACMOVQLT
|
| 125 |
+
ACMOVQMI
|
| 126 |
+
ACMOVQNE
|
| 127 |
+
ACMOVQOC
|
| 128 |
+
ACMOVQOS
|
| 129 |
+
ACMOVQPC
|
| 130 |
+
ACMOVQPL
|
| 131 |
+
ACMOVQPS
|
| 132 |
+
ACMOVWCC
|
| 133 |
+
ACMOVWCS
|
| 134 |
+
ACMOVWEQ
|
| 135 |
+
ACMOVWGE
|
| 136 |
+
ACMOVWGT
|
| 137 |
+
ACMOVWHI
|
| 138 |
+
ACMOVWLE
|
| 139 |
+
ACMOVWLS
|
| 140 |
+
ACMOVWLT
|
| 141 |
+
ACMOVWMI
|
| 142 |
+
ACMOVWNE
|
| 143 |
+
ACMOVWOC
|
| 144 |
+
ACMOVWOS
|
| 145 |
+
ACMOVWPC
|
| 146 |
+
ACMOVWPL
|
| 147 |
+
ACMOVWPS
|
| 148 |
+
ACMPB
|
| 149 |
+
ACMPL
|
| 150 |
+
ACMPPD
|
| 151 |
+
ACMPPS
|
| 152 |
+
ACMPQ
|
| 153 |
+
ACMPSB
|
| 154 |
+
ACMPSD
|
| 155 |
+
ACMPSL
|
| 156 |
+
ACMPSQ
|
| 157 |
+
ACMPSS
|
| 158 |
+
ACMPSW
|
| 159 |
+
ACMPW
|
| 160 |
+
ACMPXCHG16B
|
| 161 |
+
ACMPXCHG8B
|
| 162 |
+
ACMPXCHGB
|
| 163 |
+
ACMPXCHGL
|
| 164 |
+
ACMPXCHGQ
|
| 165 |
+
ACMPXCHGW
|
| 166 |
+
ACOMISD
|
| 167 |
+
ACOMISS
|
| 168 |
+
ACPUID
|
| 169 |
+
ACQO
|
| 170 |
+
ACRC32B
|
| 171 |
+
ACRC32L
|
| 172 |
+
ACRC32Q
|
| 173 |
+
ACRC32W
|
| 174 |
+
ACVTPD2PL
|
| 175 |
+
ACVTPD2PS
|
| 176 |
+
ACVTPL2PD
|
| 177 |
+
ACVTPL2PS
|
| 178 |
+
ACVTPS2PD
|
| 179 |
+
ACVTPS2PL
|
| 180 |
+
ACVTSD2SL
|
| 181 |
+
ACVTSD2SQ
|
| 182 |
+
ACVTSD2SS
|
| 183 |
+
ACVTSL2SD
|
| 184 |
+
ACVTSL2SS
|
| 185 |
+
ACVTSQ2SD
|
| 186 |
+
ACVTSQ2SS
|
| 187 |
+
ACVTSS2SD
|
| 188 |
+
ACVTSS2SL
|
| 189 |
+
ACVTSS2SQ
|
| 190 |
+
ACVTTPD2PL
|
| 191 |
+
ACVTTPS2PL
|
| 192 |
+
ACVTTSD2SL
|
| 193 |
+
ACVTTSD2SQ
|
| 194 |
+
ACVTTSS2SL
|
| 195 |
+
ACVTTSS2SQ
|
| 196 |
+
ACWD
|
| 197 |
+
ACWDE
|
| 198 |
+
ADAA
|
| 199 |
+
ADAS
|
| 200 |
+
ADECB
|
| 201 |
+
ADECL
|
| 202 |
+
ADECQ
|
| 203 |
+
ADECW
|
| 204 |
+
ADIVB
|
| 205 |
+
ADIVL
|
| 206 |
+
ADIVPD
|
| 207 |
+
ADIVPS
|
| 208 |
+
ADIVQ
|
| 209 |
+
ADIVSD
|
| 210 |
+
ADIVSS
|
| 211 |
+
ADIVW
|
| 212 |
+
ADPPD
|
| 213 |
+
ADPPS
|
| 214 |
+
AEMMS
|
| 215 |
+
AENTER
|
| 216 |
+
AEXTRACTPS
|
| 217 |
+
AF2XM1
|
| 218 |
+
AFABS
|
| 219 |
+
AFADDD
|
| 220 |
+
AFADDDP
|
| 221 |
+
AFADDF
|
| 222 |
+
AFADDL
|
| 223 |
+
AFADDW
|
| 224 |
+
AFBLD
|
| 225 |
+
AFBSTP
|
| 226 |
+
AFCHS
|
| 227 |
+
AFCLEX
|
| 228 |
+
AFCMOVB
|
| 229 |
+
AFCMOVBE
|
| 230 |
+
AFCMOVCC
|
| 231 |
+
AFCMOVCS
|
| 232 |
+
AFCMOVE
|
| 233 |
+
AFCMOVEQ
|
| 234 |
+
AFCMOVHI
|
| 235 |
+
AFCMOVLS
|
| 236 |
+
AFCMOVNB
|
| 237 |
+
AFCMOVNBE
|
| 238 |
+
AFCMOVNE
|
| 239 |
+
AFCMOVNU
|
| 240 |
+
AFCMOVU
|
| 241 |
+
AFCMOVUN
|
| 242 |
+
AFCOMD
|
| 243 |
+
AFCOMDP
|
| 244 |
+
AFCOMDPP
|
| 245 |
+
AFCOMF
|
| 246 |
+
AFCOMFP
|
| 247 |
+
AFCOMI
|
| 248 |
+
AFCOMIP
|
| 249 |
+
AFCOML
|
| 250 |
+
AFCOMLP
|
| 251 |
+
AFCOMW
|
| 252 |
+
AFCOMWP
|
| 253 |
+
AFCOS
|
| 254 |
+
AFDECSTP
|
| 255 |
+
AFDIVD
|
| 256 |
+
AFDIVDP
|
| 257 |
+
AFDIVF
|
| 258 |
+
AFDIVL
|
| 259 |
+
AFDIVRD
|
| 260 |
+
AFDIVRDP
|
| 261 |
+
AFDIVRF
|
| 262 |
+
AFDIVRL
|
| 263 |
+
AFDIVRW
|
| 264 |
+
AFDIVW
|
| 265 |
+
AFFREE
|
| 266 |
+
AFINCSTP
|
| 267 |
+
AFINIT
|
| 268 |
+
AFLD1
|
| 269 |
+
AFLDCW
|
| 270 |
+
AFLDENV
|
| 271 |
+
AFLDL2E
|
| 272 |
+
AFLDL2T
|
| 273 |
+
AFLDLG2
|
| 274 |
+
AFLDLN2
|
| 275 |
+
AFLDPI
|
| 276 |
+
AFLDZ
|
| 277 |
+
AFMOVB
|
| 278 |
+
AFMOVBP
|
| 279 |
+
AFMOVD
|
| 280 |
+
AFMOVDP
|
| 281 |
+
AFMOVF
|
| 282 |
+
AFMOVFP
|
| 283 |
+
AFMOVL
|
| 284 |
+
AFMOVLP
|
| 285 |
+
AFMOVV
|
| 286 |
+
AFMOVVP
|
| 287 |
+
AFMOVW
|
| 288 |
+
AFMOVWP
|
| 289 |
+
AFMOVX
|
| 290 |
+
AFMOVXP
|
| 291 |
+
AFMULD
|
| 292 |
+
AFMULDP
|
| 293 |
+
AFMULF
|
| 294 |
+
AFMULL
|
| 295 |
+
AFMULW
|
| 296 |
+
AFNOP
|
| 297 |
+
AFPATAN
|
| 298 |
+
AFPREM
|
| 299 |
+
AFPREM1
|
| 300 |
+
AFPTAN
|
| 301 |
+
AFRNDINT
|
| 302 |
+
AFRSTOR
|
| 303 |
+
AFSAVE
|
| 304 |
+
AFSCALE
|
| 305 |
+
AFSIN
|
| 306 |
+
AFSINCOS
|
| 307 |
+
AFSQRT
|
| 308 |
+
AFSTCW
|
| 309 |
+
AFSTENV
|
| 310 |
+
AFSTSW
|
| 311 |
+
AFSUBD
|
| 312 |
+
AFSUBDP
|
| 313 |
+
AFSUBF
|
| 314 |
+
AFSUBL
|
| 315 |
+
AFSUBRD
|
| 316 |
+
AFSUBRDP
|
| 317 |
+
AFSUBRF
|
| 318 |
+
AFSUBRL
|
| 319 |
+
AFSUBRW
|
| 320 |
+
AFSUBW
|
| 321 |
+
AFTST
|
| 322 |
+
AFUCOM
|
| 323 |
+
AFUCOMI
|
| 324 |
+
AFUCOMIP
|
| 325 |
+
AFUCOMP
|
| 326 |
+
AFUCOMPP
|
| 327 |
+
AFXAM
|
| 328 |
+
AFXCHD
|
| 329 |
+
AFXRSTOR
|
| 330 |
+
AFXRSTOR64
|
| 331 |
+
AFXSAVE
|
| 332 |
+
AFXSAVE64
|
| 333 |
+
AFXTRACT
|
| 334 |
+
AFYL2X
|
| 335 |
+
AFYL2XP1
|
| 336 |
+
AHADDPD
|
| 337 |
+
AHADDPS
|
| 338 |
+
AHLT
|
| 339 |
+
AHSUBPD
|
| 340 |
+
AHSUBPS
|
| 341 |
+
AICEBP
|
| 342 |
+
AIDIVB
|
| 343 |
+
AIDIVL
|
| 344 |
+
AIDIVQ
|
| 345 |
+
AIDIVW
|
| 346 |
+
AIMUL3L
|
| 347 |
+
AIMUL3Q
|
| 348 |
+
AIMUL3W
|
| 349 |
+
AIMULB
|
| 350 |
+
AIMULL
|
| 351 |
+
AIMULQ
|
| 352 |
+
AIMULW
|
| 353 |
+
AINB
|
| 354 |
+
AINCB
|
| 355 |
+
AINCL
|
| 356 |
+
AINCQ
|
| 357 |
+
AINCW
|
| 358 |
+
AINL
|
| 359 |
+
AINSB
|
| 360 |
+
AINSERTPS
|
| 361 |
+
AINSL
|
| 362 |
+
AINSW
|
| 363 |
+
AINT
|
| 364 |
+
AINTO
|
| 365 |
+
AINVD
|
| 366 |
+
AINVLPG
|
| 367 |
+
AINVPCID
|
| 368 |
+
AINW
|
| 369 |
+
AIRETL
|
| 370 |
+
AIRETQ
|
| 371 |
+
AIRETW
|
| 372 |
+
AJCC // >= unsigned
|
| 373 |
+
AJCS // < unsigned
|
| 374 |
+
AJCXZL
|
| 375 |
+
AJCXZQ
|
| 376 |
+
AJCXZW
|
| 377 |
+
AJEQ // == (zero)
|
| 378 |
+
AJGE // >= signed
|
| 379 |
+
AJGT // > signed
|
| 380 |
+
AJHI // > unsigned
|
| 381 |
+
AJLE // <= signed
|
| 382 |
+
AJLS // <= unsigned
|
| 383 |
+
AJLT // < signed
|
| 384 |
+
AJMI // sign bit set (negative)
|
| 385 |
+
AJNE // != (nonzero)
|
| 386 |
+
AJOC // overflow clear
|
| 387 |
+
AJOS // overflow set
|
| 388 |
+
AJPC // parity clear
|
| 389 |
+
AJPL // sign bit clear (positive)
|
| 390 |
+
AJPS // parity set
|
| 391 |
+
AKADDB
|
| 392 |
+
AKADDD
|
| 393 |
+
AKADDQ
|
| 394 |
+
AKADDW
|
| 395 |
+
AKANDB
|
| 396 |
+
AKANDD
|
| 397 |
+
AKANDNB
|
| 398 |
+
AKANDND
|
| 399 |
+
AKANDNQ
|
| 400 |
+
AKANDNW
|
| 401 |
+
AKANDQ
|
| 402 |
+
AKANDW
|
| 403 |
+
AKMOVB
|
| 404 |
+
AKMOVD
|
| 405 |
+
AKMOVQ
|
| 406 |
+
AKMOVW
|
| 407 |
+
AKNOTB
|
| 408 |
+
AKNOTD
|
| 409 |
+
AKNOTQ
|
| 410 |
+
AKNOTW
|
| 411 |
+
AKORB
|
| 412 |
+
AKORD
|
| 413 |
+
AKORQ
|
| 414 |
+
AKORTESTB
|
| 415 |
+
AKORTESTD
|
| 416 |
+
AKORTESTQ
|
| 417 |
+
AKORTESTW
|
| 418 |
+
AKORW
|
| 419 |
+
AKSHIFTLB
|
| 420 |
+
AKSHIFTLD
|
| 421 |
+
AKSHIFTLQ
|
| 422 |
+
AKSHIFTLW
|
| 423 |
+
AKSHIFTRB
|
| 424 |
+
AKSHIFTRD
|
| 425 |
+
AKSHIFTRQ
|
| 426 |
+
AKSHIFTRW
|
| 427 |
+
AKTESTB
|
| 428 |
+
AKTESTD
|
| 429 |
+
AKTESTQ
|
| 430 |
+
AKTESTW
|
| 431 |
+
AKUNPCKBW
|
| 432 |
+
AKUNPCKDQ
|
| 433 |
+
AKUNPCKWD
|
| 434 |
+
AKXNORB
|
| 435 |
+
AKXNORD
|
| 436 |
+
AKXNORQ
|
| 437 |
+
AKXNORW
|
| 438 |
+
AKXORB
|
| 439 |
+
AKXORD
|
| 440 |
+
AKXORQ
|
| 441 |
+
AKXORW
|
| 442 |
+
ALAHF
|
| 443 |
+
ALARL
|
| 444 |
+
ALARQ
|
| 445 |
+
ALARW
|
| 446 |
+
ALDDQU
|
| 447 |
+
ALDMXCSR
|
| 448 |
+
ALEAL
|
| 449 |
+
ALEAQ
|
| 450 |
+
ALEAVEL
|
| 451 |
+
ALEAVEQ
|
| 452 |
+
ALEAVEW
|
| 453 |
+
ALEAW
|
| 454 |
+
ALFENCE
|
| 455 |
+
ALFSL
|
| 456 |
+
ALFSQ
|
| 457 |
+
ALFSW
|
| 458 |
+
ALGDT
|
| 459 |
+
ALGSL
|
| 460 |
+
ALGSQ
|
| 461 |
+
ALGSW
|
| 462 |
+
ALIDT
|
| 463 |
+
ALLDT
|
| 464 |
+
ALMSW
|
| 465 |
+
ALOCK
|
| 466 |
+
ALODSB
|
| 467 |
+
ALODSL
|
| 468 |
+
ALODSQ
|
| 469 |
+
ALODSW
|
| 470 |
+
ALONG
|
| 471 |
+
ALOOP
|
| 472 |
+
ALOOPEQ
|
| 473 |
+
ALOOPNE
|
| 474 |
+
ALSLL
|
| 475 |
+
ALSLQ
|
| 476 |
+
ALSLW
|
| 477 |
+
ALSSL
|
| 478 |
+
ALSSQ
|
| 479 |
+
ALSSW
|
| 480 |
+
ALTR
|
| 481 |
+
ALZCNTL
|
| 482 |
+
ALZCNTQ
|
| 483 |
+
ALZCNTW
|
| 484 |
+
AMASKMOVOU
|
| 485 |
+
AMASKMOVQ
|
| 486 |
+
AMAXPD
|
| 487 |
+
AMAXPS
|
| 488 |
+
AMAXSD
|
| 489 |
+
AMAXSS
|
| 490 |
+
AMFENCE
|
| 491 |
+
AMINPD
|
| 492 |
+
AMINPS
|
| 493 |
+
AMINSD
|
| 494 |
+
AMINSS
|
| 495 |
+
AMONITOR
|
| 496 |
+
AMOVAPD
|
| 497 |
+
AMOVAPS
|
| 498 |
+
AMOVB
|
| 499 |
+
AMOVBEL
|
| 500 |
+
AMOVBEQ
|
| 501 |
+
AMOVBEW
|
| 502 |
+
AMOVBLSX
|
| 503 |
+
AMOVBLZX
|
| 504 |
+
AMOVBQSX
|
| 505 |
+
AMOVBQZX
|
| 506 |
+
AMOVBWSX
|
| 507 |
+
AMOVBWZX
|
| 508 |
+
AMOVDDUP
|
| 509 |
+
AMOVHLPS
|
| 510 |
+
AMOVHPD
|
| 511 |
+
AMOVHPS
|
| 512 |
+
AMOVL
|
| 513 |
+
AMOVLHPS
|
| 514 |
+
AMOVLPD
|
| 515 |
+
AMOVLPS
|
| 516 |
+
AMOVLQSX
|
| 517 |
+
AMOVLQZX
|
| 518 |
+
AMOVMSKPD
|
| 519 |
+
AMOVMSKPS
|
| 520 |
+
AMOVNTDQA
|
| 521 |
+
AMOVNTIL
|
| 522 |
+
AMOVNTIQ
|
| 523 |
+
AMOVNTO
|
| 524 |
+
AMOVNTPD
|
| 525 |
+
AMOVNTPS
|
| 526 |
+
AMOVNTQ
|
| 527 |
+
AMOVO
|
| 528 |
+
AMOVOU
|
| 529 |
+
AMOVQ
|
| 530 |
+
AMOVQL
|
| 531 |
+
AMOVQOZX
|
| 532 |
+
AMOVSB
|
| 533 |
+
AMOVSD
|
| 534 |
+
AMOVSHDUP
|
| 535 |
+
AMOVSL
|
| 536 |
+
AMOVSLDUP
|
| 537 |
+
AMOVSQ
|
| 538 |
+
AMOVSS
|
| 539 |
+
AMOVSW
|
| 540 |
+
AMOVSWW
|
| 541 |
+
AMOVUPD
|
| 542 |
+
AMOVUPS
|
| 543 |
+
AMOVW
|
| 544 |
+
AMOVWLSX
|
| 545 |
+
AMOVWLZX
|
| 546 |
+
AMOVWQSX
|
| 547 |
+
AMOVWQZX
|
| 548 |
+
AMOVZWW
|
| 549 |
+
AMPSADBW
|
| 550 |
+
AMULB
|
| 551 |
+
AMULL
|
| 552 |
+
AMULPD
|
| 553 |
+
AMULPS
|
| 554 |
+
AMULQ
|
| 555 |
+
AMULSD
|
| 556 |
+
AMULSS
|
| 557 |
+
AMULW
|
| 558 |
+
AMULXL
|
| 559 |
+
AMULXQ
|
| 560 |
+
AMWAIT
|
| 561 |
+
ANEGB
|
| 562 |
+
ANEGL
|
| 563 |
+
ANEGQ
|
| 564 |
+
ANEGW
|
| 565 |
+
ANOPL
|
| 566 |
+
ANOPW
|
| 567 |
+
ANOTB
|
| 568 |
+
ANOTL
|
| 569 |
+
ANOTQ
|
| 570 |
+
ANOTW
|
| 571 |
+
AORB
|
| 572 |
+
AORL
|
| 573 |
+
AORPD
|
| 574 |
+
AORPS
|
| 575 |
+
AORQ
|
| 576 |
+
AORW
|
| 577 |
+
AOUTB
|
| 578 |
+
AOUTL
|
| 579 |
+
AOUTSB
|
| 580 |
+
AOUTSL
|
| 581 |
+
AOUTSW
|
| 582 |
+
AOUTW
|
| 583 |
+
APABSB
|
| 584 |
+
APABSD
|
| 585 |
+
APABSW
|
| 586 |
+
APACKSSLW
|
| 587 |
+
APACKSSWB
|
| 588 |
+
APACKUSDW
|
| 589 |
+
APACKUSWB
|
| 590 |
+
APADDB
|
| 591 |
+
APADDL
|
| 592 |
+
APADDQ
|
| 593 |
+
APADDSB
|
| 594 |
+
APADDSW
|
| 595 |
+
APADDUSB
|
| 596 |
+
APADDUSW
|
| 597 |
+
APADDW
|
| 598 |
+
APALIGNR
|
| 599 |
+
APAND
|
| 600 |
+
APANDN
|
| 601 |
+
APAUSE
|
| 602 |
+
APAVGB
|
| 603 |
+
APAVGW
|
| 604 |
+
APBLENDVB
|
| 605 |
+
APBLENDW
|
| 606 |
+
APCLMULQDQ
|
| 607 |
+
APCMPEQB
|
| 608 |
+
APCMPEQL
|
| 609 |
+
APCMPEQQ
|
| 610 |
+
APCMPEQW
|
| 611 |
+
APCMPESTRI
|
| 612 |
+
APCMPESTRM
|
| 613 |
+
APCMPGTB
|
| 614 |
+
APCMPGTL
|
| 615 |
+
APCMPGTQ
|
| 616 |
+
APCMPGTW
|
| 617 |
+
APCMPISTRI
|
| 618 |
+
APCMPISTRM
|
| 619 |
+
APDEPL
|
| 620 |
+
APDEPQ
|
| 621 |
+
APEXTL
|
| 622 |
+
APEXTQ
|
| 623 |
+
APEXTRB
|
| 624 |
+
APEXTRD
|
| 625 |
+
APEXTRQ
|
| 626 |
+
APEXTRW
|
| 627 |
+
APHADDD
|
| 628 |
+
APHADDSW
|
| 629 |
+
APHADDW
|
| 630 |
+
APHMINPOSUW
|
| 631 |
+
APHSUBD
|
| 632 |
+
APHSUBSW
|
| 633 |
+
APHSUBW
|
| 634 |
+
APINSRB
|
| 635 |
+
APINSRD
|
| 636 |
+
APINSRQ
|
| 637 |
+
APINSRW
|
| 638 |
+
APMADDUBSW
|
| 639 |
+
APMADDWL
|
| 640 |
+
APMAXSB
|
| 641 |
+
APMAXSD
|
| 642 |
+
APMAXSW
|
| 643 |
+
APMAXUB
|
| 644 |
+
APMAXUD
|
| 645 |
+
APMAXUW
|
| 646 |
+
APMINSB
|
| 647 |
+
APMINSD
|
| 648 |
+
APMINSW
|
| 649 |
+
APMINUB
|
| 650 |
+
APMINUD
|
| 651 |
+
APMINUW
|
| 652 |
+
APMOVMSKB
|
| 653 |
+
APMOVSXBD
|
| 654 |
+
APMOVSXBQ
|
| 655 |
+
APMOVSXBW
|
| 656 |
+
APMOVSXDQ
|
| 657 |
+
APMOVSXWD
|
| 658 |
+
APMOVSXWQ
|
| 659 |
+
APMOVZXBD
|
| 660 |
+
APMOVZXBQ
|
| 661 |
+
APMOVZXBW
|
| 662 |
+
APMOVZXDQ
|
| 663 |
+
APMOVZXWD
|
| 664 |
+
APMOVZXWQ
|
| 665 |
+
APMULDQ
|
| 666 |
+
APMULHRSW
|
| 667 |
+
APMULHUW
|
| 668 |
+
APMULHW
|
| 669 |
+
APMULLD
|
| 670 |
+
APMULLW
|
| 671 |
+
APMULULQ
|
| 672 |
+
APOPAL
|
| 673 |
+
APOPAW
|
| 674 |
+
APOPCNTL
|
| 675 |
+
APOPCNTQ
|
| 676 |
+
APOPCNTW
|
| 677 |
+
APOPFL
|
| 678 |
+
APOPFQ
|
| 679 |
+
APOPFW
|
| 680 |
+
APOPL
|
| 681 |
+
APOPQ
|
| 682 |
+
APOPW
|
| 683 |
+
APOR
|
| 684 |
+
APREFETCHNTA
|
| 685 |
+
APREFETCHT0
|
| 686 |
+
APREFETCHT1
|
| 687 |
+
APREFETCHT2
|
| 688 |
+
APSADBW
|
| 689 |
+
APSHUFB
|
| 690 |
+
APSHUFD
|
| 691 |
+
APSHUFHW
|
| 692 |
+
APSHUFL
|
| 693 |
+
APSHUFLW
|
| 694 |
+
APSHUFW
|
| 695 |
+
APSIGNB
|
| 696 |
+
APSIGND
|
| 697 |
+
APSIGNW
|
| 698 |
+
APSLLL
|
| 699 |
+
APSLLO
|
| 700 |
+
APSLLQ
|
| 701 |
+
APSLLW
|
| 702 |
+
APSRAL
|
| 703 |
+
APSRAW
|
| 704 |
+
APSRLL
|
| 705 |
+
APSRLO
|
| 706 |
+
APSRLQ
|
| 707 |
+
APSRLW
|
| 708 |
+
APSUBB
|
| 709 |
+
APSUBL
|
| 710 |
+
APSUBQ
|
| 711 |
+
APSUBSB
|
| 712 |
+
APSUBSW
|
| 713 |
+
APSUBUSB
|
| 714 |
+
APSUBUSW
|
| 715 |
+
APSUBW
|
| 716 |
+
APTEST
|
| 717 |
+
APUNPCKHBW
|
| 718 |
+
APUNPCKHLQ
|
| 719 |
+
APUNPCKHQDQ
|
| 720 |
+
APUNPCKHWL
|
| 721 |
+
APUNPCKLBW
|
| 722 |
+
APUNPCKLLQ
|
| 723 |
+
APUNPCKLQDQ
|
| 724 |
+
APUNPCKLWL
|
| 725 |
+
APUSHAL
|
| 726 |
+
APUSHAW
|
| 727 |
+
APUSHFL
|
| 728 |
+
APUSHFQ
|
| 729 |
+
APUSHFW
|
| 730 |
+
APUSHL
|
| 731 |
+
APUSHQ
|
| 732 |
+
APUSHW
|
| 733 |
+
APXOR
|
| 734 |
+
AQUAD
|
| 735 |
+
ARCLB
|
| 736 |
+
ARCLL
|
| 737 |
+
ARCLQ
|
| 738 |
+
ARCLW
|
| 739 |
+
ARCPPS
|
| 740 |
+
ARCPSS
|
| 741 |
+
ARCRB
|
| 742 |
+
ARCRL
|
| 743 |
+
ARCRQ
|
| 744 |
+
ARCRW
|
| 745 |
+
ARDFSBASEL
|
| 746 |
+
ARDFSBASEQ
|
| 747 |
+
ARDGSBASEL
|
| 748 |
+
ARDGSBASEQ
|
| 749 |
+
ARDMSR
|
| 750 |
+
ARDPID
|
| 751 |
+
ARDPKRU
|
| 752 |
+
ARDPMC
|
| 753 |
+
ARDRANDL
|
| 754 |
+
ARDRANDQ
|
| 755 |
+
ARDRANDW
|
| 756 |
+
ARDSEEDL
|
| 757 |
+
ARDSEEDQ
|
| 758 |
+
ARDSEEDW
|
| 759 |
+
ARDTSC
|
| 760 |
+
ARDTSCP
|
| 761 |
+
AREP
|
| 762 |
+
AREPN
|
| 763 |
+
ARETFL
|
| 764 |
+
ARETFQ
|
| 765 |
+
ARETFW
|
| 766 |
+
AROLB
|
| 767 |
+
AROLL
|
| 768 |
+
AROLQ
|
| 769 |
+
AROLW
|
| 770 |
+
ARORB
|
| 771 |
+
ARORL
|
| 772 |
+
ARORQ
|
| 773 |
+
ARORW
|
| 774 |
+
ARORXL
|
| 775 |
+
ARORXQ
|
| 776 |
+
AROUNDPD
|
| 777 |
+
AROUNDPS
|
| 778 |
+
AROUNDSD
|
| 779 |
+
AROUNDSS
|
| 780 |
+
ARSM
|
| 781 |
+
ARSQRTPS
|
| 782 |
+
ARSQRTSS
|
| 783 |
+
ASAHF
|
| 784 |
+
ASALB
|
| 785 |
+
ASALL
|
| 786 |
+
ASALQ
|
| 787 |
+
ASALW
|
| 788 |
+
ASARB
|
| 789 |
+
ASARL
|
| 790 |
+
ASARQ
|
| 791 |
+
ASARW
|
| 792 |
+
ASARXL
|
| 793 |
+
ASARXQ
|
| 794 |
+
ASBBB
|
| 795 |
+
ASBBL
|
| 796 |
+
ASBBQ
|
| 797 |
+
ASBBW
|
| 798 |
+
ASCASB
|
| 799 |
+
ASCASL
|
| 800 |
+
ASCASQ
|
| 801 |
+
ASCASW
|
| 802 |
+
ASETCC
|
| 803 |
+
ASETCS
|
| 804 |
+
ASETEQ
|
| 805 |
+
ASETGE
|
| 806 |
+
ASETGT
|
| 807 |
+
ASETHI
|
| 808 |
+
ASETLE
|
| 809 |
+
ASETLS
|
| 810 |
+
ASETLT
|
| 811 |
+
ASETMI
|
| 812 |
+
ASETNE
|
| 813 |
+
ASETOC
|
| 814 |
+
ASETOS
|
| 815 |
+
ASETPC
|
| 816 |
+
ASETPL
|
| 817 |
+
ASETPS
|
| 818 |
+
ASFENCE
|
| 819 |
+
ASGDT
|
| 820 |
+
ASHA1MSG1
|
| 821 |
+
ASHA1MSG2
|
| 822 |
+
ASHA1NEXTE
|
| 823 |
+
ASHA1RNDS4
|
| 824 |
+
ASHA256MSG1
|
| 825 |
+
ASHA256MSG2
|
| 826 |
+
ASHA256RNDS2
|
| 827 |
+
ASHLB
|
| 828 |
+
ASHLL
|
| 829 |
+
ASHLQ
|
| 830 |
+
ASHLW
|
| 831 |
+
ASHLXL
|
| 832 |
+
ASHLXQ
|
| 833 |
+
ASHRB
|
| 834 |
+
ASHRL
|
| 835 |
+
ASHRQ
|
| 836 |
+
ASHRW
|
| 837 |
+
ASHRXL
|
| 838 |
+
ASHRXQ
|
| 839 |
+
ASHUFPD
|
| 840 |
+
ASHUFPS
|
| 841 |
+
ASIDT
|
| 842 |
+
ASLDTL
|
| 843 |
+
ASLDTQ
|
| 844 |
+
ASLDTW
|
| 845 |
+
ASMSWL
|
| 846 |
+
ASMSWQ
|
| 847 |
+
ASMSWW
|
| 848 |
+
ASQRTPD
|
| 849 |
+
ASQRTPS
|
| 850 |
+
ASQRTSD
|
| 851 |
+
ASQRTSS
|
| 852 |
+
ASTAC
|
| 853 |
+
ASTC
|
| 854 |
+
ASTD
|
| 855 |
+
ASTI
|
| 856 |
+
ASTMXCSR
|
| 857 |
+
ASTOSB
|
| 858 |
+
ASTOSL
|
| 859 |
+
ASTOSQ
|
| 860 |
+
ASTOSW
|
| 861 |
+
ASTRL
|
| 862 |
+
ASTRQ
|
| 863 |
+
ASTRW
|
| 864 |
+
ASUBB
|
| 865 |
+
ASUBL
|
| 866 |
+
ASUBPD
|
| 867 |
+
ASUBPS
|
| 868 |
+
ASUBQ
|
| 869 |
+
ASUBSD
|
| 870 |
+
ASUBSS
|
| 871 |
+
ASUBW
|
| 872 |
+
ASWAPGS
|
| 873 |
+
ASYSCALL
|
| 874 |
+
ASYSENTER
|
| 875 |
+
ASYSENTER64
|
| 876 |
+
ASYSEXIT
|
| 877 |
+
ASYSEXIT64
|
| 878 |
+
ASYSRET
|
| 879 |
+
ATESTB
|
| 880 |
+
ATESTL
|
| 881 |
+
ATESTQ
|
| 882 |
+
ATESTW
|
| 883 |
+
ATPAUSE
|
| 884 |
+
ATZCNTL
|
| 885 |
+
ATZCNTQ
|
| 886 |
+
ATZCNTW
|
| 887 |
+
AUCOMISD
|
| 888 |
+
AUCOMISS
|
| 889 |
+
AUD1
|
| 890 |
+
AUD2
|
| 891 |
+
AUMWAIT
|
| 892 |
+
AUNPCKHPD
|
| 893 |
+
AUNPCKHPS
|
| 894 |
+
AUNPCKLPD
|
| 895 |
+
AUNPCKLPS
|
| 896 |
+
AUMONITOR
|
| 897 |
+
AV4FMADDPS
|
| 898 |
+
AV4FMADDSS
|
| 899 |
+
AV4FNMADDPS
|
| 900 |
+
AV4FNMADDSS
|
| 901 |
+
AVADDPD
|
| 902 |
+
AVADDPS
|
| 903 |
+
AVADDSD
|
| 904 |
+
AVADDSS
|
| 905 |
+
AVADDSUBPD
|
| 906 |
+
AVADDSUBPS
|
| 907 |
+
AVAESDEC
|
| 908 |
+
AVAESDECLAST
|
| 909 |
+
AVAESENC
|
| 910 |
+
AVAESENCLAST
|
| 911 |
+
AVAESIMC
|
| 912 |
+
AVAESKEYGENASSIST
|
| 913 |
+
AVALIGND
|
| 914 |
+
AVALIGNQ
|
| 915 |
+
AVANDNPD
|
| 916 |
+
AVANDNPS
|
| 917 |
+
AVANDPD
|
| 918 |
+
AVANDPS
|
| 919 |
+
AVBLENDMPD
|
| 920 |
+
AVBLENDMPS
|
| 921 |
+
AVBLENDPD
|
| 922 |
+
AVBLENDPS
|
| 923 |
+
AVBLENDVPD
|
| 924 |
+
AVBLENDVPS
|
| 925 |
+
AVBROADCASTF128
|
| 926 |
+
AVBROADCASTF32X2
|
| 927 |
+
AVBROADCASTF32X4
|
| 928 |
+
AVBROADCASTF32X8
|
| 929 |
+
AVBROADCASTF64X2
|
| 930 |
+
AVBROADCASTF64X4
|
| 931 |
+
AVBROADCASTI128
|
| 932 |
+
AVBROADCASTI32X2
|
| 933 |
+
AVBROADCASTI32X4
|
| 934 |
+
AVBROADCASTI32X8
|
| 935 |
+
AVBROADCASTI64X2
|
| 936 |
+
AVBROADCASTI64X4
|
| 937 |
+
AVBROADCASTSD
|
| 938 |
+
AVBROADCASTSS
|
| 939 |
+
AVCMPPD
|
| 940 |
+
AV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033 |
+
AVEXPANDPS
|
| 1034 |
+
AVEXTRACTF128
|
| 1035 |
+
AVEXTRACTF32X4
|
| 1036 |
+
AVEXTRACTF32X8
|
| 1037 |
+
AVEXTRACTF64X2
|
| 1038 |
+
AVEXTRACTF64X4
|
| 1039 |
+
AVEXTRACTI128
|
| 1040 |
+
AVEXTRACTI32X4
|
| 1041 |
+
AVEXTRACTI32X8
|
| 1042 |
+
AVEXTRACTI64X2
|
| 1043 |
+
AVEXTRACTI64X4
|
| 1044 |
+
AVEXTRACTPS
|
| 1045 |
+
AVFIXUPIMMPD
|
| 1046 |
+
AVFIXUPIMMPS
|
| 1047 |
+
AVFIXUPIMMSD
|
| 1048 |
+
AVFIXUPIMMSS
|
| 1049 |
+
AVFMADD132PD
|
| 1050 |
+
AVFMADD132PS
|
| 1051 |
+
AVFMADD132SD
|
| 1052 |
+
AVFMADD132SS
|
| 1053 |
+
AVFMADD213PD
|
| 1054 |
+
AVFMADD213PS
|
| 1055 |
+
AVFMADD213SD
|
| 1056 |
+
AVFMADD213SS
|
| 1057 |
+
AVFMADD231PD
|
| 1058 |
+
AVFMADD231PS
|
| 1059 |
+
AVFMADD231SD
|
| 1060 |
+
AVFMADD231SS
|
| 1061 |
+
AVFMADDSUB132PD
|
| 1062 |
+
AVFMADDSUB132PS
|
| 1063 |
+
AVFMADDSUB213PD
|
| 1064 |
+
AVFMADDSUB213PS
|
| 1065 |
+
AVFMADDSUB231PD
|
| 1066 |
+
AVFMADDSUB231PS
|
| 1067 |
+
AVFMSUB132PD
|
| 1068 |
+
AVFMSUB132PS
|
| 1069 |
+
AVFMSUB132SD
|
| 1070 |
+
AVFMSUB132SS
|
| 1071 |
+
AVFMSUB213PD
|
| 1072 |
+
AVFMSUB213PS
|
| 1073 |
+
AVFMSUB213SD
|
| 1074 |
+
AVFMSUB213SS
|
| 1075 |
+
AVFMSUB231PD
|
| 1076 |
+
AVFMSUB231PS
|
| 1077 |
+
AVFMSUB231SD
|
| 1078 |
+
AVFMSUB231SS
|
| 1079 |
+
AVFMSUBADD132PD
|
| 1080 |
+
AVFMSUBADD132PS
|
| 1081 |
+
AVFMSUBADD213PD
|
| 1082 |
+
AVFMSUBADD213PS
|
| 1083 |
+
AVFMSUBADD231PD
|
| 1084 |
+
AVFMSUBADD231PS
|
| 1085 |
+
AVFNMADD132PD
|
| 1086 |
+
AVFNMADD132PS
|
| 1087 |
+
AVFNMADD132SD
|
| 1088 |
+
AVFNMADD132SS
|
| 1089 |
+
AVFNMADD213PD
|
| 1090 |
+
AVFNMADD213PS
|
| 1091 |
+
AVFNMADD213SD
|
| 1092 |
+
AVFNMADD213SS
|
| 1093 |
+
AVFNMADD231PD
|
| 1094 |
+
AVFNMADD231PS
|
| 1095 |
+
AVFNMADD231SD
|
| 1096 |
+
AVFNMADD231SS
|
| 1097 |
+
AVFNMSUB132PD
|
| 1098 |
+
AVFNMSUB132PS
|
| 1099 |
+
AVFNMSUB132SD
|
| 1100 |
+
AVFNMSUB132SS
|
| 1101 |
+
AVFNMSUB213PD
|
| 1102 |
+
AVFNMSUB213PS
|
| 1103 |
+
AVFNMSUB213SD
|
| 1104 |
+
AVFNMSUB213SS
|
| 1105 |
+
AVFNMSUB231PD
|
| 1106 |
+
AVFNMSUB231PS
|
| 1107 |
+
AVFNMSUB231SD
|
| 1108 |
+
AVFNMSUB231SS
|
| 1109 |
+
AVFPCLASSPD
|
| 1110 |
+
AVFPCLASSPDX
|
| 1111 |
+
AVFPCLASSPDY
|
| 1112 |
+
AVFPCLASSPDZ
|
| 1113 |
+
AVFPCLASSPS
|
| 1114 |
+
AVFPCLASSPSX
|
| 1115 |
+
AVFPCLASSPSY
|
| 1116 |
+
AVFPCLASSPSZ
|
| 1117 |
+
AVFPCLASSSD
|
| 1118 |
+
AVFPCLASSSS
|
| 1119 |
+
AVGATHERDPD
|
| 1120 |
+
AVGATHERDPS
|
| 1121 |
+
AVGATHERPF0DPD
|
| 1122 |
+
AVGATHERPF0DPS
|
| 1123 |
+
AVGATHERPF0QPD
|
| 1124 |
+
AVGATHERPF0QPS
|
| 1125 |
+
AVGATHERPF1DPD
|
| 1126 |
+
AVGATHERPF1DPS
|
| 1127 |
+
AVGATHERPF1QPD
|
| 1128 |
+
AVGATHERPF1QPS
|
| 1129 |
+
AVGATHERQPD
|
| 1130 |
+
AVGATHERQPS
|
| 1131 |
+
AVGETEXPPD
|
| 1132 |
+
AVGETEXPPS
|
| 1133 |
+
AVGETEXPSD
|
| 1134 |
+
AVGETEXPSS
|
| 1135 |
+
AVGETMANTPD
|
| 1136 |
+
AVGETMANTPS
|
| 1137 |
+
AVGETMANTSD
|
| 1138 |
+
AVGETMANTSS
|
| 1139 |
+
AVGF2P8AFFINEINVQB
|
| 1140 |
+
AVGF2P8AFFINEQB
|
| 1141 |
+
AVGF2P8MULB
|
| 1142 |
+
AVHADDPD
|
| 1143 |
+
AVHADDPS
|
| 1144 |
+
AVHSUBPD
|
| 1145 |
+
AVHSUBPS
|
| 1146 |
+
AVINSERTF128
|
| 1147 |
+
AVINSERTF32X4
|
| 1148 |
+
AVINSERTF32X8
|
| 1149 |
+
AVINSERTF64X2
|
| 1150 |
+
AVINSERTF64X4
|
| 1151 |
+
AVINSERTI128
|
| 1152 |
+
AVINSERTI32X4
|
| 1153 |
+
AVINSERTI32X8
|
| 1154 |
+
AVINSERTI64X2
|
| 1155 |
+
AVINSERTI64X4
|
| 1156 |
+
AVINSERTPS
|
| 1157 |
+
AVLDDQU
|
| 1158 |
+
AVLDMXCSR
|
| 1159 |
+
AVMASKMOVDQU
|
| 1160 |
+
AVMASKMOVPD
|
| 1161 |
+
AVMASKMOVPS
|
| 1162 |
+
AVMAXPD
|
| 1163 |
+
AVMAXPS
|
| 1164 |
+
AVMAXSD
|
| 1165 |
+
AVMAXSS
|
| 1166 |
+
AVMINPD
|
| 1167 |
+
AVMINPS
|
| 1168 |
+
AVMINSD
|
| 1169 |
+
AVMINSS
|
| 1170 |
+
AVMOVAPD
|
| 1171 |
+
AVMOVAPS
|
| 1172 |
+
AVMOVD
|
| 1173 |
+
AVMOVDDUP
|
| 1174 |
+
AVMOVDQA
|
| 1175 |
+
AVMOVDQA32
|
| 1176 |
+
AVMOVDQA64
|
| 1177 |
+
AVMOVDQU
|
| 1178 |
+
AVMOVDQU16
|
| 1179 |
+
AVMOVDQU32
|
| 1180 |
+
AVMOVDQU64
|
| 1181 |
+
AVMOVDQU8
|
| 1182 |
+
AVMOVHLPS
|
| 1183 |
+
AVMOVHPD
|
| 1184 |
+
AVMOVHPS
|
| 1185 |
+
AVMOVLHPS
|
| 1186 |
+
AVMOVLPD
|
| 1187 |
+
AVMOVLPS
|
| 1188 |
+
AVMOVMSKPD
|
| 1189 |
+
AVMOVMSKPS
|
| 1190 |
+
AVMOVNTDQ
|
| 1191 |
+
AVMOVNTDQA
|
| 1192 |
+
AVMOVNTPD
|
| 1193 |
+
AVMOVNTPS
|
| 1194 |
+
AVMOVQ
|
| 1195 |
+
AVMOVSD
|
| 1196 |
+
AVMOVSHDUP
|
| 1197 |
+
AVMOVSLDUP
|
| 1198 |
+
AVMOVSS
|
| 1199 |
+
AVMOVUPD
|
| 1200 |
+
AVMOVUPS
|
| 1201 |
+
AVMPSADBW
|
| 1202 |
+
AVMULPD
|
| 1203 |
+
AVMULPS
|
| 1204 |
+
AVMULSD
|
| 1205 |
+
AVMULSS
|
| 1206 |
+
AVORPD
|
| 1207 |
+
AVORPS
|
| 1208 |
+
AVP4DPWSSD
|
| 1209 |
+
AVP4DPWSSDS
|
| 1210 |
+
AVPABSB
|
| 1211 |
+
AVPABSD
|
| 1212 |
+
AVPABSQ
|
| 1213 |
+
AVPABSW
|
| 1214 |
+
AVPACKSSDW
|
| 1215 |
+
AVPACKSSWB
|
| 1216 |
+
AVPACKUSDW
|
| 1217 |
+
AVPACKUSWB
|
| 1218 |
+
AVPADDB
|
| 1219 |
+
AVPADDD
|
| 1220 |
+
AVPADDQ
|
| 1221 |
+
AVPADDSB
|
| 1222 |
+
AVPADDSW
|
| 1223 |
+
AVPADDUSB
|
| 1224 |
+
AVPADDUSW
|
| 1225 |
+
AVPADDW
|
| 1226 |
+
AVPALIGNR
|
| 1227 |
+
AVPAND
|
| 1228 |
+
AVPANDD
|
| 1229 |
+
AVPANDN
|
| 1230 |
+
AVPANDND
|
| 1231 |
+
AVPANDNQ
|
| 1232 |
+
AVPANDQ
|
| 1233 |
+
AVPAVGB
|
| 1234 |
+
AVPAVGW
|
| 1235 |
+
AVPBLENDD
|
| 1236 |
+
AVPBLENDMB
|
| 1237 |
+
AVPBLENDMD
|
| 1238 |
+
AVPBLENDMQ
|
| 1239 |
+
AVPBLENDMW
|
| 1240 |
+
AVPBLENDVB
|
| 1241 |
+
AVPBLENDW
|
| 1242 |
+
AVPBROADCASTB
|
| 1243 |
+
AVPBROADCASTD
|
| 1244 |
+
AVPBROADCASTMB2Q
|
| 1245 |
+
AVPBROADCASTMW2D
|
| 1246 |
+
AVPBROADCASTQ
|
| 1247 |
+
AVPBROADCASTW
|
| 1248 |
+
AVPCLMULQDQ
|
| 1249 |
+
AVPCMPB
|
| 1250 |
+
AVPCMPD
|
| 1251 |
+
AVPCMPEQB
|
| 1252 |
+
AVPCMPEQD
|
| 1253 |
+
AVPCMPEQQ
|
| 1254 |
+
AVPCMPEQW
|
| 1255 |
+
AVPCMPESTRI
|
| 1256 |
+
AVPCMPESTRM
|
| 1257 |
+
AVPCMPGTB
|
| 1258 |
+
AVPCMPGTD
|
| 1259 |
+
AVPCMPGTQ
|
| 1260 |
+
AVPCMPGTW
|
| 1261 |
+
AVPCMPISTRI
|
| 1262 |
+
AVPCMPISTRM
|
| 1263 |
+
AVPCMPQ
|
| 1264 |
+
AVPCMPUB
|
| 1265 |
+
AVPCMPUD
|
| 1266 |
+
AVPCMPUQ
|
| 1267 |
+
AVPCMPUW
|
| 1268 |
+
AVPCMPW
|
| 1269 |
+
AVPCOMPRESSB
|
| 1270 |
+
AVPCOMPRESSD
|
| 1271 |
+
AVPCOMPRESSQ
|
| 1272 |
+
AVPCOMPRESSW
|
| 1273 |
+
AVPCONFLICTD
|
| 1274 |
+
AVPCONFLICTQ
|
| 1275 |
+
AVPDPBUSD
|
| 1276 |
+
AVPDPBUSDS
|
| 1277 |
+
AVPDPWSSD
|
| 1278 |
+
AVPDPWSSDS
|
| 1279 |
+
AVPERM2F128
|
| 1280 |
+
AVPERM2I128
|
| 1281 |
+
AVPERMB
|
| 1282 |
+
AVPERMD
|
| 1283 |
+
AVPERMI2B
|
| 1284 |
+
AVPERMI2D
|
| 1285 |
+
AVPERMI2PD
|
| 1286 |
+
AVPERMI2PS
|
| 1287 |
+
AVPERMI2Q
|
| 1288 |
+
AVPERMI2W
|
| 1289 |
+
AVPERMILPD
|
| 1290 |
+
AVPERMILPS
|
| 1291 |
+
AVPERMPD
|
| 1292 |
+
AVPERMPS
|
| 1293 |
+
AVPERMQ
|
| 1294 |
+
AVPERMT2B
|
| 1295 |
+
AVPERMT2D
|
| 1296 |
+
AVPERMT2PD
|
| 1297 |
+
AVPERMT2PS
|
| 1298 |
+
AVPERMT2Q
|
| 1299 |
+
AVPERMT2W
|
| 1300 |
+
AVPERMW
|
| 1301 |
+
AVPEXPANDB
|
| 1302 |
+
AVPEXPANDD
|
| 1303 |
+
AVPEXPANDQ
|
| 1304 |
+
AVPEXPANDW
|
| 1305 |
+
AVPEXTRB
|
| 1306 |
+
AVPEXTRD
|
| 1307 |
+
AVPEXTRQ
|
| 1308 |
+
AVPEXTRW
|
| 1309 |
+
AVPGATHERDD
|
| 1310 |
+
AVPGATHERDQ
|
| 1311 |
+
AVPGATHERQD
|
| 1312 |
+
AVPGATHERQQ
|
| 1313 |
+
AVPHADDD
|
| 1314 |
+
AVPHADDSW
|
| 1315 |
+
AVPHADDW
|
| 1316 |
+
AVPHMINPOSUW
|
| 1317 |
+
AVPHSUBD
|
| 1318 |
+
AVPHSUBSW
|
| 1319 |
+
AVPHSUBW
|
| 1320 |
+
AVPINSRB
|
| 1321 |
+
AVPINSRD
|
| 1322 |
+
AVPINSRQ
|
| 1323 |
+
AVPINSRW
|
| 1324 |
+
AVPLZCNTD
|
| 1325 |
+
AVPLZCNTQ
|
| 1326 |
+
AVPMADD52HUQ
|
| 1327 |
+
AVPMADD52LUQ
|
| 1328 |
+
AVPMADDUBSW
|
| 1329 |
+
AVPMADDWD
|
| 1330 |
+
AVPMASKMOVD
|
| 1331 |
+
AVPMASKMOVQ
|
| 1332 |
+
AVPMAXSB
|
| 1333 |
+
AVPMAXSD
|
| 1334 |
+
AVPMAXSQ
|
| 1335 |
+
AVPMAXSW
|
| 1336 |
+
AVPMAXUB
|
| 1337 |
+
AVPMAXUD
|
| 1338 |
+
AVPMAXUQ
|
| 1339 |
+
AVPMAXUW
|
| 1340 |
+
AVPMINSB
|
| 1341 |
+
AVPMINSD
|
| 1342 |
+
AVPMINSQ
|
| 1343 |
+
AVPMINSW
|
| 1344 |
+
AVPMINUB
|
| 1345 |
+
AVPMINUD
|
| 1346 |
+
AVPMINUQ
|
| 1347 |
+
AVPMINUW
|
| 1348 |
+
AVPMOVB2M
|
| 1349 |
+
AVPMOVD2M
|
| 1350 |
+
AVPMOVDB
|
| 1351 |
+
AVPMOVDW
|
| 1352 |
+
AVPMOVM2B
|
| 1353 |
+
AVPMOVM2D
|
| 1354 |
+
AVPMOVM2Q
|
| 1355 |
+
AVPMOVM2W
|
| 1356 |
+
AVPMOVMSKB
|
| 1357 |
+
AVPMOVQ2M
|
| 1358 |
+
AVPMOVQB
|
| 1359 |
+
AVPMOVQD
|
| 1360 |
+
AVPMOVQW
|
| 1361 |
+
AVPMOVSDB
|
| 1362 |
+
AVPMOVSDW
|
| 1363 |
+
AVPMOVSQB
|
| 1364 |
+
AVPMOVSQD
|
| 1365 |
+
AVPMOVSQW
|
| 1366 |
+
AVPMOVSWB
|
| 1367 |
+
AVPMOVSXBD
|
| 1368 |
+
AVPMOVSXBQ
|
| 1369 |
+
AVPMOVSXBW
|
| 1370 |
+
AVPMOVSXDQ
|
| 1371 |
+
AVPMOVSXWD
|
| 1372 |
+
AVPMOVSXWQ
|
| 1373 |
+
AVPMOVUSDB
|
| 1374 |
+
AVPMOVUSDW
|
| 1375 |
+
AVPMOVUSQB
|
| 1376 |
+
AVPMOVUSQD
|
| 1377 |
+
AVPMOVUSQW
|
| 1378 |
+
AVPMOVUSWB
|
| 1379 |
+
AVPMOVW2M
|
| 1380 |
+
AVPMOVWB
|
| 1381 |
+
AVPMOVZXBD
|
| 1382 |
+
AVPMOVZXBQ
|
| 1383 |
+
AVPMOVZXBW
|
| 1384 |
+
AVPMOVZXDQ
|
| 1385 |
+
AVPMOVZXWD
|
| 1386 |
+
AVPMOVZXWQ
|
| 1387 |
+
AVPMULDQ
|
| 1388 |
+
AVPMULHRSW
|
| 1389 |
+
AVPMULHUW
|
| 1390 |
+
AVPMULHW
|
| 1391 |
+
AVPMULLD
|
| 1392 |
+
AVPMULLQ
|
| 1393 |
+
AVPMULLW
|
| 1394 |
+
AVPMULTISHIFTQB
|
| 1395 |
+
AVPMULUDQ
|
| 1396 |
+
AVPOPCNTB
|
| 1397 |
+
AVPOPCNTD
|
| 1398 |
+
AVPOPCNTQ
|
| 1399 |
+
AVPOPCNTW
|
| 1400 |
+
AVPOR
|
| 1401 |
+
AVPORD
|
| 1402 |
+
AVPORQ
|
| 1403 |
+
AVPROLD
|
| 1404 |
+
AVPROLQ
|
| 1405 |
+
AVPROLVD
|
| 1406 |
+
AVPROLVQ
|
| 1407 |
+
AVPRORD
|
| 1408 |
+
AVPRORQ
|
| 1409 |
+
AVPRORVD
|
| 1410 |
+
AVPRORVQ
|
| 1411 |
+
AVPSADBW
|
| 1412 |
+
AVPSCATTERDD
|
| 1413 |
+
AVPSCATTERDQ
|
| 1414 |
+
AVPSCATTERQD
|
| 1415 |
+
AVPSCATTERQQ
|
| 1416 |
+
AVPSHLDD
|
| 1417 |
+
AVPSHLDQ
|
| 1418 |
+
AVPSHLDVD
|
| 1419 |
+
AVPSHLDVQ
|
| 1420 |
+
AVPSHLDVW
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VPTESTNMB
|
| 1472 |
+
AVPTESTNMD
|
| 1473 |
+
AVPTESTNMQ
|
| 1474 |
+
AVPTESTNMW
|
| 1475 |
+
AVPUNPCKHBW
|
| 1476 |
+
AVPUNPCKHDQ
|
| 1477 |
+
AVPUNPCKHQDQ
|
| 1478 |
+
AVPUNPCKHWD
|
| 1479 |
+
AVPUNPCKLBW
|
| 1480 |
+
AVPUNPCKLDQ
|
| 1481 |
+
AVPUNPCKLQDQ
|
| 1482 |
+
AVPUNPCKLWD
|
| 1483 |
+
AVPXOR
|
| 1484 |
+
AVPXORD
|
| 1485 |
+
AVPXORQ
|
| 1486 |
+
AVRANGEPD
|
| 1487 |
+
AVRANGEPS
|
| 1488 |
+
AVRANGESD
|
| 1489 |
+
AVRANGESS
|
| 1490 |
+
AVRCP14PD
|
| 1491 |
+
AVRCP14PS
|
| 1492 |
+
AVRCP14SD
|
| 1493 |
+
AVRCP14SS
|
| 1494 |
+
AVRCP28PD
|
| 1495 |
+
AVRCP28PS
|
| 1496 |
+
AVRCP28SD
|
| 1497 |
+
AVRCP28SS
|
| 1498 |
+
AVRCPPS
|
| 1499 |
+
AVRCPSS
|
| 1500 |
+
AVREDUCEPD
|
| 1501 |
+
AVREDUCEPS
|
| 1502 |
+
AVREDUCESD
|
| 1503 |
+
AVREDUCESS
|
| 1504 |
+
AVRNDSCALEPD
|
| 1505 |
+
AVRNDSCALEPS
|
| 1506 |
+
AVRNDSCALESD
|
| 1507 |
+
AVRNDSCALESS
|
| 1508 |
+
AVROUNDPD
|
| 1509 |
+
AVROUNDPS
|
| 1510 |
+
AVROUNDSD
|
| 1511 |
+
AVROUNDSS
|
| 1512 |
+
AVRSQRT14PD
|
| 1513 |
+
AVRSQRT14PS
|
| 1514 |
+
AVRSQRT14SD
|
| 1515 |
+
AVRSQRT14SS
|
| 1516 |
+
AVRSQRT28PD
|
| 1517 |
+
AVRSQRT28PS
|
| 1518 |
+
AVRSQRT28SD
|
| 1519 |
+
AVRSQRT28SS
|
| 1520 |
+
AVRSQRTPS
|
| 1521 |
+
AVRSQRTSS
|
| 1522 |
+
AVSCALEFPD
|
| 1523 |
+
AVSCALEFPS
|
| 1524 |
+
AVSCALEFSD
|
| 1525 |
+
AVSCALEFSS
|
| 1526 |
+
AVSCATTERDPD
|
| 1527 |
+
AVSCATTERDPS
|
| 1528 |
+
AVSCATTERPF0DPD
|
| 1529 |
+
AVSCATTERPF0DPS
|
| 1530 |
+
AVSCATTERPF0QPD
|
| 1531 |
+
AVSCATTERPF0QPS
|
| 1532 |
+
AVSCATTERPF1DPD
|
| 1533 |
+
AVSCATTERPF1DPS
|
| 1534 |
+
AVSCATTERPF1QPD
|
| 1535 |
+
AVSCATTERPF1QPS
|
| 1536 |
+
AVSCATTERQPD
|
| 1537 |
+
AVSCATTERQPS
|
| 1538 |
+
AVSHUFF32X4
|
| 1539 |
+
AVSHUFF64X2
|
| 1540 |
+
AVSHUFI32X4
|
| 1541 |
+
AVSHUFI64X2
|
| 1542 |
+
AVSHUFPD
|
| 1543 |
+
AVSHUFPS
|
| 1544 |
+
AVSQRTPD
|
| 1545 |
+
AVSQRTPS
|
| 1546 |
+
AVSQRTSD
|
| 1547 |
+
AVSQRTSS
|
| 1548 |
+
AVSTMXCSR
|
| 1549 |
+
AVSUBPD
|
| 1550 |
+
AVSUBPS
|
| 1551 |
+
AVSUBSD
|
| 1552 |
+
AVSUBSS
|
| 1553 |
+
AVTESTPD
|
| 1554 |
+
AVTESTPS
|
| 1555 |
+
AVUCOMISD
|
| 1556 |
+
AVUCOMISS
|
| 1557 |
+
AVUNPCKHPD
|
| 1558 |
+
AVUNPCKHPS
|
| 1559 |
+
AVUNPCKLPD
|
| 1560 |
+
AVUNPCKLPS
|
| 1561 |
+
AVXORPD
|
| 1562 |
+
AVXORPS
|
| 1563 |
+
AVZEROALL
|
| 1564 |
+
AVZEROUPPER
|
| 1565 |
+
AWAIT
|
| 1566 |
+
AWBINVD
|
| 1567 |
+
AWORD
|
| 1568 |
+
AWRFSBASEL
|
| 1569 |
+
AWRFSBASEQ
|
| 1570 |
+
AWRGSBASEL
|
| 1571 |
+
AWRGSBASEQ
|
| 1572 |
+
AWRMSR
|
| 1573 |
+
AWRPKRU
|
| 1574 |
+
AXABORT
|
| 1575 |
+
AXACQUIRE
|
| 1576 |
+
AXADDB
|
| 1577 |
+
AXADDL
|
| 1578 |
+
AXADDQ
|
| 1579 |
+
AXADDW
|
| 1580 |
+
AXBEGIN
|
| 1581 |
+
AXCHGB
|
| 1582 |
+
AXCHGL
|
| 1583 |
+
AXCHGQ
|
| 1584 |
+
AXCHGW
|
| 1585 |
+
AXEND
|
| 1586 |
+
AXGETBV
|
| 1587 |
+
AXLAT
|
| 1588 |
+
AXORB
|
| 1589 |
+
AXORL
|
| 1590 |
+
AXORPD
|
| 1591 |
+
AXORPS
|
| 1592 |
+
AXORQ
|
| 1593 |
+
AXORW
|
| 1594 |
+
AXRELEASE
|
| 1595 |
+
AXRSTOR
|
| 1596 |
+
AXRSTOR64
|
| 1597 |
+
AXRSTORS
|
| 1598 |
+
AXRSTORS64
|
| 1599 |
+
AXSAVE
|
| 1600 |
+
AXSAVE64
|
| 1601 |
+
AXSAVEC
|
| 1602 |
+
AXSAVEC64
|
| 1603 |
+
AXSAVEOPT
|
| 1604 |
+
AXSAVEOPT64
|
| 1605 |
+
AXSAVES
|
| 1606 |
+
AXSAVES64
|
| 1607 |
+
AXSETBV
|
| 1608 |
+
AXTEST
|
| 1609 |
+
ALAST
|
| 1610 |
+
)
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/anames.go
ADDED
|
@@ -0,0 +1,1608 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Code generated by stringer -i aenum.go -o anames.go -p x86; DO NOT EDIT.
|
| 2 |
+
|
| 3 |
+
package x86
|
| 4 |
+
|
| 5 |
+
import "cmd/internal/obj"
|
| 6 |
+
|
| 7 |
+
var Anames = []string{
|
| 8 |
+
obj.A_ARCHSPECIFIC: "AAA",
|
| 9 |
+
"AAD",
|
| 10 |
+
"AAM",
|
| 11 |
+
"AAS",
|
| 12 |
+
"ADCB",
|
| 13 |
+
"ADCL",
|
| 14 |
+
"ADCQ",
|
| 15 |
+
"ADCW",
|
| 16 |
+
"ADCXL",
|
| 17 |
+
"ADCXQ",
|
| 18 |
+
"ADDB",
|
| 19 |
+
"ADDL",
|
| 20 |
+
"ADDPD",
|
| 21 |
+
"ADDPS",
|
| 22 |
+
"ADDQ",
|
| 23 |
+
"ADDSD",
|
| 24 |
+
"ADDSS",
|
| 25 |
+
"ADDSUBPD",
|
| 26 |
+
"ADDSUBPS",
|
| 27 |
+
"ADDW",
|
| 28 |
+
"ADJSP",
|
| 29 |
+
"ADOXL",
|
| 30 |
+
"ADOXQ",
|
| 31 |
+
"AESDEC",
|
| 32 |
+
"AESDECLAST",
|
| 33 |
+
"AESENC",
|
| 34 |
+
"AESENCLAST",
|
| 35 |
+
"AESIMC",
|
| 36 |
+
"AESKEYGENASSIST",
|
| 37 |
+
"ANDB",
|
| 38 |
+
"ANDL",
|
| 39 |
+
"ANDNL",
|
| 40 |
+
"ANDNPD",
|
| 41 |
+
"ANDNPS",
|
| 42 |
+
"ANDNQ",
|
| 43 |
+
"ANDPD",
|
| 44 |
+
"ANDPS",
|
| 45 |
+
"ANDQ",
|
| 46 |
+
"ANDW",
|
| 47 |
+
"ARPL",
|
| 48 |
+
"BEXTRL",
|
| 49 |
+
"BEXTRQ",
|
| 50 |
+
"BLENDPD",
|
| 51 |
+
"BLENDPS",
|
| 52 |
+
"BLENDVPD",
|
| 53 |
+
"BLENDVPS",
|
| 54 |
+
"BLSIL",
|
| 55 |
+
"BLSIQ",
|
| 56 |
+
"BLSMSKL",
|
| 57 |
+
"BLSMSKQ",
|
| 58 |
+
"BLSRL",
|
| 59 |
+
"BLSRQ",
|
| 60 |
+
"BOUNDL",
|
| 61 |
+
"BOUNDW",
|
| 62 |
+
"BSFL",
|
| 63 |
+
"BSFQ",
|
| 64 |
+
"BSFW",
|
| 65 |
+
"BSRL",
|
| 66 |
+
"BSRQ",
|
| 67 |
+
"BSRW",
|
| 68 |
+
"BSWAPL",
|
| 69 |
+
"BSWAPQ",
|
| 70 |
+
"BTCL",
|
| 71 |
+
"BTCQ",
|
| 72 |
+
"BTCW",
|
| 73 |
+
"BTL",
|
| 74 |
+
"BTQ",
|
| 75 |
+
"BTRL",
|
| 76 |
+
"BTRQ",
|
| 77 |
+
"BTRW",
|
| 78 |
+
"BTSL",
|
| 79 |
+
"BTSQ",
|
| 80 |
+
"BTSW",
|
| 81 |
+
"BTW",
|
| 82 |
+
"BYTE",
|
| 83 |
+
"BZHIL",
|
| 84 |
+
"BZHIQ",
|
| 85 |
+
"CBW",
|
| 86 |
+
"CDQ",
|
| 87 |
+
"CDQE",
|
| 88 |
+
"CLAC",
|
| 89 |
+
"CLC",
|
| 90 |
+
"CLD",
|
| 91 |
+
"CLDEMOTE",
|
| 92 |
+
"CLFLUSH",
|
| 93 |
+
"CLFLUSHOPT",
|
| 94 |
+
"CLI",
|
| 95 |
+
"CLTS",
|
| 96 |
+
"CLWB",
|
| 97 |
+
"CMC",
|
| 98 |
+
"CMOVLCC",
|
| 99 |
+
"CMOVLCS",
|
| 100 |
+
"CMOVLEQ",
|
| 101 |
+
"CMOVLGE",
|
| 102 |
+
"CMOVLGT",
|
| 103 |
+
"CMOVLHI",
|
| 104 |
+
"CMOVLLE",
|
| 105 |
+
"CMOVLLS",
|
| 106 |
+
"CMOVLLT",
|
| 107 |
+
"CMOVLMI",
|
| 108 |
+
"CMOVLNE",
|
| 109 |
+
"CMOVLOC",
|
| 110 |
+
"CMOVLOS",
|
| 111 |
+
"CMOVLPC",
|
| 112 |
+
"CMOVLPL",
|
| 113 |
+
"CMOVLPS",
|
| 114 |
+
"CMOVQCC",
|
| 115 |
+
"CMOVQCS",
|
| 116 |
+
"CMOVQEQ",
|
| 117 |
+
"CMOVQGE",
|
| 118 |
+
"CMOVQGT",
|
| 119 |
+
"CMOVQHI",
|
| 120 |
+
"CMOVQLE",
|
| 121 |
+
"CMOVQLS",
|
| 122 |
+
"CMOVQLT",
|
| 123 |
+
"CMOVQMI",
|
| 124 |
+
"CMOVQNE",
|
| 125 |
+
"CMOVQOC",
|
| 126 |
+
"CMOVQOS",
|
| 127 |
+
"CMOVQPC",
|
| 128 |
+
"CMOVQPL",
|
| 129 |
+
"CMOVQPS",
|
| 130 |
+
"CMOVWCC",
|
| 131 |
+
"CMOVWCS",
|
| 132 |
+
"CMOVWEQ",
|
| 133 |
+
"CMOVWGE",
|
| 134 |
+
"CMOVWGT",
|
| 135 |
+
"CMOVWHI",
|
| 136 |
+
"CMOVWLE",
|
| 137 |
+
"CMOVWLS",
|
| 138 |
+
"CMOVWLT",
|
| 139 |
+
"CMOVWMI",
|
| 140 |
+
"CMOVWNE",
|
| 141 |
+
"CMOVWOC",
|
| 142 |
+
"CMOVWOS",
|
| 143 |
+
"CMOVWPC",
|
| 144 |
+
"CMOVWPL",
|
| 145 |
+
"CMOVWPS",
|
| 146 |
+
"CMPB",
|
| 147 |
+
"CMPL",
|
| 148 |
+
"CMPPD",
|
| 149 |
+
"CMPPS",
|
| 150 |
+
"CMPQ",
|
| 151 |
+
"CMPSB",
|
| 152 |
+
"CMPSD",
|
| 153 |
+
"CMPSL",
|
| 154 |
+
"CMPSQ",
|
| 155 |
+
"CMPSS",
|
| 156 |
+
"CMPSW",
|
| 157 |
+
"CMPW",
|
| 158 |
+
"CMPXCHG16B",
|
| 159 |
+
"CMPXCHG8B",
|
| 160 |
+
"CMPXCHGB",
|
| 161 |
+
"CMPXCHGL",
|
| 162 |
+
"CMPXCHGQ",
|
| 163 |
+
"CMPXCHGW",
|
| 164 |
+
"COMISD",
|
| 165 |
+
"COMISS",
|
| 166 |
+
"CPUID",
|
| 167 |
+
"CQO",
|
| 168 |
+
"CRC32B",
|
| 169 |
+
"CRC32L",
|
| 170 |
+
"CRC32Q",
|
| 171 |
+
"CRC32W",
|
| 172 |
+
"CVTPD2PL",
|
| 173 |
+
"CVTPD2PS",
|
| 174 |
+
"CVTPL2PD",
|
| 175 |
+
"CVTPL2PS",
|
| 176 |
+
"CVTPS2PD",
|
| 177 |
+
"CVTPS2PL",
|
| 178 |
+
"CVTSD2SL",
|
| 179 |
+
"CVTSD2SQ",
|
| 180 |
+
"CVTSD2SS",
|
| 181 |
+
"CVTSL2SD",
|
| 182 |
+
"CVTSL2SS",
|
| 183 |
+
"CVTSQ2SD",
|
| 184 |
+
"CVTSQ2SS",
|
| 185 |
+
"CVTSS2SD",
|
| 186 |
+
"CVTSS2SL",
|
| 187 |
+
"CVTSS2SQ",
|
| 188 |
+
"CVTTPD2PL",
|
| 189 |
+
"CVTTPS2PL",
|
| 190 |
+
"CVTTSD2SL",
|
| 191 |
+
"CVTTSD2SQ",
|
| 192 |
+
"CVTTSS2SL",
|
| 193 |
+
"CVTTSS2SQ",
|
| 194 |
+
"CWD",
|
| 195 |
+
"CWDE",
|
| 196 |
+
"DAA",
|
| 197 |
+
"DAS",
|
| 198 |
+
"DECB",
|
| 199 |
+
"DECL",
|
| 200 |
+
"DECQ",
|
| 201 |
+
"DECW",
|
| 202 |
+
"DIVB",
|
| 203 |
+
"DIVL",
|
| 204 |
+
"DIVPD",
|
| 205 |
+
"DIVPS",
|
| 206 |
+
"DIVQ",
|
| 207 |
+
"DIVSD",
|
| 208 |
+
"DIVSS",
|
| 209 |
+
"DIVW",
|
| 210 |
+
"DPPD",
|
| 211 |
+
"DPPS",
|
| 212 |
+
"EMMS",
|
| 213 |
+
"ENTER",
|
| 214 |
+
"EXTRACTPS",
|
| 215 |
+
"F2XM1",
|
| 216 |
+
"FABS",
|
| 217 |
+
"FADDD",
|
| 218 |
+
"FADDDP",
|
| 219 |
+
"FADDF",
|
| 220 |
+
"FADDL",
|
| 221 |
+
"FADDW",
|
| 222 |
+
"FBLD",
|
| 223 |
+
"FBSTP",
|
| 224 |
+
"FCHS",
|
| 225 |
+
"FCLEX",
|
| 226 |
+
"FCMOVB",
|
| 227 |
+
"FCMOVBE",
|
| 228 |
+
"FCMOVCC",
|
| 229 |
+
"FCMOVCS",
|
| 230 |
+
"FCMOVE",
|
| 231 |
+
"FCMOVEQ",
|
| 232 |
+
"FCMOVHI",
|
| 233 |
+
"FCMOVLS",
|
| 234 |
+
"FCMOVNB",
|
| 235 |
+
"FCMOVNBE",
|
| 236 |
+
"FCMOVNE",
|
| 237 |
+
"FCMOVNU",
|
| 238 |
+
"FCMOVU",
|
| 239 |
+
"FCMOVUN",
|
| 240 |
+
"FCOMD",
|
| 241 |
+
"FCOMDP",
|
| 242 |
+
"FCOMDPP",
|
| 243 |
+
"FCOMF",
|
| 244 |
+
"FCOMFP",
|
| 245 |
+
"FCOMI",
|
| 246 |
+
"FCOMIP",
|
| 247 |
+
"FCOML",
|
| 248 |
+
"FCOMLP",
|
| 249 |
+
"FCOMW",
|
| 250 |
+
"FCOMWP",
|
| 251 |
+
"FCOS",
|
| 252 |
+
"FDECSTP",
|
| 253 |
+
"FDIVD",
|
| 254 |
+
"FDIVDP",
|
| 255 |
+
"FDIVF",
|
| 256 |
+
"FDIVL",
|
| 257 |
+
"FDIVRD",
|
| 258 |
+
"FDIVRDP",
|
| 259 |
+
"FDIVRF",
|
| 260 |
+
"FDIVRL",
|
| 261 |
+
"FDIVRW",
|
| 262 |
+
"FDIVW",
|
| 263 |
+
"FFREE",
|
| 264 |
+
"FINCSTP",
|
| 265 |
+
"FINIT",
|
| 266 |
+
"FLD1",
|
| 267 |
+
"FLDCW",
|
| 268 |
+
"FLDENV",
|
| 269 |
+
"FLDL2E",
|
| 270 |
+
"FLDL2T",
|
| 271 |
+
"FLDLG2",
|
| 272 |
+
"FLDLN2",
|
| 273 |
+
"FLDPI",
|
| 274 |
+
"FLDZ",
|
| 275 |
+
"FMOVB",
|
| 276 |
+
"FMOVBP",
|
| 277 |
+
"FMOVD",
|
| 278 |
+
"FMOVDP",
|
| 279 |
+
"FMOVF",
|
| 280 |
+
"FMOVFP",
|
| 281 |
+
"FMOVL",
|
| 282 |
+
"FMOVLP",
|
| 283 |
+
"FMOVV",
|
| 284 |
+
"FMOVVP",
|
| 285 |
+
"FMOVW",
|
| 286 |
+
"FMOVWP",
|
| 287 |
+
"FMOVX",
|
| 288 |
+
"FMOVXP",
|
| 289 |
+
"FMULD",
|
| 290 |
+
"FMULDP",
|
| 291 |
+
"FMULF",
|
| 292 |
+
"FMULL",
|
| 293 |
+
"FMULW",
|
| 294 |
+
"FNOP",
|
| 295 |
+
"FPATAN",
|
| 296 |
+
"FPREM",
|
| 297 |
+
"FPREM1",
|
| 298 |
+
"FPTAN",
|
| 299 |
+
"FRNDINT",
|
| 300 |
+
"FRSTOR",
|
| 301 |
+
"FSAVE",
|
| 302 |
+
"FSCALE",
|
| 303 |
+
"FSIN",
|
| 304 |
+
"FSINCOS",
|
| 305 |
+
"FSQRT",
|
| 306 |
+
"FSTCW",
|
| 307 |
+
"FSTENV",
|
| 308 |
+
"FSTSW",
|
| 309 |
+
"FSUBD",
|
| 310 |
+
"FSUBDP",
|
| 311 |
+
"FSUBF",
|
| 312 |
+
"FSUBL",
|
| 313 |
+
"FSUBRD",
|
| 314 |
+
"FSUBRDP",
|
| 315 |
+
"FSUBRF",
|
| 316 |
+
"FSUBRL",
|
| 317 |
+
"FSUBRW",
|
| 318 |
+
"FSUBW",
|
| 319 |
+
"FTST",
|
| 320 |
+
"FUCOM",
|
| 321 |
+
"FUCOMI",
|
| 322 |
+
"FUCOMIP",
|
| 323 |
+
"FUCOMP",
|
| 324 |
+
"FUCOMPP",
|
| 325 |
+
"FXAM",
|
| 326 |
+
"FXCHD",
|
| 327 |
+
"FXRSTOR",
|
| 328 |
+
"FXRSTOR64",
|
| 329 |
+
"FXSAVE",
|
| 330 |
+
"FXSAVE64",
|
| 331 |
+
"FXTRACT",
|
| 332 |
+
"FYL2X",
|
| 333 |
+
"FYL2XP1",
|
| 334 |
+
"HADDPD",
|
| 335 |
+
"HADDPS",
|
| 336 |
+
"HLT",
|
| 337 |
+
"HSUBPD",
|
| 338 |
+
"HSUBPS",
|
| 339 |
+
"ICEBP",
|
| 340 |
+
"IDIVB",
|
| 341 |
+
"IDIVL",
|
| 342 |
+
"IDIVQ",
|
| 343 |
+
"IDIVW",
|
| 344 |
+
"IMUL3L",
|
| 345 |
+
"IMUL3Q",
|
| 346 |
+
"IMUL3W",
|
| 347 |
+
"IMULB",
|
| 348 |
+
"IMULL",
|
| 349 |
+
"IMULQ",
|
| 350 |
+
"IMULW",
|
| 351 |
+
"INB",
|
| 352 |
+
"INCB",
|
| 353 |
+
"INCL",
|
| 354 |
+
"INCQ",
|
| 355 |
+
"INCW",
|
| 356 |
+
"INL",
|
| 357 |
+
"INSB",
|
| 358 |
+
"INSERTPS",
|
| 359 |
+
"INSL",
|
| 360 |
+
"INSW",
|
| 361 |
+
"INT",
|
| 362 |
+
"INTO",
|
| 363 |
+
"INVD",
|
| 364 |
+
"INVLPG",
|
| 365 |
+
"INVPCID",
|
| 366 |
+
"INW",
|
| 367 |
+
"IRETL",
|
| 368 |
+
"IRETQ",
|
| 369 |
+
"IRETW",
|
| 370 |
+
"JCC",
|
| 371 |
+
"JCS",
|
| 372 |
+
"JCXZL",
|
| 373 |
+
"JCXZQ",
|
| 374 |
+
"JCXZW",
|
| 375 |
+
"JEQ",
|
| 376 |
+
"JGE",
|
| 377 |
+
"JGT",
|
| 378 |
+
"JHI",
|
| 379 |
+
"JLE",
|
| 380 |
+
"JLS",
|
| 381 |
+
"JLT",
|
| 382 |
+
"JMI",
|
| 383 |
+
"JNE",
|
| 384 |
+
"JOC",
|
| 385 |
+
"JOS",
|
| 386 |
+
"JPC",
|
| 387 |
+
"JPL",
|
| 388 |
+
"JPS",
|
| 389 |
+
"KADDB",
|
| 390 |
+
"KADDD",
|
| 391 |
+
"KADDQ",
|
| 392 |
+
"KADDW",
|
| 393 |
+
"KANDB",
|
| 394 |
+
"KANDD",
|
| 395 |
+
"KANDNB",
|
| 396 |
+
"KANDND",
|
| 397 |
+
"KANDNQ",
|
| 398 |
+
"KANDNW",
|
| 399 |
+
"KANDQ",
|
| 400 |
+
"KANDW",
|
| 401 |
+
"KMOVB",
|
| 402 |
+
"KMOVD",
|
| 403 |
+
"KMOVQ",
|
| 404 |
+
"KMOVW",
|
| 405 |
+
"KNOTB",
|
| 406 |
+
"KNOTD",
|
| 407 |
+
"KNOTQ",
|
| 408 |
+
"KNOTW",
|
| 409 |
+
"KORB",
|
| 410 |
+
"KORD",
|
| 411 |
+
"KORQ",
|
| 412 |
+
"KORTESTB",
|
| 413 |
+
"KORTESTD",
|
| 414 |
+
"KORTESTQ",
|
| 415 |
+
"KORTESTW",
|
| 416 |
+
"KORW",
|
| 417 |
+
"KSHIFTLB",
|
| 418 |
+
"KSHIFTLD",
|
| 419 |
+
"KSHIFTLQ",
|
| 420 |
+
"KSHIFTLW",
|
| 421 |
+
"KSHIFTRB",
|
| 422 |
+
"KSHIFTRD",
|
| 423 |
+
"KSHIFTRQ",
|
| 424 |
+
"KSHIFTRW",
|
| 425 |
+
"KTESTB",
|
| 426 |
+
"KTESTD",
|
| 427 |
+
"KTESTQ",
|
| 428 |
+
"KTESTW",
|
| 429 |
+
"KUNPCKBW",
|
| 430 |
+
"KUNPCKDQ",
|
| 431 |
+
"KUNPCKWD",
|
| 432 |
+
"KXNORB",
|
| 433 |
+
"KXNORD",
|
| 434 |
+
"KXNORQ",
|
| 435 |
+
"KXNORW",
|
| 436 |
+
"KXORB",
|
| 437 |
+
"KXORD",
|
| 438 |
+
"KXORQ",
|
| 439 |
+
"KXORW",
|
| 440 |
+
"LAHF",
|
| 441 |
+
"LARL",
|
| 442 |
+
"LARQ",
|
| 443 |
+
"LARW",
|
| 444 |
+
"LDDQU",
|
| 445 |
+
"LDMXCSR",
|
| 446 |
+
"LEAL",
|
| 447 |
+
"LEAQ",
|
| 448 |
+
"LEAVEL",
|
| 449 |
+
"LEAVEQ",
|
| 450 |
+
"LEAVEW",
|
| 451 |
+
"LEAW",
|
| 452 |
+
"LFENCE",
|
| 453 |
+
"LFSL",
|
| 454 |
+
"LFSQ",
|
| 455 |
+
"LFSW",
|
| 456 |
+
"LGDT",
|
| 457 |
+
"LGSL",
|
| 458 |
+
"LGSQ",
|
| 459 |
+
"LGSW",
|
| 460 |
+
"LIDT",
|
| 461 |
+
"LLDT",
|
| 462 |
+
"LMSW",
|
| 463 |
+
"LOCK",
|
| 464 |
+
"LODSB",
|
| 465 |
+
"LODSL",
|
| 466 |
+
"LODSQ",
|
| 467 |
+
"LODSW",
|
| 468 |
+
"LONG",
|
| 469 |
+
"LOOP",
|
| 470 |
+
"LOOPEQ",
|
| 471 |
+
"LOOPNE",
|
| 472 |
+
"LSLL",
|
| 473 |
+
"LSLQ",
|
| 474 |
+
"LSLW",
|
| 475 |
+
"LSSL",
|
| 476 |
+
"LSSQ",
|
| 477 |
+
"LSSW",
|
| 478 |
+
"LTR",
|
| 479 |
+
"LZCNTL",
|
| 480 |
+
"LZCNTQ",
|
| 481 |
+
"LZCNTW",
|
| 482 |
+
"MASKMOVOU",
|
| 483 |
+
"MASKMOVQ",
|
| 484 |
+
"MAXPD",
|
| 485 |
+
"MAXPS",
|
| 486 |
+
"MAXSD",
|
| 487 |
+
"MAXSS",
|
| 488 |
+
"MFENCE",
|
| 489 |
+
"MINPD",
|
| 490 |
+
"MINPS",
|
| 491 |
+
"MINSD",
|
| 492 |
+
"MINSS",
|
| 493 |
+
"MONITOR",
|
| 494 |
+
"MOVAPD",
|
| 495 |
+
"MOVAPS",
|
| 496 |
+
"MOVB",
|
| 497 |
+
"MOVBEL",
|
| 498 |
+
"MOVBEQ",
|
| 499 |
+
"MOVBEW",
|
| 500 |
+
"MOVBLSX",
|
| 501 |
+
"MOVBLZX",
|
| 502 |
+
"MOVBQSX",
|
| 503 |
+
"MOVBQZX",
|
| 504 |
+
"MOVBWSX",
|
| 505 |
+
"MOVBWZX",
|
| 506 |
+
"MOVDDUP",
|
| 507 |
+
"MOVHLPS",
|
| 508 |
+
"MOVHPD",
|
| 509 |
+
"MOVHPS",
|
| 510 |
+
"MOVL",
|
| 511 |
+
"MOVLHPS",
|
| 512 |
+
"MOVLPD",
|
| 513 |
+
"MOVLPS",
|
| 514 |
+
"MOVLQSX",
|
| 515 |
+
"MOVLQZX",
|
| 516 |
+
"MOVMSKPD",
|
| 517 |
+
"MOVMSKPS",
|
| 518 |
+
"MOVNTDQA",
|
| 519 |
+
"MOVNTIL",
|
| 520 |
+
"MOVNTIQ",
|
| 521 |
+
"MOVNTO",
|
| 522 |
+
"MOVNTPD",
|
| 523 |
+
"MOVNTPS",
|
| 524 |
+
"MOVNTQ",
|
| 525 |
+
"MOVO",
|
| 526 |
+
"MOVOU",
|
| 527 |
+
"MOVQ",
|
| 528 |
+
"MOVQL",
|
| 529 |
+
"MOVQOZX",
|
| 530 |
+
"MOVSB",
|
| 531 |
+
"MOVSD",
|
| 532 |
+
"MOVSHDUP",
|
| 533 |
+
"MOVSL",
|
| 534 |
+
"MOVSLDUP",
|
| 535 |
+
"MOVSQ",
|
| 536 |
+
"MOVSS",
|
| 537 |
+
"MOVSW",
|
| 538 |
+
"MOVSWW",
|
| 539 |
+
"MOVUPD",
|
| 540 |
+
"MOVUPS",
|
| 541 |
+
"MOVW",
|
| 542 |
+
"MOVWLSX",
|
| 543 |
+
"MOVWLZX",
|
| 544 |
+
"MOVWQSX",
|
| 545 |
+
"MOVWQZX",
|
| 546 |
+
"MOVZWW",
|
| 547 |
+
"MPSADBW",
|
| 548 |
+
"MULB",
|
| 549 |
+
"MULL",
|
| 550 |
+
"MULPD",
|
| 551 |
+
"MULPS",
|
| 552 |
+
"MULQ",
|
| 553 |
+
"MULSD",
|
| 554 |
+
"MULSS",
|
| 555 |
+
"MULW",
|
| 556 |
+
"MULXL",
|
| 557 |
+
"MULXQ",
|
| 558 |
+
"MWAIT",
|
| 559 |
+
"NEGB",
|
| 560 |
+
"NEGL",
|
| 561 |
+
"NEGQ",
|
| 562 |
+
"NEGW",
|
| 563 |
+
"NOPL",
|
| 564 |
+
"NOPW",
|
| 565 |
+
"NOTB",
|
| 566 |
+
"NOTL",
|
| 567 |
+
"NOTQ",
|
| 568 |
+
"NOTW",
|
| 569 |
+
"ORB",
|
| 570 |
+
"ORL",
|
| 571 |
+
"ORPD",
|
| 572 |
+
"ORPS",
|
| 573 |
+
"ORQ",
|
| 574 |
+
"ORW",
|
| 575 |
+
"OUTB",
|
| 576 |
+
"OUTL",
|
| 577 |
+
"OUTSB",
|
| 578 |
+
"OUTSL",
|
| 579 |
+
"OUTSW",
|
| 580 |
+
"OUTW",
|
| 581 |
+
"PABSB",
|
| 582 |
+
"PABSD",
|
| 583 |
+
"PABSW",
|
| 584 |
+
"PACKSSLW",
|
| 585 |
+
"PACKSSWB",
|
| 586 |
+
"PACKUSDW",
|
| 587 |
+
"PACKUSWB",
|
| 588 |
+
"PADDB",
|
| 589 |
+
"PADDL",
|
| 590 |
+
"PADDQ",
|
| 591 |
+
"PADDSB",
|
| 592 |
+
"PADDSW",
|
| 593 |
+
"PADDUSB",
|
| 594 |
+
"PADDUSW",
|
| 595 |
+
"PADDW",
|
| 596 |
+
"PALIGNR",
|
| 597 |
+
"PAND",
|
| 598 |
+
"PANDN",
|
| 599 |
+
"PAUSE",
|
| 600 |
+
"PAVGB",
|
| 601 |
+
"PAVGW",
|
| 602 |
+
"PBLENDVB",
|
| 603 |
+
"PBLENDW",
|
| 604 |
+
"PCLMULQDQ",
|
| 605 |
+
"PCMPEQB",
|
| 606 |
+
"PCMPEQL",
|
| 607 |
+
"PCMPEQQ",
|
| 608 |
+
"PCMPEQW",
|
| 609 |
+
"PCMPESTRI",
|
| 610 |
+
"PCMPESTRM",
|
| 611 |
+
"PCMPGTB",
|
| 612 |
+
"PCMPGTL",
|
| 613 |
+
"PCMPGTQ",
|
| 614 |
+
"PCMPGTW",
|
| 615 |
+
"PCMPISTRI",
|
| 616 |
+
"PCMPISTRM",
|
| 617 |
+
"PDEPL",
|
| 618 |
+
"PDEPQ",
|
| 619 |
+
"PEXTL",
|
| 620 |
+
"PEXTQ",
|
| 621 |
+
"PEXTRB",
|
| 622 |
+
"PEXTRD",
|
| 623 |
+
"PEXTRQ",
|
| 624 |
+
"PEXTRW",
|
| 625 |
+
"PHADDD",
|
| 626 |
+
"PHADDSW",
|
| 627 |
+
"PHADDW",
|
| 628 |
+
"PHMINPOSUW",
|
| 629 |
+
"PHSUBD",
|
| 630 |
+
"PHSUBSW",
|
| 631 |
+
"PHSUBW",
|
| 632 |
+
"PINSRB",
|
| 633 |
+
"PINSRD",
|
| 634 |
+
"PINSRQ",
|
| 635 |
+
"PINSRW",
|
| 636 |
+
"PMADDUBSW",
|
| 637 |
+
"PMADDWL",
|
| 638 |
+
"PMAXSB",
|
| 639 |
+
"PMAXSD",
|
| 640 |
+
"PMAXSW",
|
| 641 |
+
"PMAXUB",
|
| 642 |
+
"PMAXUD",
|
| 643 |
+
"PMAXUW",
|
| 644 |
+
"PMINSB",
|
| 645 |
+
"PMINSD",
|
| 646 |
+
"PMINSW",
|
| 647 |
+
"PMINUB",
|
| 648 |
+
"PMINUD",
|
| 649 |
+
"PMINUW",
|
| 650 |
+
"PMOVMSKB",
|
| 651 |
+
"PMOVSXBD",
|
| 652 |
+
"PMOVSXBQ",
|
| 653 |
+
"PMOVSXBW",
|
| 654 |
+
"PMOVSXDQ",
|
| 655 |
+
"PMOVSXWD",
|
| 656 |
+
"PMOVSXWQ",
|
| 657 |
+
"PMOVZXBD",
|
| 658 |
+
"PMOVZXBQ",
|
| 659 |
+
"PMOVZXBW",
|
| 660 |
+
"PMOVZXDQ",
|
| 661 |
+
"PMOVZXWD",
|
| 662 |
+
"PMOVZXWQ",
|
| 663 |
+
"PMULDQ",
|
| 664 |
+
"PMULHRSW",
|
| 665 |
+
"PMULHUW",
|
| 666 |
+
"PMULHW",
|
| 667 |
+
"PMULLD",
|
| 668 |
+
"PMULLW",
|
| 669 |
+
"PMULULQ",
|
| 670 |
+
"POPAL",
|
| 671 |
+
"POPAW",
|
| 672 |
+
"POPCNTL",
|
| 673 |
+
"POPCNTQ",
|
| 674 |
+
"POPCNTW",
|
| 675 |
+
"POPFL",
|
| 676 |
+
"POPFQ",
|
| 677 |
+
"POPFW",
|
| 678 |
+
"POPL",
|
| 679 |
+
"POPQ",
|
| 680 |
+
"POPW",
|
| 681 |
+
"POR",
|
| 682 |
+
"PREFETCHNTA",
|
| 683 |
+
"PREFETCHT0",
|
| 684 |
+
"PREFETCHT1",
|
| 685 |
+
"PREFETCHT2",
|
| 686 |
+
"PSADBW",
|
| 687 |
+
"PSHUFB",
|
| 688 |
+
"PSHUFD",
|
| 689 |
+
"PSHUFHW",
|
| 690 |
+
"PSHUFL",
|
| 691 |
+
"PSHUFLW",
|
| 692 |
+
"PSHUFW",
|
| 693 |
+
"PSIGNB",
|
| 694 |
+
"PSIGND",
|
| 695 |
+
"PSIGNW",
|
| 696 |
+
"PSLLL",
|
| 697 |
+
"PSLLO",
|
| 698 |
+
"PSLLQ",
|
| 699 |
+
"PSLLW",
|
| 700 |
+
"PSRAL",
|
| 701 |
+
"PSRAW",
|
| 702 |
+
"PSRLL",
|
| 703 |
+
"PSRLO",
|
| 704 |
+
"PSRLQ",
|
| 705 |
+
"PSRLW",
|
| 706 |
+
"PSUBB",
|
| 707 |
+
"PSUBL",
|
| 708 |
+
"PSUBQ",
|
| 709 |
+
"PSUBSB",
|
| 710 |
+
"PSUBSW",
|
| 711 |
+
"PSUBUSB",
|
| 712 |
+
"PSUBUSW",
|
| 713 |
+
"PSUBW",
|
| 714 |
+
"PTEST",
|
| 715 |
+
"PUNPCKHBW",
|
| 716 |
+
"PUNPCKHLQ",
|
| 717 |
+
"PUNPCKHQDQ",
|
| 718 |
+
"PUNPCKHWL",
|
| 719 |
+
"PUNPCKLBW",
|
| 720 |
+
"PUNPCKLLQ",
|
| 721 |
+
"PUNPCKLQDQ",
|
| 722 |
+
"PUNPCKLWL",
|
| 723 |
+
"PUSHAL",
|
| 724 |
+
"PUSHAW",
|
| 725 |
+
"PUSHFL",
|
| 726 |
+
"PUSHFQ",
|
| 727 |
+
"PUSHFW",
|
| 728 |
+
"PUSHL",
|
| 729 |
+
"PUSHQ",
|
| 730 |
+
"PUSHW",
|
| 731 |
+
"PXOR",
|
| 732 |
+
"QUAD",
|
| 733 |
+
"RCLB",
|
| 734 |
+
"RCLL",
|
| 735 |
+
"RCLQ",
|
| 736 |
+
"RCLW",
|
| 737 |
+
"RCPPS",
|
| 738 |
+
"RCPSS",
|
| 739 |
+
"RCRB",
|
| 740 |
+
"RCRL",
|
| 741 |
+
"RCRQ",
|
| 742 |
+
"RCRW",
|
| 743 |
+
"RDFSBASEL",
|
| 744 |
+
"RDFSBASEQ",
|
| 745 |
+
"RDGSBASEL",
|
| 746 |
+
"RDGSBASEQ",
|
| 747 |
+
"RDMSR",
|
| 748 |
+
"RDPID",
|
| 749 |
+
"RDPKRU",
|
| 750 |
+
"RDPMC",
|
| 751 |
+
"RDRANDL",
|
| 752 |
+
"RDRANDQ",
|
| 753 |
+
"RDRANDW",
|
| 754 |
+
"RDSEEDL",
|
| 755 |
+
"RDSEEDQ",
|
| 756 |
+
"RDSEEDW",
|
| 757 |
+
"RDTSC",
|
| 758 |
+
"RDTSCP",
|
| 759 |
+
"REP",
|
| 760 |
+
"REPN",
|
| 761 |
+
"RETFL",
|
| 762 |
+
"RETFQ",
|
| 763 |
+
"RETFW",
|
| 764 |
+
"ROLB",
|
| 765 |
+
"ROLL",
|
| 766 |
+
"ROLQ",
|
| 767 |
+
"ROLW",
|
| 768 |
+
"RORB",
|
| 769 |
+
"RORL",
|
| 770 |
+
"RORQ",
|
| 771 |
+
"RORW",
|
| 772 |
+
"RORXL",
|
| 773 |
+
"RORXQ",
|
| 774 |
+
"ROUNDPD",
|
| 775 |
+
"ROUNDPS",
|
| 776 |
+
"ROUNDSD",
|
| 777 |
+
"ROUNDSS",
|
| 778 |
+
"RSM",
|
| 779 |
+
"RSQRTPS",
|
| 780 |
+
"RSQRTSS",
|
| 781 |
+
"SAHF",
|
| 782 |
+
"SALB",
|
| 783 |
+
"SALL",
|
| 784 |
+
"SALQ",
|
| 785 |
+
"SALW",
|
| 786 |
+
"SARB",
|
| 787 |
+
"SARL",
|
| 788 |
+
"SARQ",
|
| 789 |
+
"SARW",
|
| 790 |
+
"SARXL",
|
| 791 |
+
"SARXQ",
|
| 792 |
+
"SBBB",
|
| 793 |
+
"SBBL",
|
| 794 |
+
"SBBQ",
|
| 795 |
+
"SBBW",
|
| 796 |
+
"SCASB",
|
| 797 |
+
"SCASL",
|
| 798 |
+
"SCASQ",
|
| 799 |
+
"SCASW",
|
| 800 |
+
"SETCC",
|
| 801 |
+
"SETCS",
|
| 802 |
+
"SETEQ",
|
| 803 |
+
"SETGE",
|
| 804 |
+
"SETGT",
|
| 805 |
+
"SETHI",
|
| 806 |
+
"SETLE",
|
| 807 |
+
"SETLS",
|
| 808 |
+
"SETLT",
|
| 809 |
+
"SETMI",
|
| 810 |
+
"SETNE",
|
| 811 |
+
"SETOC",
|
| 812 |
+
"SETOS",
|
| 813 |
+
"SETPC",
|
| 814 |
+
"SETPL",
|
| 815 |
+
"SETPS",
|
| 816 |
+
"SFENCE",
|
| 817 |
+
"SGDT",
|
| 818 |
+
"SHA1MSG1",
|
| 819 |
+
"SHA1MSG2",
|
| 820 |
+
"SHA1NEXTE",
|
| 821 |
+
"SHA1RNDS4",
|
| 822 |
+
"SHA256MSG1",
|
| 823 |
+
"SHA256MSG2",
|
| 824 |
+
"SHA256RNDS2",
|
| 825 |
+
"SHLB",
|
| 826 |
+
"SHLL",
|
| 827 |
+
"SHLQ",
|
| 828 |
+
"SHLW",
|
| 829 |
+
"SHLXL",
|
| 830 |
+
"SHLXQ",
|
| 831 |
+
"SHRB",
|
| 832 |
+
"SHRL",
|
| 833 |
+
"SHRQ",
|
| 834 |
+
"SHRW",
|
| 835 |
+
"SHRXL",
|
| 836 |
+
"SHRXQ",
|
| 837 |
+
"SHUFPD",
|
| 838 |
+
"SHUFPS",
|
| 839 |
+
"SIDT",
|
| 840 |
+
"SLDTL",
|
| 841 |
+
"SLDTQ",
|
| 842 |
+
"SLDTW",
|
| 843 |
+
"SMSWL",
|
| 844 |
+
"SMSWQ",
|
| 845 |
+
"SMSWW",
|
| 846 |
+
"SQRTPD",
|
| 847 |
+
"SQRTPS",
|
| 848 |
+
"SQRTSD",
|
| 849 |
+
"SQRTSS",
|
| 850 |
+
"STAC",
|
| 851 |
+
"STC",
|
| 852 |
+
"STD",
|
| 853 |
+
"STI",
|
| 854 |
+
"STMXCSR",
|
| 855 |
+
"STOSB",
|
| 856 |
+
"STOSL",
|
| 857 |
+
"STOSQ",
|
| 858 |
+
"STOSW",
|
| 859 |
+
"STRL",
|
| 860 |
+
"STRQ",
|
| 861 |
+
"STRW",
|
| 862 |
+
"SUBB",
|
| 863 |
+
"SUBL",
|
| 864 |
+
"SUBPD",
|
| 865 |
+
"SUBPS",
|
| 866 |
+
"SUBQ",
|
| 867 |
+
"SUBSD",
|
| 868 |
+
"SUBSS",
|
| 869 |
+
"SUBW",
|
| 870 |
+
"SWAPGS",
|
| 871 |
+
"SYSCALL",
|
| 872 |
+
"SYSENTER",
|
| 873 |
+
"SYSENTER64",
|
| 874 |
+
"SYSEXIT",
|
| 875 |
+
"SYSEXIT64",
|
| 876 |
+
"SYSRET",
|
| 877 |
+
"TESTB",
|
| 878 |
+
"TESTL",
|
| 879 |
+
"TESTQ",
|
| 880 |
+
"TESTW",
|
| 881 |
+
"TPAUSE",
|
| 882 |
+
"TZCNTL",
|
| 883 |
+
"TZCNTQ",
|
| 884 |
+
"TZCNTW",
|
| 885 |
+
"UCOMISD",
|
| 886 |
+
"UCOMISS",
|
| 887 |
+
"UD1",
|
| 888 |
+
"UD2",
|
| 889 |
+
"UMWAIT",
|
| 890 |
+
"UNPCKHPD",
|
| 891 |
+
"UNPCKHPS",
|
| 892 |
+
"UNPCKLPD",
|
| 893 |
+
"UNPCKLPS",
|
| 894 |
+
"UMONITOR",
|
| 895 |
+
"V4FMADDPS",
|
| 896 |
+
"V4FMADDSS",
|
| 897 |
+
"V4FNMADDPS",
|
| 898 |
+
"V4FNMADDSS",
|
| 899 |
+
"VADDPD",
|
| 900 |
+
"VADDPS",
|
| 901 |
+
"VADDSD",
|
| 902 |
+
"VADDSS",
|
| 903 |
+
"VADDSUBPD",
|
| 904 |
+
"VADDSUBPS",
|
| 905 |
+
"VAESDEC",
|
| 906 |
+
"VAESDECLAST",
|
| 907 |
+
"VAESENC",
|
| 908 |
+
"VAESENCLAST",
|
| 909 |
+
"VAESIMC",
|
| 910 |
+
"VAESKEYGENASSIST",
|
| 911 |
+
"VALIGND",
|
| 912 |
+
"VALIGNQ",
|
| 913 |
+
"VANDNPD",
|
| 914 |
+
"VANDNPS",
|
| 915 |
+
"VANDPD",
|
| 916 |
+
"VANDPS",
|
| 917 |
+
"VBLENDMPD",
|
| 918 |
+
"VBLENDMPS",
|
| 919 |
+
"VBLENDPD",
|
| 920 |
+
"VBLENDPS",
|
| 921 |
+
"VBLENDVPD",
|
| 922 |
+
"VBLENDVPS",
|
| 923 |
+
"VBROADCASTF128",
|
| 924 |
+
"VBROADCASTF32X2",
|
| 925 |
+
"VBROADCASTF32X4",
|
| 926 |
+
"VBROADCASTF32X8",
|
| 927 |
+
"VBROADCASTF64X2",
|
| 928 |
+
"VBROADCASTF64X4",
|
| 929 |
+
"VBROADCASTI128",
|
| 930 |
+
"VBROADCASTI32X2",
|
| 931 |
+
"VBROADCASTI32X4",
|
| 932 |
+
"VBROADCASTI32X8",
|
| 933 |
+
"VBROADCASTI64X2",
|
| 934 |
+
"VBROADCASTI64X4",
|
| 935 |
+
"VBROADCASTSD",
|
| 936 |
+
"VBROADCASTSS",
|
| 937 |
+
"VCMPPD",
|
| 938 |
+
"VCMPPS",
|
| 939 |
+
"VCMPSD",
|
| 940 |
+
"VCMPSS",
|
| 941 |
+
"VCOMISD",
|
| 942 |
+
"VCOMISS",
|
| 943 |
+
"VCOMPRESSPD",
|
| 944 |
+
"VCOMPRESSPS",
|
| 945 |
+
"VCVTDQ2PD",
|
| 946 |
+
"VCVTDQ2PS",
|
| 947 |
+
"VCVTPD2DQ",
|
| 948 |
+
"VCVTPD2DQX",
|
| 949 |
+
"VCVTPD2DQY",
|
| 950 |
+
"VCVTPD2PS",
|
| 951 |
+
"VCVTPD2PSX",
|
| 952 |
+
"VCVTPD2PSY",
|
| 953 |
+
"VCVTPD2QQ",
|
| 954 |
+
"VCVTPD2UDQ",
|
| 955 |
+
"VCVTPD2UDQX",
|
| 956 |
+
"VCVTPD2UDQY",
|
| 957 |
+
"VCVTPD2UQQ",
|
| 958 |
+
"VCVTPH2PS",
|
| 959 |
+
"VCVTPS2DQ",
|
| 960 |
+
"VCVTPS2PD",
|
| 961 |
+
"VCVTPS2PH",
|
| 962 |
+
"VCVTPS2QQ",
|
| 963 |
+
"VCVTPS2UDQ",
|
| 964 |
+
"VCVTPS2UQQ",
|
| 965 |
+
"VCVTQQ2PD",
|
| 966 |
+
"VCVTQQ2PS",
|
| 967 |
+
"VCVTQQ2PSX",
|
| 968 |
+
"VCVTQQ2PSY",
|
| 969 |
+
"VCVTSD2SI",
|
| 970 |
+
"VCVTSD2SIQ",
|
| 971 |
+
"VCVTSD2SS",
|
| 972 |
+
"VCVTSD2USI",
|
| 973 |
+
"VCVTSD2USIL",
|
| 974 |
+
"VCVTSD2USIQ",
|
| 975 |
+
"VCVTSI2SDL",
|
| 976 |
+
"VCVTSI2SDQ",
|
| 977 |
+
"VCVTSI2SSL",
|
| 978 |
+
"VCVTSI2SSQ",
|
| 979 |
+
"VCVTSS2SD",
|
| 980 |
+
"VCVTSS2SI",
|
| 981 |
+
"VCVTSS2SIQ",
|
| 982 |
+
"VCVTSS2USI",
|
| 983 |
+
"VCVTSS2USIL",
|
| 984 |
+
"VCVTSS2USIQ",
|
| 985 |
+
"VCVTTPD2DQ",
|
| 986 |
+
"VCVTTPD2DQX",
|
| 987 |
+
"VCVTTPD2DQY",
|
| 988 |
+
"VCVTTPD2QQ",
|
| 989 |
+
"VCVTTPD2UDQ",
|
| 990 |
+
"VCVTTPD2UDQX",
|
| 991 |
+
"VCVTTPD2UDQY",
|
| 992 |
+
"VCVTTPD2UQQ",
|
| 993 |
+
"VCVTTPS2DQ",
|
| 994 |
+
"VCVTTPS2QQ",
|
| 995 |
+
"VCVTTPS2UDQ",
|
| 996 |
+
"VCVTTPS2UQQ",
|
| 997 |
+
"VCVTTSD2SI",
|
| 998 |
+
"VCVTTSD2SIQ",
|
| 999 |
+
"VCVTTSD2USI",
|
| 1000 |
+
"VCVTTSD2USIL",
|
| 1001 |
+
"VCVTTSD2USIQ",
|
| 1002 |
+
"VCVTTSS2SI",
|
| 1003 |
+
"VCVTTSS2SIQ",
|
| 1004 |
+
"VCVTTSS2USI",
|
| 1005 |
+
"VCVTTSS2USIL",
|
| 1006 |
+
"VCVTTSS2USIQ",
|
| 1007 |
+
"VCVTUDQ2PD",
|
| 1008 |
+
"VCVTUDQ2PS",
|
| 1009 |
+
"VCVTUQQ2PD",
|
| 1010 |
+
"VCVTUQQ2PS",
|
| 1011 |
+
"VCVTUQQ2PSX",
|
| 1012 |
+
"VCVTUQQ2PSY",
|
| 1013 |
+
"VCVTUSI2SD",
|
| 1014 |
+
"VCVTUSI2SDL",
|
| 1015 |
+
"VCVTUSI2SDQ",
|
| 1016 |
+
"VCVTUSI2SS",
|
| 1017 |
+
"VCVTUSI2SSL",
|
| 1018 |
+
"VCVTUSI2SSQ",
|
| 1019 |
+
"VDBPSADBW",
|
| 1020 |
+
"VDIVPD",
|
| 1021 |
+
"VDIVPS",
|
| 1022 |
+
"VDIVSD",
|
| 1023 |
+
"VDIVSS",
|
| 1024 |
+
"VDPPD",
|
| 1025 |
+
"VDPPS",
|
| 1026 |
+
"VERR",
|
| 1027 |
+
"VERW",
|
| 1028 |
+
"VEXP2PD",
|
| 1029 |
+
"VEXP2PS",
|
| 1030 |
+
"VEXPANDPD",
|
| 1031 |
+
"VEXPANDPS",
|
| 1032 |
+
"VEXTRACTF128",
|
| 1033 |
+
"VEXTRACTF32X4",
|
| 1034 |
+
"VEXTRACTF32X8",
|
| 1035 |
+
"VEXTRACTF64X2",
|
| 1036 |
+
"VEXTRACTF64X4",
|
| 1037 |
+
"VEXTRACTI128",
|
| 1038 |
+
"VEXTRACTI32X4",
|
| 1039 |
+
"VEXTRACTI32X8",
|
| 1040 |
+
"VEXTRACTI64X2",
|
| 1041 |
+
"VEXTRACTI64X4",
|
| 1042 |
+
"VEXTRACTPS",
|
| 1043 |
+
"VFIXUPIMMPD",
|
| 1044 |
+
"VFIXUPIMMPS",
|
| 1045 |
+
"VFIXUPIMMSD",
|
| 1046 |
+
"VFIXUPIMMSS",
|
| 1047 |
+
"VFMADD132PD",
|
| 1048 |
+
"VFMADD132PS",
|
| 1049 |
+
"VFMADD132SD",
|
| 1050 |
+
"VFMADD132SS",
|
| 1051 |
+
"VFMADD213PD",
|
| 1052 |
+
"VFMADD213PS",
|
| 1053 |
+
"VFMADD213SD",
|
| 1054 |
+
"VFMADD213SS",
|
| 1055 |
+
"VFMADD231PD",
|
| 1056 |
+
"VFMADD231PS",
|
| 1057 |
+
"VFMADD231SD",
|
| 1058 |
+
"VFMADD231SS",
|
| 1059 |
+
"VFMADDSUB132PD",
|
| 1060 |
+
"VFMADDSUB132PS",
|
| 1061 |
+
"VFMADDSUB213PD",
|
| 1062 |
+
"VFMADDSUB213PS",
|
| 1063 |
+
"VFMADDSUB231PD",
|
| 1064 |
+
"VFMADDSUB231PS",
|
| 1065 |
+
"VFMSUB132PD",
|
| 1066 |
+
"VFMSUB132PS",
|
| 1067 |
+
"VFMSUB132SD",
|
| 1068 |
+
"VFMSUB132SS",
|
| 1069 |
+
"VFMSUB213PD",
|
| 1070 |
+
"VFMSUB213PS",
|
| 1071 |
+
"VFMSUB213SD",
|
| 1072 |
+
"VFMSUB213SS",
|
| 1073 |
+
"VFMSUB231PD",
|
| 1074 |
+
"VFMSUB231PS",
|
| 1075 |
+
"VFMSUB231SD",
|
| 1076 |
+
"VFMSUB231SS",
|
| 1077 |
+
"VFMSUBADD132PD",
|
| 1078 |
+
"VFMSUBADD132PS",
|
| 1079 |
+
"VFMSUBADD213PD",
|
| 1080 |
+
"VFMSUBADD213PS",
|
| 1081 |
+
"VFMSUBADD231PD",
|
| 1082 |
+
"VFMSUBADD231PS",
|
| 1083 |
+
"VFNMADD132PD",
|
| 1084 |
+
"VFNMADD132PS",
|
| 1085 |
+
"VFNMADD132SD",
|
| 1086 |
+
"VFNMADD132SS",
|
| 1087 |
+
"VFNMADD213PD",
|
| 1088 |
+
"VFNMADD213PS",
|
| 1089 |
+
"VFNMADD213SD",
|
| 1090 |
+
"VFNMADD213SS",
|
| 1091 |
+
"VFNMADD231PD",
|
| 1092 |
+
"VFNMADD231PS",
|
| 1093 |
+
"VFNMADD231SD",
|
| 1094 |
+
"VFNMADD231SS",
|
| 1095 |
+
"VFNMSUB132PD",
|
| 1096 |
+
"VFNMSUB132PS",
|
| 1097 |
+
"VFNMSUB132SD",
|
| 1098 |
+
"VFNMSUB132SS",
|
| 1099 |
+
"VFNMSUB213PD",
|
| 1100 |
+
"VFNMSUB213PS",
|
| 1101 |
+
"VFNMSUB213SD",
|
| 1102 |
+
"VFNMSUB213SS",
|
| 1103 |
+
"VFNMSUB231PD",
|
| 1104 |
+
"VFNMSUB231PS",
|
| 1105 |
+
"VFNMSUB231SD",
|
| 1106 |
+
"VFNMSUB231SS",
|
| 1107 |
+
"VFPCLASSPD",
|
| 1108 |
+
"VFPCLASSPDX",
|
| 1109 |
+
"VFPCLASSPDY",
|
| 1110 |
+
"VFPCLASSPDZ",
|
| 1111 |
+
"VFPCLASSPS",
|
| 1112 |
+
"VFPCLASSPSX",
|
| 1113 |
+
"VFPCLASSPSY",
|
| 1114 |
+
"VFPCLASSPSZ",
|
| 1115 |
+
"VFPCLASSSD",
|
| 1116 |
+
"VFPCLASSSS",
|
| 1117 |
+
"VGATHERDPD",
|
| 1118 |
+
"VGATHERDPS",
|
| 1119 |
+
"VGATHERPF0DPD",
|
| 1120 |
+
"VGATHERPF0DPS",
|
| 1121 |
+
"VGATHERPF0QPD",
|
| 1122 |
+
"VGATHERPF0QPS",
|
| 1123 |
+
"VGATHERPF1DPD",
|
| 1124 |
+
"VGATHERPF1DPS",
|
| 1125 |
+
"VGATHERPF1QPD",
|
| 1126 |
+
"VGATHERPF1QPS",
|
| 1127 |
+
"VGATHERQPD",
|
| 1128 |
+
"VGATHERQPS",
|
| 1129 |
+
"VGETEXPPD",
|
| 1130 |
+
"VGETEXPPS",
|
| 1131 |
+
"VGETEXPSD",
|
| 1132 |
+
"VGETEXPSS",
|
| 1133 |
+
"VGETMANTPD",
|
| 1134 |
+
"VGETMANTPS",
|
| 1135 |
+
"VGETMANTSD",
|
| 1136 |
+
"VGETMANTSS",
|
| 1137 |
+
"VGF2P8AFFINEINVQB",
|
| 1138 |
+
"VGF2P8AFFINEQB",
|
| 1139 |
+
"VGF2P8MULB",
|
| 1140 |
+
"VHADDPD",
|
| 1141 |
+
"VHADDPS",
|
| 1142 |
+
"VHSUBPD",
|
| 1143 |
+
"VHSUBPS",
|
| 1144 |
+
"VINSERTF128",
|
| 1145 |
+
"VINSERTF32X4",
|
| 1146 |
+
"VINSERTF32X8",
|
| 1147 |
+
"VINSERTF64X2",
|
| 1148 |
+
"VINSERTF64X4",
|
| 1149 |
+
"VINSERTI128",
|
| 1150 |
+
"VINSERTI32X4",
|
| 1151 |
+
"VINSERTI32X8",
|
| 1152 |
+
"VINSERTI64X2",
|
| 1153 |
+
"VINSERTI64X4",
|
| 1154 |
+
"VINSERTPS",
|
| 1155 |
+
"VLDDQU",
|
| 1156 |
+
"VLDMXCSR",
|
| 1157 |
+
"VMASKMOVDQU",
|
| 1158 |
+
"VMASKMOVPD",
|
| 1159 |
+
"VMASKMOVPS",
|
| 1160 |
+
"VMAXPD",
|
| 1161 |
+
"VMAXPS",
|
| 1162 |
+
"VMAXSD",
|
| 1163 |
+
"VMAXSS",
|
| 1164 |
+
"VMINPD",
|
| 1165 |
+
"VMINPS",
|
| 1166 |
+
"VMINSD",
|
| 1167 |
+
"VMINSS",
|
| 1168 |
+
"VMOVAPD",
|
| 1169 |
+
"VMOVAPS",
|
| 1170 |
+
"VMOVD",
|
| 1171 |
+
"VMOVDDUP",
|
| 1172 |
+
"VMOVDQA",
|
| 1173 |
+
"VMOVDQA32",
|
| 1174 |
+
"VMOVDQA64",
|
| 1175 |
+
"VMOVDQU",
|
| 1176 |
+
"VMOVDQU16",
|
| 1177 |
+
"VMOVDQU32",
|
| 1178 |
+
"VMOVDQU64",
|
| 1179 |
+
"VMOVDQU8",
|
| 1180 |
+
"VMOVHLPS",
|
| 1181 |
+
"VMOVHPD",
|
| 1182 |
+
"VMOVHPS",
|
| 1183 |
+
"VMOVLHPS",
|
| 1184 |
+
"VMOVLPD",
|
| 1185 |
+
"VMOVLPS",
|
| 1186 |
+
"VMOVMSKPD",
|
| 1187 |
+
"VMOVMSKPS",
|
| 1188 |
+
"VMOVNTDQ",
|
| 1189 |
+
"VMOVNTDQA",
|
| 1190 |
+
"VMOVNTPD",
|
| 1191 |
+
"VMOVNTPS",
|
| 1192 |
+
"VMOVQ",
|
| 1193 |
+
"VMOVSD",
|
| 1194 |
+
"VMOVSHDUP",
|
| 1195 |
+
"VMOVSLDUP",
|
| 1196 |
+
"VMOVSS",
|
| 1197 |
+
"VMOVUPD",
|
| 1198 |
+
"VMOVUPS",
|
| 1199 |
+
"VMPSADBW",
|
| 1200 |
+
"VMULPD",
|
| 1201 |
+
"VMULPS",
|
| 1202 |
+
"VMULSD",
|
| 1203 |
+
"VMULSS",
|
| 1204 |
+
"VORPD",
|
| 1205 |
+
"VORPS",
|
| 1206 |
+
"VP4DPWSSD",
|
| 1207 |
+
"VP4DPWSSDS",
|
| 1208 |
+
"VPABSB",
|
| 1209 |
+
"VPABSD",
|
| 1210 |
+
"VPABSQ",
|
| 1211 |
+
"VPABSW",
|
| 1212 |
+
"VPACKSSDW",
|
| 1213 |
+
"VPACKSSWB",
|
| 1214 |
+
"VPACKUSDW",
|
| 1215 |
+
"VPACKUSWB",
|
| 1216 |
+
"VPADDB",
|
| 1217 |
+
"VPADDD",
|
| 1218 |
+
"VPADDQ",
|
| 1219 |
+
"VPADDSB",
|
| 1220 |
+
"VPADDSW",
|
| 1221 |
+
"VPADDUSB",
|
| 1222 |
+
"VPADDUSW",
|
| 1223 |
+
"VPADDW",
|
| 1224 |
+
"VPALIGNR",
|
| 1225 |
+
"VPAND",
|
| 1226 |
+
"VPANDD",
|
| 1227 |
+
"VPANDN",
|
| 1228 |
+
"VPANDND",
|
| 1229 |
+
"VPANDNQ",
|
| 1230 |
+
"VPANDQ",
|
| 1231 |
+
"VPAVGB",
|
| 1232 |
+
"VPAVGW",
|
| 1233 |
+
"VPBLENDD",
|
| 1234 |
+
"VPBLENDMB",
|
| 1235 |
+
"VPBLENDMD",
|
| 1236 |
+
"VPBLENDMQ",
|
| 1237 |
+
"VPBLENDMW",
|
| 1238 |
+
"VPBLENDVB",
|
| 1239 |
+
"VPBLENDW",
|
| 1240 |
+
"VPBROADCASTB",
|
| 1241 |
+
"VPBROADCASTD",
|
| 1242 |
+
"VPBROADCASTMB2Q",
|
| 1243 |
+
"VPBROADCASTMW2D",
|
| 1244 |
+
"VPBROADCASTQ",
|
| 1245 |
+
"VPBROADCASTW",
|
| 1246 |
+
"VPCLMULQDQ",
|
| 1247 |
+
"VPCMPB",
|
| 1248 |
+
"VPCMPD",
|
| 1249 |
+
"VPCMPEQB",
|
| 1250 |
+
"VPCMPEQD",
|
| 1251 |
+
"VPCMPEQQ",
|
| 1252 |
+
"VPCMPEQW",
|
| 1253 |
+
"VPCMPESTRI",
|
| 1254 |
+
"VPCMPESTRM",
|
| 1255 |
+
"VPCMPGTB",
|
| 1256 |
+
"VPCMPGTD",
|
| 1257 |
+
"VPCMPGTQ",
|
| 1258 |
+
"VPCMPGTW",
|
| 1259 |
+
"VPCMPISTRI",
|
| 1260 |
+
"VPCMPISTRM",
|
| 1261 |
+
"VPCMPQ",
|
| 1262 |
+
"VPCMPUB",
|
| 1263 |
+
"VPCMPUD",
|
| 1264 |
+
"VPCMPUQ",
|
| 1265 |
+
"VPCMPUW",
|
| 1266 |
+
"VPCMPW",
|
| 1267 |
+
"VPCOMPRESSB",
|
| 1268 |
+
"VPCOMPRESSD",
|
| 1269 |
+
"VPCOMPRESSQ",
|
| 1270 |
+
"VPCOMPRESSW",
|
| 1271 |
+
"VPCONFLICTD",
|
| 1272 |
+
"VPCONFLICTQ",
|
| 1273 |
+
"VPDPBUSD",
|
| 1274 |
+
"VPDPBUSDS",
|
| 1275 |
+
"VPDPWSSD",
|
| 1276 |
+
"VPDPWSSDS",
|
| 1277 |
+
"VPERM2F128",
|
| 1278 |
+
"VPERM2I128",
|
| 1279 |
+
"VPERMB",
|
| 1280 |
+
"VPERMD",
|
| 1281 |
+
"VPERMI2B",
|
| 1282 |
+
"VPERMI2D",
|
| 1283 |
+
"VPERMI2PD",
|
| 1284 |
+
"VPERMI2PS",
|
| 1285 |
+
"VPERMI2Q",
|
| 1286 |
+
"VPERMI2W",
|
| 1287 |
+
"VPERMILPD",
|
| 1288 |
+
"VPERMILPS",
|
| 1289 |
+
"VPERMPD",
|
| 1290 |
+
"VPERMPS",
|
| 1291 |
+
"VPERMQ",
|
| 1292 |
+
"VPERMT2B",
|
| 1293 |
+
"VPERMT2D",
|
| 1294 |
+
"VPERMT2PD",
|
| 1295 |
+
"VPERMT2PS",
|
| 1296 |
+
"VPERMT2Q",
|
| 1297 |
+
"VPERMT2W",
|
| 1298 |
+
"VPERMW",
|
| 1299 |
+
"VPEXPANDB",
|
| 1300 |
+
"VPEXPANDD",
|
| 1301 |
+
"VPEXPANDQ",
|
| 1302 |
+
"VPEXPANDW",
|
| 1303 |
+
"VPEXTRB",
|
| 1304 |
+
"VPEXTRD",
|
| 1305 |
+
"VPEXTRQ",
|
| 1306 |
+
"VPEXTRW",
|
| 1307 |
+
"VPGATHERDD",
|
| 1308 |
+
"VPGATHERDQ",
|
| 1309 |
+
"VPGATHERQD",
|
| 1310 |
+
"VPGATHERQQ",
|
| 1311 |
+
"VPHADDD",
|
| 1312 |
+
"VPHADDSW",
|
| 1313 |
+
"VPHADDW",
|
| 1314 |
+
"VPHMINPOSUW",
|
| 1315 |
+
"VPHSUBD",
|
| 1316 |
+
"VPHSUBSW",
|
| 1317 |
+
"VPHSUBW",
|
| 1318 |
+
"VPINSRB",
|
| 1319 |
+
"VPINSRD",
|
| 1320 |
+
"VPINSRQ",
|
| 1321 |
+
"VPINSRW",
|
| 1322 |
+
"VPLZCNTD",
|
| 1323 |
+
"VPLZCNTQ",
|
| 1324 |
+
"VPMADD52HUQ",
|
| 1325 |
+
"VPMADD52LUQ",
|
| 1326 |
+
"VPMADDUBSW",
|
| 1327 |
+
"VPMADDWD",
|
| 1328 |
+
"VPMASKMOVD",
|
| 1329 |
+
"VPMASKMOVQ",
|
| 1330 |
+
"VPMAXSB",
|
| 1331 |
+
"VPMAXSD",
|
| 1332 |
+
"VPMAXSQ",
|
| 1333 |
+
"VPMAXSW",
|
| 1334 |
+
"VPMAXUB",
|
| 1335 |
+
"VPMAXUD",
|
| 1336 |
+
"VPMAXUQ",
|
| 1337 |
+
"VPMAXUW",
|
| 1338 |
+
"VPMINSB",
|
| 1339 |
+
"VPMINSD",
|
| 1340 |
+
"VPMINSQ",
|
| 1341 |
+
"VPMINSW",
|
| 1342 |
+
"VPMINUB",
|
| 1343 |
+
"VPMINUD",
|
| 1344 |
+
"VPMINUQ",
|
| 1345 |
+
"VPMINUW",
|
| 1346 |
+
"VPMOVB2M",
|
| 1347 |
+
"VPMOVD2M",
|
| 1348 |
+
"VPMOVDB",
|
| 1349 |
+
"VPMOVDW",
|
| 1350 |
+
"VPMOVM2B",
|
| 1351 |
+
"VPMOVM2D",
|
| 1352 |
+
"VPMOVM2Q",
|
| 1353 |
+
"VPMOVM2W",
|
| 1354 |
+
"VPMOVMSKB",
|
| 1355 |
+
"VPMOVQ2M",
|
| 1356 |
+
"VPMOVQB",
|
| 1357 |
+
"VPMOVQD",
|
| 1358 |
+
"VPMOVQW",
|
| 1359 |
+
"VPMOVSDB",
|
| 1360 |
+
"VPMOVSDW",
|
| 1361 |
+
"VPMOVSQB",
|
| 1362 |
+
"VPMOVSQD",
|
| 1363 |
+
"VPMOVSQW",
|
| 1364 |
+
"VPMOVSWB",
|
| 1365 |
+
"VPMOVSXBD",
|
| 1366 |
+
"VPMOVSXBQ",
|
| 1367 |
+
"VPMOVSXBW",
|
| 1368 |
+
"VPMOVSXDQ",
|
| 1369 |
+
"VPMOVSXWD",
|
| 1370 |
+
"VPMOVSXWQ",
|
| 1371 |
+
"VPMOVUSDB",
|
| 1372 |
+
"VPMOVUSDW",
|
| 1373 |
+
"VPMOVUSQB",
|
| 1374 |
+
"VPMOVUSQD",
|
| 1375 |
+
"VPMOVUSQW",
|
| 1376 |
+
"VPMOVUSWB",
|
| 1377 |
+
"VPMOVW2M",
|
| 1378 |
+
"VPMOVWB",
|
| 1379 |
+
"VPMOVZXBD",
|
| 1380 |
+
"VPMOVZXBQ",
|
| 1381 |
+
"VPMOVZXBW",
|
| 1382 |
+
"VPMOVZXDQ",
|
| 1383 |
+
"VPMOVZXWD",
|
| 1384 |
+
"VPMOVZXWQ",
|
| 1385 |
+
"VPMULDQ",
|
| 1386 |
+
"VPMULHRSW",
|
| 1387 |
+
"VPMULHUW",
|
| 1388 |
+
"VPMULHW",
|
| 1389 |
+
"VPMULLD",
|
| 1390 |
+
"VPMULLQ",
|
| 1391 |
+
"VPMULLW",
|
| 1392 |
+
"VPMULTISHIFTQB",
|
| 1393 |
+
"VPMULUDQ",
|
| 1394 |
+
"VPOPCNTB",
|
| 1395 |
+
"VPOPCNTD",
|
| 1396 |
+
"VPOPCNTQ",
|
| 1397 |
+
"VPOPCNTW",
|
| 1398 |
+
"VPOR",
|
| 1399 |
+
"VPORD",
|
| 1400 |
+
"VPORQ",
|
| 1401 |
+
"VPROLD",
|
| 1402 |
+
"VPROLQ",
|
| 1403 |
+
"VPROLVD",
|
| 1404 |
+
"VPROLVQ",
|
| 1405 |
+
"VPRORD",
|
| 1406 |
+
"VPRORQ",
|
| 1407 |
+
"VPRORVD",
|
| 1408 |
+
"VPRORVQ",
|
| 1409 |
+
"VPSADBW",
|
| 1410 |
+
"VPSCATTERDD",
|
| 1411 |
+
"VPSCATTERDQ",
|
| 1412 |
+
"VPSCATTERQD",
|
| 1413 |
+
"VPSCATTERQQ",
|
| 1414 |
+
"VPSHLDD",
|
| 1415 |
+
"VPSHLDQ",
|
| 1416 |
+
"VPSHLDVD",
|
| 1417 |
+
"VPSHLDVQ",
|
| 1418 |
+
"VPSHLDVW",
|
| 1419 |
+
"VPSHLDW",
|
| 1420 |
+
"VPSHRDD",
|
| 1421 |
+
"VPSHRDQ",
|
| 1422 |
+
"VPSHRDVD",
|
| 1423 |
+
"VPSHRDVQ",
|
| 1424 |
+
"VPSHRDVW",
|
| 1425 |
+
"VPSHRDW",
|
| 1426 |
+
"VPSHUFB",
|
| 1427 |
+
"VPSHUFBITQMB",
|
| 1428 |
+
"VPSHUFD",
|
| 1429 |
+
"VPSHUFHW",
|
| 1430 |
+
"VPSHUFLW",
|
| 1431 |
+
"VPSIGNB",
|
| 1432 |
+
"VPSIGND",
|
| 1433 |
+
"VPSIGNW",
|
| 1434 |
+
"VPSLLD",
|
| 1435 |
+
"VPSLLDQ",
|
| 1436 |
+
"VPSLLQ",
|
| 1437 |
+
"VPSLLVD",
|
| 1438 |
+
"VPSLLVQ",
|
| 1439 |
+
"VPSLLVW",
|
| 1440 |
+
"VPSLLW",
|
| 1441 |
+
"VPSRAD",
|
| 1442 |
+
"VPSRAQ",
|
| 1443 |
+
"VPSRAVD",
|
| 1444 |
+
"VPSRAVQ",
|
| 1445 |
+
"VPSRAVW",
|
| 1446 |
+
"VPSRAW",
|
| 1447 |
+
"VPSRLD",
|
| 1448 |
+
"VPSRLDQ",
|
| 1449 |
+
"VPSRLQ",
|
| 1450 |
+
"VPSRLVD",
|
| 1451 |
+
"VPSRLVQ",
|
| 1452 |
+
"VPSRLVW",
|
| 1453 |
+
"VPSRLW",
|
| 1454 |
+
"VPSUBB",
|
| 1455 |
+
"VPSUBD",
|
| 1456 |
+
"VPSUBQ",
|
| 1457 |
+
"VPSUBSB",
|
| 1458 |
+
"VPSUBSW",
|
| 1459 |
+
"VPSUBUSB",
|
| 1460 |
+
"VPSUBUSW",
|
| 1461 |
+
"VPSUBW",
|
| 1462 |
+
"VPTERNLOGD",
|
| 1463 |
+
"VPTERNLOGQ",
|
| 1464 |
+
"VPTEST",
|
| 1465 |
+
"VPTESTMB",
|
| 1466 |
+
"VPTESTMD",
|
| 1467 |
+
"VPTESTMQ",
|
| 1468 |
+
"VPTESTMW",
|
| 1469 |
+
"VPTESTNMB",
|
| 1470 |
+
"VPTESTNMD",
|
| 1471 |
+
"VPTESTNMQ",
|
| 1472 |
+
"VPTESTNMW",
|
| 1473 |
+
"VPUNPCKHBW",
|
| 1474 |
+
"VPUNPCKHDQ",
|
| 1475 |
+
"VPUNPCKHQDQ",
|
| 1476 |
+
"VPUNPCKHWD",
|
| 1477 |
+
"VPUNPCKLBW",
|
| 1478 |
+
"VPUNPCKLDQ",
|
| 1479 |
+
"VPUNPCKLQDQ",
|
| 1480 |
+
"VPUNPCKLWD",
|
| 1481 |
+
"VPXOR",
|
| 1482 |
+
"VPXORD",
|
| 1483 |
+
"VPXORQ",
|
| 1484 |
+
"VRANGEPD",
|
| 1485 |
+
"VRANGEPS",
|
| 1486 |
+
"VRANGESD",
|
| 1487 |
+
"VRANGESS",
|
| 1488 |
+
"VRCP14PD",
|
| 1489 |
+
"VRCP14PS",
|
| 1490 |
+
"VRCP14SD",
|
| 1491 |
+
"VRCP14SS",
|
| 1492 |
+
"VRCP28PD",
|
| 1493 |
+
"VRCP28PS",
|
| 1494 |
+
"VRCP28SD",
|
| 1495 |
+
"VRCP28SS",
|
| 1496 |
+
"VRCPPS",
|
| 1497 |
+
"VRCPSS",
|
| 1498 |
+
"VREDUCEPD",
|
| 1499 |
+
"VREDUCEPS",
|
| 1500 |
+
"VREDUCESD",
|
| 1501 |
+
"VREDUCESS",
|
| 1502 |
+
"VRNDSCALEPD",
|
| 1503 |
+
"VRNDSCALEPS",
|
| 1504 |
+
"VRNDSCALESD",
|
| 1505 |
+
"VRNDSCALESS",
|
| 1506 |
+
"VROUNDPD",
|
| 1507 |
+
"VROUNDPS",
|
| 1508 |
+
"VROUNDSD",
|
| 1509 |
+
"VROUNDSS",
|
| 1510 |
+
"VRSQRT14PD",
|
| 1511 |
+
"VRSQRT14PS",
|
| 1512 |
+
"VRSQRT14SD",
|
| 1513 |
+
"VRSQRT14SS",
|
| 1514 |
+
"VRSQRT28PD",
|
| 1515 |
+
"VRSQRT28PS",
|
| 1516 |
+
"VRSQRT28SD",
|
| 1517 |
+
"VRSQRT28SS",
|
| 1518 |
+
"VRSQRTPS",
|
| 1519 |
+
"VRSQRTSS",
|
| 1520 |
+
"VSCALEFPD",
|
| 1521 |
+
"VSCALEFPS",
|
| 1522 |
+
"VSCALEFSD",
|
| 1523 |
+
"VSCALEFSS",
|
| 1524 |
+
"VSCATTERDPD",
|
| 1525 |
+
"VSCATTERDPS",
|
| 1526 |
+
"VSCATTERPF0DPD",
|
| 1527 |
+
"VSCATTERPF0DPS",
|
| 1528 |
+
"VSCATTERPF0QPD",
|
| 1529 |
+
"VSCATTERPF0QPS",
|
| 1530 |
+
"VSCATTERPF1DPD",
|
| 1531 |
+
"VSCATTERPF1DPS",
|
| 1532 |
+
"VSCATTERPF1QPD",
|
| 1533 |
+
"VSCATTERPF1QPS",
|
| 1534 |
+
"VSCATTERQPD",
|
| 1535 |
+
"VSCATTERQPS",
|
| 1536 |
+
"VSHUFF32X4",
|
| 1537 |
+
"VSHUFF64X2",
|
| 1538 |
+
"VSHUFI32X4",
|
| 1539 |
+
"VSHUFI64X2",
|
| 1540 |
+
"VSHUFPD",
|
| 1541 |
+
"VSHUFPS",
|
| 1542 |
+
"VSQRTPD",
|
| 1543 |
+
"VSQRTPS",
|
| 1544 |
+
"VSQRTSD",
|
| 1545 |
+
"VSQRTSS",
|
| 1546 |
+
"VSTMXCSR",
|
| 1547 |
+
"VSUBPD",
|
| 1548 |
+
"VSUBPS",
|
| 1549 |
+
"VSUBSD",
|
| 1550 |
+
"VSUBSS",
|
| 1551 |
+
"VTESTPD",
|
| 1552 |
+
"VTESTPS",
|
| 1553 |
+
"VUCOMISD",
|
| 1554 |
+
"VUCOMISS",
|
| 1555 |
+
"VUNPCKHPD",
|
| 1556 |
+
"VUNPCKHPS",
|
| 1557 |
+
"VUNPCKLPD",
|
| 1558 |
+
"VUNPCKLPS",
|
| 1559 |
+
"VXORPD",
|
| 1560 |
+
"VXORPS",
|
| 1561 |
+
"VZEROALL",
|
| 1562 |
+
"VZEROUPPER",
|
| 1563 |
+
"WAIT",
|
| 1564 |
+
"WBINVD",
|
| 1565 |
+
"WORD",
|
| 1566 |
+
"WRFSBASEL",
|
| 1567 |
+
"WRFSBASEQ",
|
| 1568 |
+
"WRGSBASEL",
|
| 1569 |
+
"WRGSBASEQ",
|
| 1570 |
+
"WRMSR",
|
| 1571 |
+
"WRPKRU",
|
| 1572 |
+
"XABORT",
|
| 1573 |
+
"XACQUIRE",
|
| 1574 |
+
"XADDB",
|
| 1575 |
+
"XADDL",
|
| 1576 |
+
"XADDQ",
|
| 1577 |
+
"XADDW",
|
| 1578 |
+
"XBEGIN",
|
| 1579 |
+
"XCHGB",
|
| 1580 |
+
"XCHGL",
|
| 1581 |
+
"XCHGQ",
|
| 1582 |
+
"XCHGW",
|
| 1583 |
+
"XEND",
|
| 1584 |
+
"XGETBV",
|
| 1585 |
+
"XLAT",
|
| 1586 |
+
"XORB",
|
| 1587 |
+
"XORL",
|
| 1588 |
+
"XORPD",
|
| 1589 |
+
"XORPS",
|
| 1590 |
+
"XORQ",
|
| 1591 |
+
"XORW",
|
| 1592 |
+
"XRELEASE",
|
| 1593 |
+
"XRSTOR",
|
| 1594 |
+
"XRSTOR64",
|
| 1595 |
+
"XRSTORS",
|
| 1596 |
+
"XRSTORS64",
|
| 1597 |
+
"XSAVE",
|
| 1598 |
+
"XSAVE64",
|
| 1599 |
+
"XSAVEC",
|
| 1600 |
+
"XSAVEC64",
|
| 1601 |
+
"XSAVEOPT",
|
| 1602 |
+
"XSAVEOPT64",
|
| 1603 |
+
"XSAVES",
|
| 1604 |
+
"XSAVES64",
|
| 1605 |
+
"XSETBV",
|
| 1606 |
+
"XTEST",
|
| 1607 |
+
"LAST",
|
| 1608 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/asm6.go
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/asm_test.go
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2018 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
package x86
|
| 6 |
+
|
| 7 |
+
import (
|
| 8 |
+
"cmd/internal/obj"
|
| 9 |
+
"cmd/internal/objabi"
|
| 10 |
+
"internal/testenv"
|
| 11 |
+
"os"
|
| 12 |
+
"path/filepath"
|
| 13 |
+
"regexp"
|
| 14 |
+
"testing"
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
type oclassTest struct {
|
| 18 |
+
arg *obj.Addr
|
| 19 |
+
want int // Expected oclass return value for a given arg
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
// Filled inside init, because it's easier to do with helper functions.
|
| 23 |
+
var (
|
| 24 |
+
oclassTestsAMD64 []*oclassTest
|
| 25 |
+
oclassTests386 []*oclassTest
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
func init() {
|
| 29 |
+
// Required for tests that access any of
|
| 30 |
+
// opindex/ycover/reg/regrex global tables.
|
| 31 |
+
var ctxt obj.Link
|
| 32 |
+
instinit(&ctxt)
|
| 33 |
+
|
| 34 |
+
regAddr := func(reg int16) *obj.Addr {
|
| 35 |
+
return &obj.Addr{Type: obj.TYPE_REG, Reg: reg}
|
| 36 |
+
}
|
| 37 |
+
immAddr := func(v int64) *obj.Addr {
|
| 38 |
+
return &obj.Addr{Type: obj.TYPE_CONST, Offset: v}
|
| 39 |
+
}
|
| 40 |
+
regListAddr := func(regFrom, regTo int16) *obj.Addr {
|
| 41 |
+
return &obj.Addr{Type: obj.TYPE_REGLIST, Offset: EncodeRegisterRange(regFrom, regTo)}
|
| 42 |
+
}
|
| 43 |
+
memAddr := func(base, index int16) *obj.Addr {
|
| 44 |
+
return &obj.Addr{Type: obj.TYPE_MEM, Reg: base, Index: index}
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
// TODO(quasilyte): oclass doesn't return Yxxx for X/Y regs with
|
| 48 |
+
// ID higher than 7. We don't encode such instructions, but this
|
| 49 |
+
// behavior seems inconsistent. It should probably either
|
| 50 |
+
// never check for arch or do it in all cases.
|
| 51 |
+
|
| 52 |
+
oclassTestsCommon := []*oclassTest{
|
| 53 |
+
{&obj.Addr{Type: obj.TYPE_NONE}, Ynone},
|
| 54 |
+
{&obj.Addr{Type: obj.TYPE_BRANCH}, Ybr},
|
| 55 |
+
{&obj.Addr{Type: obj.TYPE_TEXTSIZE}, Ytextsize},
|
| 56 |
+
|
| 57 |
+
{&obj.Addr{Type: obj.TYPE_INDIR, Name: obj.NAME_EXTERN}, Yindir},
|
| 58 |
+
{&obj.Addr{Type: obj.TYPE_INDIR, Name: obj.NAME_GOTREF}, Yindir},
|
| 59 |
+
|
| 60 |
+
{&obj.Addr{Type: obj.TYPE_ADDR, Name: obj.NAME_AUTO}, Yiauto},
|
| 61 |
+
{&obj.Addr{Type: obj.TYPE_ADDR, Name: obj.NAME_PARAM}, Yiauto},
|
| 62 |
+
{&obj.Addr{Type: obj.TYPE_ADDR, Name: obj.NAME_EXTERN}, Yiauto},
|
| 63 |
+
{&obj.Addr{Type: obj.TYPE_ADDR, Sym: &obj.LSym{Name: "runtime.duff"}}, Yi32},
|
| 64 |
+
{&obj.Addr{Type: obj.TYPE_ADDR, Offset: 4}, Yu7},
|
| 65 |
+
{&obj.Addr{Type: obj.TYPE_ADDR, Offset: 255}, Yu8},
|
| 66 |
+
|
| 67 |
+
{immAddr(0), Yi0},
|
| 68 |
+
{immAddr(1), Yi1},
|
| 69 |
+
{immAddr(2), Yu2},
|
| 70 |
+
{immAddr(3), Yu2},
|
| 71 |
+
{immAddr(4), Yu7},
|
| 72 |
+
{immAddr(86), Yu7},
|
| 73 |
+
{immAddr(127), Yu7},
|
| 74 |
+
{immAddr(128), Yu8},
|
| 75 |
+
{immAddr(200), Yu8},
|
| 76 |
+
{immAddr(255), Yu8},
|
| 77 |
+
{immAddr(-1), Yi8},
|
| 78 |
+
{immAddr(-100), Yi8},
|
| 79 |
+
{immAddr(-128), Yi8},
|
| 80 |
+
|
| 81 |
+
{regAddr(REG_AL), Yal},
|
| 82 |
+
{regAddr(REG_AX), Yax},
|
| 83 |
+
{regAddr(REG_DL), Yrb},
|
| 84 |
+
{regAddr(REG_DH), Yrb},
|
| 85 |
+
{regAddr(REG_BH), Yrb},
|
| 86 |
+
{regAddr(REG_CL), Ycl},
|
| 87 |
+
{regAddr(REG_CX), Ycx},
|
| 88 |
+
{regAddr(REG_DX), Yrx},
|
| 89 |
+
{regAddr(REG_BX), Yrx},
|
| 90 |
+
{regAddr(REG_F0), Yf0},
|
| 91 |
+
{regAddr(REG_F3), Yrf},
|
| 92 |
+
{regAddr(REG_F7), Yrf},
|
| 93 |
+
{regAddr(REG_M0), Ymr},
|
| 94 |
+
{regAddr(REG_M3), Ymr},
|
| 95 |
+
{regAddr(REG_M7), Ymr},
|
| 96 |
+
{regAddr(REG_X0), Yxr0},
|
| 97 |
+
{regAddr(REG_X6), Yxr},
|
| 98 |
+
{regAddr(REG_X13), Yxr},
|
| 99 |
+
{regAddr(REG_X20), YxrEvex},
|
| 100 |
+
{regAddr(REG_X31), YxrEvex},
|
| 101 |
+
{regAddr(REG_Y0), Yyr},
|
| 102 |
+
{regAddr(REG_Y6), Yyr},
|
| 103 |
+
{regAddr(REG_Y13), Yyr},
|
| 104 |
+
{regAddr(REG_Y20), YyrEvex},
|
| 105 |
+
{regAddr(REG_Y31), YyrEvex},
|
| 106 |
+
{regAddr(REG_Z0), Yzr},
|
| 107 |
+
{regAddr(REG_Z6), Yzr},
|
| 108 |
+
{regAddr(REG_K0), Yk0},
|
| 109 |
+
{regAddr(REG_K5), Yknot0},
|
| 110 |
+
{regAddr(REG_K7), Yknot0},
|
| 111 |
+
{regAddr(REG_CS), Ycs},
|
| 112 |
+
{regAddr(REG_SS), Yss},
|
| 113 |
+
{regAddr(REG_DS), Yds},
|
| 114 |
+
{regAddr(REG_ES), Yes},
|
| 115 |
+
{regAddr(REG_FS), Yfs},
|
| 116 |
+
{regAddr(REG_GS), Ygs},
|
| 117 |
+
{regAddr(REG_TLS), Ytls},
|
| 118 |
+
{regAddr(REG_GDTR), Ygdtr},
|
| 119 |
+
{regAddr(REG_IDTR), Yidtr},
|
| 120 |
+
{regAddr(REG_LDTR), Yldtr},
|
| 121 |
+
{regAddr(REG_MSW), Ymsw},
|
| 122 |
+
{regAddr(REG_TASK), Ytask},
|
| 123 |
+
{regAddr(REG_CR0), Ycr0},
|
| 124 |
+
{regAddr(REG_CR5), Ycr5},
|
| 125 |
+
{regAddr(REG_CR8), Ycr8},
|
| 126 |
+
{regAddr(REG_DR0), Ydr0},
|
| 127 |
+
{regAddr(REG_DR5), Ydr5},
|
| 128 |
+
{regAddr(REG_DR7), Ydr7},
|
| 129 |
+
{regAddr(REG_TR0), Ytr0},
|
| 130 |
+
{regAddr(REG_TR5), Ytr5},
|
| 131 |
+
{regAddr(REG_TR7), Ytr7},
|
| 132 |
+
|
| 133 |
+
{regListAddr(REG_X0, REG_X3), YxrEvexMulti4},
|
| 134 |
+
{regListAddr(REG_X4, REG_X7), YxrEvexMulti4},
|
| 135 |
+
{regListAddr(REG_Y0, REG_Y3), YyrEvexMulti4},
|
| 136 |
+
{regListAddr(REG_Y4, REG_Y7), YyrEvexMulti4},
|
| 137 |
+
{regListAddr(REG_Z0, REG_Z3), YzrMulti4},
|
| 138 |
+
{regListAddr(REG_Z4, REG_Z7), YzrMulti4},
|
| 139 |
+
|
| 140 |
+
{memAddr(REG_AL, REG_NONE), Ym},
|
| 141 |
+
{memAddr(REG_AL, REG_SI), Ym},
|
| 142 |
+
{memAddr(REG_SI, REG_CX), Ym},
|
| 143 |
+
{memAddr(REG_DI, REG_X0), Yxvm},
|
| 144 |
+
{memAddr(REG_DI, REG_X7), Yxvm},
|
| 145 |
+
{memAddr(REG_DI, REG_Y0), Yyvm},
|
| 146 |
+
{memAddr(REG_DI, REG_Y7), Yyvm},
|
| 147 |
+
{memAddr(REG_DI, REG_Z0), Yzvm},
|
| 148 |
+
{memAddr(REG_DI, REG_Z7), Yzvm},
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
oclassTestsAMD64 = []*oclassTest{
|
| 152 |
+
{immAddr(-200), Ys32},
|
| 153 |
+
{immAddr(500), Ys32},
|
| 154 |
+
{immAddr(0x7FFFFFFF), Ys32},
|
| 155 |
+
{immAddr(0x7FFFFFFF + 1), Yi32},
|
| 156 |
+
{immAddr(0xFFFFFFFF), Yi32},
|
| 157 |
+
{immAddr(0xFFFFFFFF + 1), Yi64},
|
| 158 |
+
|
| 159 |
+
{regAddr(REG_BPB), Yrb},
|
| 160 |
+
{regAddr(REG_SIB), Yrb},
|
| 161 |
+
{regAddr(REG_DIB), Yrb},
|
| 162 |
+
{regAddr(REG_R8B), Yrb},
|
| 163 |
+
{regAddr(REG_R12B), Yrb},
|
| 164 |
+
{regAddr(REG_R8), Yrl},
|
| 165 |
+
{regAddr(REG_R13), Yrl},
|
| 166 |
+
{regAddr(REG_R15), Yrl},
|
| 167 |
+
{regAddr(REG_SP), Yrl},
|
| 168 |
+
{regAddr(REG_SI), Yrl},
|
| 169 |
+
{regAddr(REG_DI), Yrl},
|
| 170 |
+
{regAddr(REG_Z13), Yzr},
|
| 171 |
+
{regAddr(REG_Z20), Yzr},
|
| 172 |
+
{regAddr(REG_Z31), Yzr},
|
| 173 |
+
|
| 174 |
+
{regListAddr(REG_X10, REG_X13), YxrEvexMulti4},
|
| 175 |
+
{regListAddr(REG_X24, REG_X27), YxrEvexMulti4},
|
| 176 |
+
{regListAddr(REG_Y10, REG_Y13), YyrEvexMulti4},
|
| 177 |
+
{regListAddr(REG_Y24, REG_Y27), YyrEvexMulti4},
|
| 178 |
+
{regListAddr(REG_Z10, REG_Z13), YzrMulti4},
|
| 179 |
+
{regListAddr(REG_Z24, REG_Z27), YzrMulti4},
|
| 180 |
+
|
| 181 |
+
{memAddr(REG_DI, REG_X20), YxvmEvex},
|
| 182 |
+
{memAddr(REG_DI, REG_X27), YxvmEvex},
|
| 183 |
+
{memAddr(REG_DI, REG_Y20), YyvmEvex},
|
| 184 |
+
{memAddr(REG_DI, REG_Y27), YyvmEvex},
|
| 185 |
+
{memAddr(REG_DI, REG_Z20), Yzvm},
|
| 186 |
+
{memAddr(REG_DI, REG_Z27), Yzvm},
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
oclassTests386 = []*oclassTest{
|
| 190 |
+
{&obj.Addr{Type: obj.TYPE_ADDR, Name: obj.NAME_EXTERN, Sym: &obj.LSym{}}, Yi32},
|
| 191 |
+
|
| 192 |
+
{immAddr(-200), Yi32},
|
| 193 |
+
|
| 194 |
+
{regAddr(REG_SP), Yrl32},
|
| 195 |
+
{regAddr(REG_SI), Yrl32},
|
| 196 |
+
{regAddr(REG_DI), Yrl32},
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
// Add tests that are arch-independent for all sets.
|
| 200 |
+
oclassTestsAMD64 = append(oclassTestsAMD64, oclassTestsCommon...)
|
| 201 |
+
oclassTests386 = append(oclassTests386, oclassTestsCommon...)
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
func TestOclass(t *testing.T) {
|
| 205 |
+
runTest := func(t *testing.T, ctxt *obj.Link, tests []*oclassTest) {
|
| 206 |
+
var p obj.Prog
|
| 207 |
+
for _, test := range tests {
|
| 208 |
+
have := oclass(ctxt, &p, test.arg)
|
| 209 |
+
if have != test.want {
|
| 210 |
+
t.Errorf("oclass(%q):\nhave: %d\nwant: %d",
|
| 211 |
+
obj.Dconv(&p, test.arg), have, test.want)
|
| 212 |
+
}
|
| 213 |
+
}
|
| 214 |
+
}
|
| 215 |
+
|
| 216 |
+
// TODO(quasilyte): test edge cases for Hsolaris, etc?
|
| 217 |
+
|
| 218 |
+
t.Run("linux/AMD64", func(t *testing.T) {
|
| 219 |
+
ctxtAMD64 := obj.Linknew(&Linkamd64)
|
| 220 |
+
ctxtAMD64.Headtype = objabi.Hlinux // See #32028
|
| 221 |
+
runTest(t, ctxtAMD64, oclassTestsAMD64)
|
| 222 |
+
})
|
| 223 |
+
|
| 224 |
+
t.Run("linux/386", func(t *testing.T) {
|
| 225 |
+
ctxt386 := obj.Linknew(&Link386)
|
| 226 |
+
ctxt386.Headtype = objabi.Hlinux // See #32028
|
| 227 |
+
runTest(t, ctxt386, oclassTests386)
|
| 228 |
+
})
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
func TestRegisterListEncDec(t *testing.T) {
|
| 232 |
+
tests := []struct {
|
| 233 |
+
printed string
|
| 234 |
+
reg0 int16
|
| 235 |
+
reg1 int16
|
| 236 |
+
}{
|
| 237 |
+
{"[R10-R13]", REG_R10, REG_R13},
|
| 238 |
+
{"[X0-AX]", REG_X0, REG_AX},
|
| 239 |
+
|
| 240 |
+
{"[X0-X3]", REG_X0, REG_X3},
|
| 241 |
+
{"[X21-X24]", REG_X21, REG_X24},
|
| 242 |
+
|
| 243 |
+
{"[Y0-Y3]", REG_Y0, REG_Y3},
|
| 244 |
+
{"[Y21-Y24]", REG_Y21, REG_Y24},
|
| 245 |
+
|
| 246 |
+
{"[Z0-Z3]", REG_Z0, REG_Z3},
|
| 247 |
+
{"[Z21-Z24]", REG_Z21, REG_Z24},
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
for _, test := range tests {
|
| 251 |
+
enc := EncodeRegisterRange(test.reg0, test.reg1)
|
| 252 |
+
reg0, reg1 := decodeRegisterRange(enc)
|
| 253 |
+
|
| 254 |
+
if int16(reg0) != test.reg0 {
|
| 255 |
+
t.Errorf("%s reg0 mismatch: have %d, want %d",
|
| 256 |
+
test.printed, reg0, test.reg0)
|
| 257 |
+
}
|
| 258 |
+
if int16(reg1) != test.reg1 {
|
| 259 |
+
t.Errorf("%s reg1 mismatch: have %d, want %d",
|
| 260 |
+
test.printed, reg1, test.reg1)
|
| 261 |
+
}
|
| 262 |
+
wantPrinted := test.printed
|
| 263 |
+
if rlconv(enc) != wantPrinted {
|
| 264 |
+
t.Errorf("%s string mismatch: have %s, want %s",
|
| 265 |
+
test.printed, rlconv(enc), wantPrinted)
|
| 266 |
+
}
|
| 267 |
+
}
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
func TestRegIndex(t *testing.T) {
|
| 271 |
+
tests := []struct {
|
| 272 |
+
regFrom int
|
| 273 |
+
regTo int
|
| 274 |
+
}{
|
| 275 |
+
{REG_AL, REG_R15B},
|
| 276 |
+
{REG_AX, REG_R15},
|
| 277 |
+
{REG_M0, REG_M7},
|
| 278 |
+
{REG_K0, REG_K7},
|
| 279 |
+
{REG_X0, REG_X31},
|
| 280 |
+
{REG_Y0, REG_Y31},
|
| 281 |
+
{REG_Z0, REG_Z31},
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
for _, test := range tests {
|
| 285 |
+
for index, reg := 0, test.regFrom; reg <= test.regTo; index, reg = index+1, reg+1 {
|
| 286 |
+
have := regIndex(int16(reg))
|
| 287 |
+
want := index
|
| 288 |
+
if have != want {
|
| 289 |
+
regName := rconv(int(reg))
|
| 290 |
+
t.Errorf("regIndex(%s):\nhave: %d\nwant: %d",
|
| 291 |
+
regName, have, want)
|
| 292 |
+
}
|
| 293 |
+
}
|
| 294 |
+
}
|
| 295 |
+
}
|
| 296 |
+
|
| 297 |
+
// TestPCALIGN verifies the correctness of the PCALIGN by checking if the
|
| 298 |
+
// code can be aligned to the alignment value.
|
| 299 |
+
func TestPCALIGN(t *testing.T) {
|
| 300 |
+
testenv.MustHaveGoBuild(t)
|
| 301 |
+
dir := t.TempDir()
|
| 302 |
+
tmpfile := filepath.Join(dir, "test.s")
|
| 303 |
+
tmpout := filepath.Join(dir, "test.o")
|
| 304 |
+
|
| 305 |
+
var testCases = []struct {
|
| 306 |
+
name string
|
| 307 |
+
code string
|
| 308 |
+
out string
|
| 309 |
+
}{
|
| 310 |
+
{
|
| 311 |
+
name: "8-byte alignment",
|
| 312 |
+
code: "TEXT ·foo(SB),$0-0\nMOVQ $0, AX\nPCALIGN $8\nMOVQ $1, BX\nRET\n",
|
| 313 |
+
out: `0x0008\s00008\s\(.*\)\tMOVQ\t\$1,\sBX`,
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
name: "16-byte alignment",
|
| 317 |
+
code: "TEXT ·foo(SB),$0-0\nMOVQ $0, AX\nPCALIGN $16\nMOVQ $2, CX\nRET\n",
|
| 318 |
+
out: `0x0010\s00016\s\(.*\)\tMOVQ\t\$2,\sCX`,
|
| 319 |
+
},
|
| 320 |
+
}
|
| 321 |
+
|
| 322 |
+
for _, test := range testCases {
|
| 323 |
+
if err := os.WriteFile(tmpfile, []byte(test.code), 0644); err != nil {
|
| 324 |
+
t.Fatal(err)
|
| 325 |
+
}
|
| 326 |
+
cmd := testenv.Command(t, testenv.GoToolPath(t), "tool", "asm", "-S", "-o", tmpout, tmpfile)
|
| 327 |
+
cmd.Env = append(os.Environ(), "GOARCH=amd64", "GOOS=linux")
|
| 328 |
+
out, err := cmd.CombinedOutput()
|
| 329 |
+
if err != nil {
|
| 330 |
+
t.Errorf("The %s build failed: %v, output: %s", test.name, err, out)
|
| 331 |
+
continue
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
+
matched, err := regexp.MatchString(test.out, string(out))
|
| 335 |
+
if err != nil {
|
| 336 |
+
t.Fatal(err)
|
| 337 |
+
}
|
| 338 |
+
if !matched {
|
| 339 |
+
t.Errorf("The %s testing failed!\ninput: %s\noutput: %s\n", test.name, test.code, out)
|
| 340 |
+
}
|
| 341 |
+
}
|
| 342 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/avx_optabs.go
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/evex.go
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
package x86
|
| 6 |
+
|
| 7 |
+
import (
|
| 8 |
+
"cmd/internal/obj"
|
| 9 |
+
"errors"
|
| 10 |
+
"fmt"
|
| 11 |
+
"strings"
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
// evexBits stores EVEX prefix info that is used during instruction encoding.
|
| 15 |
+
type evexBits struct {
|
| 16 |
+
b1 byte // [W1mmLLpp]
|
| 17 |
+
b2 byte // [NNNbbZRS]
|
| 18 |
+
|
| 19 |
+
// Associated instruction opcode.
|
| 20 |
+
opcode byte
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
// newEVEXBits creates evexBits object from enc bytes at z position.
|
| 24 |
+
func newEVEXBits(z int, enc *opBytes) evexBits {
|
| 25 |
+
return evexBits{
|
| 26 |
+
b1: enc[z+0],
|
| 27 |
+
b2: enc[z+1],
|
| 28 |
+
opcode: enc[z+2],
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
// P returns EVEX.pp value.
|
| 33 |
+
func (evex evexBits) P() byte { return (evex.b1 & evexP) >> 0 }
|
| 34 |
+
|
| 35 |
+
// L returns EVEX.L'L value.
|
| 36 |
+
func (evex evexBits) L() byte { return (evex.b1 & evexL) >> 2 }
|
| 37 |
+
|
| 38 |
+
// M returns EVEX.mm value.
|
| 39 |
+
func (evex evexBits) M() byte { return (evex.b1 & evexM) >> 4 }
|
| 40 |
+
|
| 41 |
+
// W returns EVEX.W value.
|
| 42 |
+
func (evex evexBits) W() byte { return (evex.b1 & evexW) >> 7 }
|
| 43 |
+
|
| 44 |
+
// BroadcastEnabled reports whether BCST suffix is permitted.
|
| 45 |
+
func (evex evexBits) BroadcastEnabled() bool {
|
| 46 |
+
return evex.b2&evexBcst != 0
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
// ZeroingEnabled reports whether Z suffix is permitted.
|
| 50 |
+
func (evex evexBits) ZeroingEnabled() bool {
|
| 51 |
+
return (evex.b2&evexZeroing)>>2 != 0
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
// RoundingEnabled reports whether RN_SAE, RZ_SAE, RD_SAE and RU_SAE suffixes
|
| 55 |
+
// are permitted.
|
| 56 |
+
func (evex evexBits) RoundingEnabled() bool {
|
| 57 |
+
return (evex.b2&evexRounding)>>1 != 0
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
// SaeEnabled reports whether SAE suffix is permitted.
|
| 61 |
+
func (evex evexBits) SaeEnabled() bool {
|
| 62 |
+
return (evex.b2&evexSae)>>0 != 0
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
// DispMultiplier returns displacement multiplier that is calculated
|
| 66 |
+
// based on tuple type, EVEX.W and input size.
|
| 67 |
+
// If embedded broadcast is used, bcst should be true.
|
| 68 |
+
func (evex evexBits) DispMultiplier(bcst bool) int32 {
|
| 69 |
+
if bcst {
|
| 70 |
+
switch evex.b2 & evexBcst {
|
| 71 |
+
case evexBcstN4:
|
| 72 |
+
return 4
|
| 73 |
+
case evexBcstN8:
|
| 74 |
+
return 8
|
| 75 |
+
}
|
| 76 |
+
return 1
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
switch evex.b2 & evexN {
|
| 80 |
+
case evexN1:
|
| 81 |
+
return 1
|
| 82 |
+
case evexN2:
|
| 83 |
+
return 2
|
| 84 |
+
case evexN4:
|
| 85 |
+
return 4
|
| 86 |
+
case evexN8:
|
| 87 |
+
return 8
|
| 88 |
+
case evexN16:
|
| 89 |
+
return 16
|
| 90 |
+
case evexN32:
|
| 91 |
+
return 32
|
| 92 |
+
case evexN64:
|
| 93 |
+
return 64
|
| 94 |
+
case evexN128:
|
| 95 |
+
return 128
|
| 96 |
+
}
|
| 97 |
+
return 1
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
// EVEX is described by using 2-byte sequence.
|
| 101 |
+
// See evexBits for more details.
|
| 102 |
+
const (
|
| 103 |
+
evexW = 0x80 // b1[W... ....]
|
| 104 |
+
evexWIG = 0 << 7
|
| 105 |
+
evexW0 = 0 << 7
|
| 106 |
+
evexW1 = 1 << 7
|
| 107 |
+
|
| 108 |
+
evexM = 0x30 // b2[..mm ...]
|
| 109 |
+
evex0F = 1 << 4
|
| 110 |
+
evex0F38 = 2 << 4
|
| 111 |
+
evex0F3A = 3 << 4
|
| 112 |
+
|
| 113 |
+
evexL = 0x0C // b1[.... LL..]
|
| 114 |
+
evexLIG = 0 << 2
|
| 115 |
+
evex128 = 0 << 2
|
| 116 |
+
evex256 = 1 << 2
|
| 117 |
+
evex512 = 2 << 2
|
| 118 |
+
|
| 119 |
+
evexP = 0x03 // b1[.... ..pp]
|
| 120 |
+
evex66 = 1 << 0
|
| 121 |
+
evexF3 = 2 << 0
|
| 122 |
+
evexF2 = 3 << 0
|
| 123 |
+
|
| 124 |
+
// Precalculated Disp8 N value.
|
| 125 |
+
// N acts like a multiplier for 8bit displacement.
|
| 126 |
+
// Note that some N are not used, but their bits are reserved.
|
| 127 |
+
evexN = 0xE0 // b2[NNN. ....]
|
| 128 |
+
evexN1 = 0 << 5
|
| 129 |
+
evexN2 = 1 << 5
|
| 130 |
+
evexN4 = 2 << 5
|
| 131 |
+
evexN8 = 3 << 5
|
| 132 |
+
evexN16 = 4 << 5
|
| 133 |
+
evexN32 = 5 << 5
|
| 134 |
+
evexN64 = 6 << 5
|
| 135 |
+
evexN128 = 7 << 5
|
| 136 |
+
|
| 137 |
+
// Disp8 for broadcasts.
|
| 138 |
+
evexBcst = 0x18 // b2[...b b...]
|
| 139 |
+
evexBcstN4 = 1 << 3
|
| 140 |
+
evexBcstN8 = 2 << 3
|
| 141 |
+
|
| 142 |
+
// Flags that permit certain AVX512 features.
|
| 143 |
+
// It's semantically illegal to combine evexZeroing and evexSae.
|
| 144 |
+
evexZeroing = 0x4 // b2[.... .Z..]
|
| 145 |
+
evexZeroingEnabled = 1 << 2
|
| 146 |
+
evexRounding = 0x2 // b2[.... ..R.]
|
| 147 |
+
evexRoundingEnabled = 1 << 1
|
| 148 |
+
evexSae = 0x1 // b2[.... ...S]
|
| 149 |
+
evexSaeEnabled = 1 << 0
|
| 150 |
+
)
|
| 151 |
+
|
| 152 |
+
// compressedDisp8 calculates EVEX compressed displacement, if applicable.
|
| 153 |
+
func compressedDisp8(disp, elemSize int32) (disp8 byte, ok bool) {
|
| 154 |
+
if disp%elemSize == 0 {
|
| 155 |
+
v := disp / elemSize
|
| 156 |
+
if v >= -128 && v <= 127 {
|
| 157 |
+
return byte(v), true
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
return 0, false
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
// evexZcase reports whether given Z-case belongs to EVEX group.
|
| 164 |
+
func evexZcase(zcase uint8) bool {
|
| 165 |
+
return zcase > Zevex_first && zcase < Zevex_last
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
// evexSuffixBits carries instruction EVEX suffix set flags.
|
| 169 |
+
//
|
| 170 |
+
// Examples:
|
| 171 |
+
//
|
| 172 |
+
// "RU_SAE.Z" => {rounding: 3, zeroing: true}
|
| 173 |
+
// "Z" => {zeroing: true}
|
| 174 |
+
// "BCST" => {broadcast: true}
|
| 175 |
+
// "SAE.Z" => {sae: true, zeroing: true}
|
| 176 |
+
type evexSuffix struct {
|
| 177 |
+
rounding byte
|
| 178 |
+
sae bool
|
| 179 |
+
zeroing bool
|
| 180 |
+
broadcast bool
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
// Rounding control values.
|
| 184 |
+
// Match exact value for EVEX.L'L field (with exception of rcUnset).
|
| 185 |
+
const (
|
| 186 |
+
rcRNSAE = 0 // Round towards nearest
|
| 187 |
+
rcRDSAE = 1 // Round towards -Inf
|
| 188 |
+
rcRUSAE = 2 // Round towards +Inf
|
| 189 |
+
rcRZSAE = 3 // Round towards zero
|
| 190 |
+
rcUnset = 4
|
| 191 |
+
)
|
| 192 |
+
|
| 193 |
+
// newEVEXSuffix returns proper zero value for evexSuffix.
|
| 194 |
+
func newEVEXSuffix() evexSuffix {
|
| 195 |
+
return evexSuffix{rounding: rcUnset}
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
// evexSuffixMap maps obj.X86suffix to its decoded version.
|
| 199 |
+
// Filled during init().
|
| 200 |
+
var evexSuffixMap [255]evexSuffix
|
| 201 |
+
|
| 202 |
+
func init() {
|
| 203 |
+
// Decode all valid suffixes for later use.
|
| 204 |
+
for i := range opSuffixTable {
|
| 205 |
+
suffix := newEVEXSuffix()
|
| 206 |
+
parts := strings.Split(opSuffixTable[i], ".")
|
| 207 |
+
for j := range parts {
|
| 208 |
+
switch parts[j] {
|
| 209 |
+
case "Z":
|
| 210 |
+
suffix.zeroing = true
|
| 211 |
+
case "BCST":
|
| 212 |
+
suffix.broadcast = true
|
| 213 |
+
case "SAE":
|
| 214 |
+
suffix.sae = true
|
| 215 |
+
|
| 216 |
+
case "RN_SAE":
|
| 217 |
+
suffix.rounding = rcRNSAE
|
| 218 |
+
case "RD_SAE":
|
| 219 |
+
suffix.rounding = rcRDSAE
|
| 220 |
+
case "RU_SAE":
|
| 221 |
+
suffix.rounding = rcRUSAE
|
| 222 |
+
case "RZ_SAE":
|
| 223 |
+
suffix.rounding = rcRZSAE
|
| 224 |
+
}
|
| 225 |
+
}
|
| 226 |
+
evexSuffixMap[i] = suffix
|
| 227 |
+
}
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
// toDisp8 tries to convert disp to proper 8-bit displacement value.
|
| 231 |
+
func toDisp8(disp int32, p *obj.Prog, asmbuf *AsmBuf) (disp8 byte, ok bool) {
|
| 232 |
+
if asmbuf.evexflag {
|
| 233 |
+
bcst := evexSuffixMap[p.Scond].broadcast
|
| 234 |
+
elemSize := asmbuf.evex.DispMultiplier(bcst)
|
| 235 |
+
return compressedDisp8(disp, elemSize)
|
| 236 |
+
}
|
| 237 |
+
return byte(disp), disp >= -128 && disp < 128
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
+
// EncodeRegisterRange packs [reg0-reg1] list into 64-bit value that
|
| 241 |
+
// is intended to be stored inside obj.Addr.Offset with TYPE_REGLIST.
|
| 242 |
+
func EncodeRegisterRange(reg0, reg1 int16) int64 {
|
| 243 |
+
return (int64(reg0) << 0) |
|
| 244 |
+
(int64(reg1) << 16) |
|
| 245 |
+
obj.RegListX86Lo
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
// decodeRegisterRange unpacks [reg0-reg1] list from 64-bit value created by EncodeRegisterRange.
|
| 249 |
+
func decodeRegisterRange(list int64) (reg0, reg1 int) {
|
| 250 |
+
return int((list >> 0) & 0xFFFF),
|
| 251 |
+
int((list >> 16) & 0xFFFF)
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
// ParseSuffix handles the special suffix for the 386/AMD64.
|
| 255 |
+
// Suffix bits are stored into p.Scond.
|
| 256 |
+
//
|
| 257 |
+
// Leading "." in cond is ignored.
|
| 258 |
+
func ParseSuffix(p *obj.Prog, cond string) error {
|
| 259 |
+
cond = strings.TrimPrefix(cond, ".")
|
| 260 |
+
|
| 261 |
+
suffix := newOpSuffix(cond)
|
| 262 |
+
if !suffix.IsValid() {
|
| 263 |
+
return inferSuffixError(cond)
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
p.Scond = uint8(suffix)
|
| 267 |
+
return nil
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
// inferSuffixError returns non-nil error that describes what could be
|
| 271 |
+
// the cause of suffix parse failure.
|
| 272 |
+
//
|
| 273 |
+
// At the point this function is executed there is already assembly error,
|
| 274 |
+
// so we can burn some clocks to construct good error message.
|
| 275 |
+
//
|
| 276 |
+
// Reported issues:
|
| 277 |
+
// - duplicated suffixes
|
| 278 |
+
// - illegal rounding/SAE+broadcast combinations
|
| 279 |
+
// - unknown suffixes
|
| 280 |
+
// - misplaced suffix (e.g. wrong Z suffix position)
|
| 281 |
+
func inferSuffixError(cond string) error {
|
| 282 |
+
suffixSet := make(map[string]bool) // Set for duplicates detection.
|
| 283 |
+
unknownSet := make(map[string]bool) // Set of unknown suffixes.
|
| 284 |
+
hasBcst := false
|
| 285 |
+
hasRoundSae := false
|
| 286 |
+
var msg []string // Error message parts
|
| 287 |
+
|
| 288 |
+
suffixes := strings.Split(cond, ".")
|
| 289 |
+
for i, suffix := range suffixes {
|
| 290 |
+
switch suffix {
|
| 291 |
+
case "Z":
|
| 292 |
+
if i != len(suffixes)-1 {
|
| 293 |
+
msg = append(msg, "Z suffix should be the last")
|
| 294 |
+
}
|
| 295 |
+
case "BCST":
|
| 296 |
+
hasBcst = true
|
| 297 |
+
case "SAE", "RN_SAE", "RZ_SAE", "RD_SAE", "RU_SAE":
|
| 298 |
+
hasRoundSae = true
|
| 299 |
+
default:
|
| 300 |
+
if !unknownSet[suffix] {
|
| 301 |
+
msg = append(msg, fmt.Sprintf("unknown suffix %q", suffix))
|
| 302 |
+
}
|
| 303 |
+
unknownSet[suffix] = true
|
| 304 |
+
}
|
| 305 |
+
|
| 306 |
+
if suffixSet[suffix] {
|
| 307 |
+
msg = append(msg, fmt.Sprintf("duplicate suffix %q", suffix))
|
| 308 |
+
}
|
| 309 |
+
suffixSet[suffix] = true
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
if hasBcst && hasRoundSae {
|
| 313 |
+
msg = append(msg, "can't combine rounding/SAE and broadcast")
|
| 314 |
+
}
|
| 315 |
+
|
| 316 |
+
if len(msg) == 0 {
|
| 317 |
+
return errors.New("bad suffix combination")
|
| 318 |
+
}
|
| 319 |
+
return errors.New(strings.Join(msg, "; "))
|
| 320 |
+
}
|
| 321 |
+
|
| 322 |
+
// opSuffixTable is a complete list of possible opcode suffix combinations.
|
| 323 |
+
// It "maps" uint8 suffix bits to their string representation.
|
| 324 |
+
// With the exception of first and last elements, order is not important.
|
| 325 |
+
var opSuffixTable = [...]string{
|
| 326 |
+
"", // Map empty suffix to empty string.
|
| 327 |
+
|
| 328 |
+
"Z",
|
| 329 |
+
|
| 330 |
+
"SAE",
|
| 331 |
+
"SAE.Z",
|
| 332 |
+
|
| 333 |
+
"RN_SAE",
|
| 334 |
+
"RZ_SAE",
|
| 335 |
+
"RD_SAE",
|
| 336 |
+
"RU_SAE",
|
| 337 |
+
"RN_SAE.Z",
|
| 338 |
+
"RZ_SAE.Z",
|
| 339 |
+
"RD_SAE.Z",
|
| 340 |
+
"RU_SAE.Z",
|
| 341 |
+
|
| 342 |
+
"BCST",
|
| 343 |
+
"BCST.Z",
|
| 344 |
+
|
| 345 |
+
"<bad suffix>",
|
| 346 |
+
}
|
| 347 |
+
|
| 348 |
+
// opSuffix represents instruction opcode suffix.
|
| 349 |
+
// Compound (multi-part) suffixes expressed with single opSuffix value.
|
| 350 |
+
//
|
| 351 |
+
// uint8 type is used to fit obj.Prog.Scond.
|
| 352 |
+
type opSuffix uint8
|
| 353 |
+
|
| 354 |
+
// badOpSuffix is used to represent all invalid suffix combinations.
|
| 355 |
+
const badOpSuffix = opSuffix(len(opSuffixTable) - 1)
|
| 356 |
+
|
| 357 |
+
// newOpSuffix returns opSuffix object that matches suffixes string.
|
| 358 |
+
//
|
| 359 |
+
// If no matching suffix is found, special "invalid" suffix is returned.
|
| 360 |
+
// Use IsValid method to check against this case.
|
| 361 |
+
func newOpSuffix(suffixes string) opSuffix {
|
| 362 |
+
for i := range opSuffixTable {
|
| 363 |
+
if opSuffixTable[i] == suffixes {
|
| 364 |
+
return opSuffix(i)
|
| 365 |
+
}
|
| 366 |
+
}
|
| 367 |
+
return badOpSuffix
|
| 368 |
+
}
|
| 369 |
+
|
| 370 |
+
// IsValid reports whether suffix is valid.
|
| 371 |
+
// Empty suffixes are valid.
|
| 372 |
+
func (suffix opSuffix) IsValid() bool {
|
| 373 |
+
return suffix != badOpSuffix
|
| 374 |
+
}
|
| 375 |
+
|
| 376 |
+
// String returns suffix printed representation.
|
| 377 |
+
//
|
| 378 |
+
// It matches the string that was used to create suffix with NewX86Suffix()
|
| 379 |
+
// for valid suffixes.
|
| 380 |
+
// For all invalid suffixes, special marker is returned.
|
| 381 |
+
func (suffix opSuffix) String() string {
|
| 382 |
+
return opSuffixTable[suffix]
|
| 383 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/list6.go
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Inferno utils/6c/list.c
|
| 2 |
+
// https://bitbucket.org/inferno-os/inferno-os/src/master/utils/6c/list.c
|
| 3 |
+
//
|
| 4 |
+
// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
|
| 5 |
+
// Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net)
|
| 6 |
+
// Portions Copyright © 1997-1999 Vita Nuova Limited
|
| 7 |
+
// Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuova.com)
|
| 8 |
+
// Portions Copyright © 2004,2006 Bruce Ellis
|
| 9 |
+
// Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net)
|
| 10 |
+
// Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others
|
| 11 |
+
// Portions Copyright © 2009 The Go Authors. All rights reserved.
|
| 12 |
+
//
|
| 13 |
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 14 |
+
// of this software and associated documentation files (the "Software"), to deal
|
| 15 |
+
// in the Software without restriction, including without limitation the rights
|
| 16 |
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 17 |
+
// copies of the Software, and to permit persons to whom the Software is
|
| 18 |
+
// furnished to do so, subject to the following conditions:
|
| 19 |
+
//
|
| 20 |
+
// The above copyright notice and this permission notice shall be included in
|
| 21 |
+
// all copies or substantial portions of the Software.
|
| 22 |
+
//
|
| 23 |
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 24 |
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 26 |
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 27 |
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 28 |
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 29 |
+
// THE SOFTWARE.
|
| 30 |
+
|
| 31 |
+
package x86
|
| 32 |
+
|
| 33 |
+
import (
|
| 34 |
+
"cmd/internal/obj"
|
| 35 |
+
"fmt"
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
var Register = []string{
|
| 39 |
+
"AL", // [D_AL]
|
| 40 |
+
"CL",
|
| 41 |
+
"DL",
|
| 42 |
+
"BL",
|
| 43 |
+
"SPB",
|
| 44 |
+
"BPB",
|
| 45 |
+
"SIB",
|
| 46 |
+
"DIB",
|
| 47 |
+
"R8B",
|
| 48 |
+
"R9B",
|
| 49 |
+
"R10B",
|
| 50 |
+
"R11B",
|
| 51 |
+
"R12B",
|
| 52 |
+
"R13B",
|
| 53 |
+
"R14B",
|
| 54 |
+
"R15B",
|
| 55 |
+
"AX", // [D_AX]
|
| 56 |
+
"CX",
|
| 57 |
+
"DX",
|
| 58 |
+
"BX",
|
| 59 |
+
"SP",
|
| 60 |
+
"BP",
|
| 61 |
+
"SI",
|
| 62 |
+
"DI",
|
| 63 |
+
"R8",
|
| 64 |
+
"R9",
|
| 65 |
+
"R10",
|
| 66 |
+
"R11",
|
| 67 |
+
"R12",
|
| 68 |
+
"R13",
|
| 69 |
+
"R14",
|
| 70 |
+
"R15",
|
| 71 |
+
"AH",
|
| 72 |
+
"CH",
|
| 73 |
+
"DH",
|
| 74 |
+
"BH",
|
| 75 |
+
"F0", // [D_F0]
|
| 76 |
+
"F1",
|
| 77 |
+
"F2",
|
| 78 |
+
"F3",
|
| 79 |
+
"F4",
|
| 80 |
+
"F5",
|
| 81 |
+
"F6",
|
| 82 |
+
"F7",
|
| 83 |
+
"M0",
|
| 84 |
+
"M1",
|
| 85 |
+
"M2",
|
| 86 |
+
"M3",
|
| 87 |
+
"M4",
|
| 88 |
+
"M5",
|
| 89 |
+
"M6",
|
| 90 |
+
"M7",
|
| 91 |
+
"K0",
|
| 92 |
+
"K1",
|
| 93 |
+
"K2",
|
| 94 |
+
"K3",
|
| 95 |
+
"K4",
|
| 96 |
+
"K5",
|
| 97 |
+
"K6",
|
| 98 |
+
"K7",
|
| 99 |
+
"X0",
|
| 100 |
+
"X1",
|
| 101 |
+
"X2",
|
| 102 |
+
"X3",
|
| 103 |
+
"X4",
|
| 104 |
+
"X5",
|
| 105 |
+
"X6",
|
| 106 |
+
"X7",
|
| 107 |
+
"X8",
|
| 108 |
+
"X9",
|
| 109 |
+
"X10",
|
| 110 |
+
"X11",
|
| 111 |
+
"X12",
|
| 112 |
+
"X13",
|
| 113 |
+
"X14",
|
| 114 |
+
"X15",
|
| 115 |
+
"X16",
|
| 116 |
+
"X17",
|
| 117 |
+
"X18",
|
| 118 |
+
"X19",
|
| 119 |
+
"X20",
|
| 120 |
+
"X21",
|
| 121 |
+
"X22",
|
| 122 |
+
"X23",
|
| 123 |
+
"X24",
|
| 124 |
+
"X25",
|
| 125 |
+
"X26",
|
| 126 |
+
"X27",
|
| 127 |
+
"X28",
|
| 128 |
+
"X29",
|
| 129 |
+
"X30",
|
| 130 |
+
"X31",
|
| 131 |
+
"Y0",
|
| 132 |
+
"Y1",
|
| 133 |
+
"Y2",
|
| 134 |
+
"Y3",
|
| 135 |
+
"Y4",
|
| 136 |
+
"Y5",
|
| 137 |
+
"Y6",
|
| 138 |
+
"Y7",
|
| 139 |
+
"Y8",
|
| 140 |
+
"Y9",
|
| 141 |
+
"Y10",
|
| 142 |
+
"Y11",
|
| 143 |
+
"Y12",
|
| 144 |
+
"Y13",
|
| 145 |
+
"Y14",
|
| 146 |
+
"Y15",
|
| 147 |
+
"Y16",
|
| 148 |
+
"Y17",
|
| 149 |
+
"Y18",
|
| 150 |
+
"Y19",
|
| 151 |
+
"Y20",
|
| 152 |
+
"Y21",
|
| 153 |
+
"Y22",
|
| 154 |
+
"Y23",
|
| 155 |
+
"Y24",
|
| 156 |
+
"Y25",
|
| 157 |
+
"Y26",
|
| 158 |
+
"Y27",
|
| 159 |
+
"Y28",
|
| 160 |
+
"Y29",
|
| 161 |
+
"Y30",
|
| 162 |
+
"Y31",
|
| 163 |
+
"Z0",
|
| 164 |
+
"Z1",
|
| 165 |
+
"Z2",
|
| 166 |
+
"Z3",
|
| 167 |
+
"Z4",
|
| 168 |
+
"Z5",
|
| 169 |
+
"Z6",
|
| 170 |
+
"Z7",
|
| 171 |
+
"Z8",
|
| 172 |
+
"Z9",
|
| 173 |
+
"Z10",
|
| 174 |
+
"Z11",
|
| 175 |
+
"Z12",
|
| 176 |
+
"Z13",
|
| 177 |
+
"Z14",
|
| 178 |
+
"Z15",
|
| 179 |
+
"Z16",
|
| 180 |
+
"Z17",
|
| 181 |
+
"Z18",
|
| 182 |
+
"Z19",
|
| 183 |
+
"Z20",
|
| 184 |
+
"Z21",
|
| 185 |
+
"Z22",
|
| 186 |
+
"Z23",
|
| 187 |
+
"Z24",
|
| 188 |
+
"Z25",
|
| 189 |
+
"Z26",
|
| 190 |
+
"Z27",
|
| 191 |
+
"Z28",
|
| 192 |
+
"Z29",
|
| 193 |
+
"Z30",
|
| 194 |
+
"Z31",
|
| 195 |
+
"CS", // [D_CS]
|
| 196 |
+
"SS",
|
| 197 |
+
"DS",
|
| 198 |
+
"ES",
|
| 199 |
+
"FS",
|
| 200 |
+
"GS",
|
| 201 |
+
"GDTR", // [D_GDTR]
|
| 202 |
+
"IDTR", // [D_IDTR]
|
| 203 |
+
"LDTR", // [D_LDTR]
|
| 204 |
+
"MSW", // [D_MSW]
|
| 205 |
+
"TASK", // [D_TASK]
|
| 206 |
+
"CR0", // [D_CR]
|
| 207 |
+
"CR1",
|
| 208 |
+
"CR2",
|
| 209 |
+
"CR3",
|
| 210 |
+
"CR4",
|
| 211 |
+
"CR5",
|
| 212 |
+
"CR6",
|
| 213 |
+
"CR7",
|
| 214 |
+
"CR8",
|
| 215 |
+
"CR9",
|
| 216 |
+
"CR10",
|
| 217 |
+
"CR11",
|
| 218 |
+
"CR12",
|
| 219 |
+
"CR13",
|
| 220 |
+
"CR14",
|
| 221 |
+
"CR15",
|
| 222 |
+
"DR0", // [D_DR]
|
| 223 |
+
"DR1",
|
| 224 |
+
"DR2",
|
| 225 |
+
"DR3",
|
| 226 |
+
"DR4",
|
| 227 |
+
"DR5",
|
| 228 |
+
"DR6",
|
| 229 |
+
"DR7",
|
| 230 |
+
"TR0", // [D_TR]
|
| 231 |
+
"TR1",
|
| 232 |
+
"TR2",
|
| 233 |
+
"TR3",
|
| 234 |
+
"TR4",
|
| 235 |
+
"TR5",
|
| 236 |
+
"TR6",
|
| 237 |
+
"TR7",
|
| 238 |
+
"TLS", // [D_TLS]
|
| 239 |
+
"MAXREG", // [MAXREG]
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
func init() {
|
| 243 |
+
obj.RegisterRegister(REG_AL, REG_AL+len(Register), rconv)
|
| 244 |
+
obj.RegisterOpcode(obj.ABaseAMD64, Anames)
|
| 245 |
+
obj.RegisterRegisterList(obj.RegListX86Lo, obj.RegListX86Hi, rlconv)
|
| 246 |
+
obj.RegisterOpSuffix("386", opSuffixString)
|
| 247 |
+
obj.RegisterOpSuffix("amd64", opSuffixString)
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
func rconv(r int) string {
|
| 251 |
+
if REG_AL <= r && r-REG_AL < len(Register) {
|
| 252 |
+
return Register[r-REG_AL]
|
| 253 |
+
}
|
| 254 |
+
return fmt.Sprintf("Rgok(%d)", r-obj.RBaseAMD64)
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
func rlconv(bits int64) string {
|
| 258 |
+
reg0, reg1 := decodeRegisterRange(bits)
|
| 259 |
+
return fmt.Sprintf("[%s-%s]", rconv(reg0), rconv(reg1))
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
func opSuffixString(s uint8) string {
|
| 263 |
+
return "." + opSuffix(s).String()
|
| 264 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/obj6.go
ADDED
|
@@ -0,0 +1,1546 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Inferno utils/6l/pass.c
|
| 2 |
+
// https://bitbucket.org/inferno-os/inferno-os/src/master/utils/6l/pass.c
|
| 3 |
+
//
|
| 4 |
+
// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
|
| 5 |
+
// Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net)
|
| 6 |
+
// Portions Copyright © 1997-1999 Vita Nuova Limited
|
| 7 |
+
// Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuova.com)
|
| 8 |
+
// Portions Copyright © 2004,2006 Bruce Ellis
|
| 9 |
+
// Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net)
|
| 10 |
+
// Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others
|
| 11 |
+
// Portions Copyright © 2009 The Go Authors. All rights reserved.
|
| 12 |
+
//
|
| 13 |
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 14 |
+
// of this software and associated documentation files (the "Software"), to deal
|
| 15 |
+
// in the Software without restriction, including without limitation the rights
|
| 16 |
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 17 |
+
// copies of the Software, and to permit persons to whom the Software is
|
| 18 |
+
// furnished to do so, subject to the following conditions:
|
| 19 |
+
//
|
| 20 |
+
// The above copyright notice and this permission notice shall be included in
|
| 21 |
+
// all copies or substantial portions of the Software.
|
| 22 |
+
//
|
| 23 |
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 24 |
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 26 |
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 27 |
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 28 |
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 29 |
+
// THE SOFTWARE.
|
| 30 |
+
|
| 31 |
+
package x86
|
| 32 |
+
|
| 33 |
+
import (
|
| 34 |
+
"cmd/internal/obj"
|
| 35 |
+
"cmd/internal/objabi"
|
| 36 |
+
"cmd/internal/src"
|
| 37 |
+
"cmd/internal/sys"
|
| 38 |
+
"internal/abi"
|
| 39 |
+
"log"
|
| 40 |
+
"math"
|
| 41 |
+
"path"
|
| 42 |
+
"strings"
|
| 43 |
+
)
|
| 44 |
+
|
| 45 |
+
func CanUse1InsnTLS(ctxt *obj.Link) bool {
|
| 46 |
+
if isAndroid {
|
| 47 |
+
// Android uses a global variable for the tls offset.
|
| 48 |
+
return false
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
if ctxt.Arch.Family == sys.I386 {
|
| 52 |
+
switch ctxt.Headtype {
|
| 53 |
+
case objabi.Hlinux,
|
| 54 |
+
objabi.Hplan9,
|
| 55 |
+
objabi.Hwindows:
|
| 56 |
+
return false
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
return true
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
switch ctxt.Headtype {
|
| 63 |
+
case objabi.Hplan9, objabi.Hwindows:
|
| 64 |
+
return false
|
| 65 |
+
case objabi.Hlinux, objabi.Hfreebsd:
|
| 66 |
+
return !ctxt.Flag_shared
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
return true
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
func progedit(ctxt *obj.Link, p *obj.Prog, newprog obj.ProgAlloc) {
|
| 73 |
+
// Thread-local storage references use the TLS pseudo-register.
|
| 74 |
+
// As a register, TLS refers to the thread-local storage base, and it
|
| 75 |
+
// can only be loaded into another register:
|
| 76 |
+
//
|
| 77 |
+
// MOVQ TLS, AX
|
| 78 |
+
//
|
| 79 |
+
// An offset from the thread-local storage base is written off(reg)(TLS*1).
|
| 80 |
+
// Semantically it is off(reg), but the (TLS*1) annotation marks this as
|
| 81 |
+
// indexing from the loaded TLS base. This emits a relocation so that
|
| 82 |
+
// if the linker needs to adjust the offset, it can. For example:
|
| 83 |
+
//
|
| 84 |
+
// MOVQ TLS, AX
|
| 85 |
+
// MOVQ 0(AX)(TLS*1), CX // load g into CX
|
| 86 |
+
//
|
| 87 |
+
// On systems that support direct access to the TLS memory, this
|
| 88 |
+
// pair of instructions can be reduced to a direct TLS memory reference:
|
| 89 |
+
//
|
| 90 |
+
// MOVQ 0(TLS), CX // load g into CX
|
| 91 |
+
//
|
| 92 |
+
// The 2-instruction and 1-instruction forms correspond to the two code
|
| 93 |
+
// sequences for loading a TLS variable in the local exec model given in "ELF
|
| 94 |
+
// Handling For Thread-Local Storage".
|
| 95 |
+
//
|
| 96 |
+
// We apply this rewrite on systems that support the 1-instruction form.
|
| 97 |
+
// The decision is made using only the operating system and the -shared flag,
|
| 98 |
+
// not the link mode. If some link modes on a particular operating system
|
| 99 |
+
// require the 2-instruction form, then all builds for that operating system
|
| 100 |
+
// will use the 2-instruction form, so that the link mode decision can be
|
| 101 |
+
// delayed to link time.
|
| 102 |
+
//
|
| 103 |
+
// In this way, all supported systems use identical instructions to
|
| 104 |
+
// access TLS, and they are rewritten appropriately first here in
|
| 105 |
+
// liblink and then finally using relocations in the linker.
|
| 106 |
+
//
|
| 107 |
+
// When -shared is passed, we leave the code in the 2-instruction form but
|
| 108 |
+
// assemble (and relocate) them in different ways to generate the initial
|
| 109 |
+
// exec code sequence. It's a bit of a fluke that this is possible without
|
| 110 |
+
// rewriting the instructions more comprehensively, and it only does because
|
| 111 |
+
// we only support a single TLS variable (g).
|
| 112 |
+
|
| 113 |
+
if CanUse1InsnTLS(ctxt) {
|
| 114 |
+
// Reduce 2-instruction sequence to 1-instruction sequence.
|
| 115 |
+
// Sequences like
|
| 116 |
+
// MOVQ TLS, BX
|
| 117 |
+
// ... off(BX)(TLS*1) ...
|
| 118 |
+
// become
|
| 119 |
+
// NOP
|
| 120 |
+
// ... off(TLS) ...
|
| 121 |
+
//
|
| 122 |
+
// TODO(rsc): Remove the Hsolaris special case. It exists only to
|
| 123 |
+
// guarantee we are producing byte-identical binaries as before this code.
|
| 124 |
+
// But it should be unnecessary.
|
| 125 |
+
if (p.As == AMOVQ || p.As == AMOVL) && p.From.Type == obj.TYPE_REG && p.From.Reg == REG_TLS && p.To.Type == obj.TYPE_REG && REG_AX <= p.To.Reg && p.To.Reg <= REG_R15 && ctxt.Headtype != objabi.Hsolaris {
|
| 126 |
+
obj.Nopout(p)
|
| 127 |
+
}
|
| 128 |
+
if p.From.Type == obj.TYPE_MEM && p.From.Index == REG_TLS && REG_AX <= p.From.Reg && p.From.Reg <= REG_R15 {
|
| 129 |
+
p.From.Reg = REG_TLS
|
| 130 |
+
p.From.Scale = 0
|
| 131 |
+
p.From.Index = REG_NONE
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
if p.To.Type == obj.TYPE_MEM && p.To.Index == REG_TLS && REG_AX <= p.To.Reg && p.To.Reg <= REG_R15 {
|
| 135 |
+
p.To.Reg = REG_TLS
|
| 136 |
+
p.To.Scale = 0
|
| 137 |
+
p.To.Index = REG_NONE
|
| 138 |
+
}
|
| 139 |
+
} else {
|
| 140 |
+
// load_g, below, always inserts the 1-instruction sequence. Rewrite it
|
| 141 |
+
// as the 2-instruction sequence if necessary.
|
| 142 |
+
// MOVQ 0(TLS), BX
|
| 143 |
+
// becomes
|
| 144 |
+
// MOVQ TLS, BX
|
| 145 |
+
// MOVQ 0(BX)(TLS*1), BX
|
| 146 |
+
if (p.As == AMOVQ || p.As == AMOVL) && p.From.Type == obj.TYPE_MEM && p.From.Reg == REG_TLS && p.To.Type == obj.TYPE_REG && REG_AX <= p.To.Reg && p.To.Reg <= REG_R15 {
|
| 147 |
+
q := obj.Appendp(p, newprog)
|
| 148 |
+
q.As = p.As
|
| 149 |
+
q.From = p.From
|
| 150 |
+
q.From.Type = obj.TYPE_MEM
|
| 151 |
+
q.From.Reg = p.To.Reg
|
| 152 |
+
q.From.Index = REG_TLS
|
| 153 |
+
q.From.Scale = 2 // TODO: use 1
|
| 154 |
+
q.To = p.To
|
| 155 |
+
p.From.Type = obj.TYPE_REG
|
| 156 |
+
p.From.Reg = REG_TLS
|
| 157 |
+
p.From.Index = REG_NONE
|
| 158 |
+
p.From.Offset = 0
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
// Android and Windows use a tls offset determined at runtime. Rewrite
|
| 163 |
+
// MOVQ TLS, BX
|
| 164 |
+
// to
|
| 165 |
+
// MOVQ runtime.tls_g(SB), BX
|
| 166 |
+
if (isAndroid || ctxt.Headtype == objabi.Hwindows) &&
|
| 167 |
+
(p.As == AMOVQ || p.As == AMOVL) && p.From.Type == obj.TYPE_REG && p.From.Reg == REG_TLS && p.To.Type == obj.TYPE_REG && REG_AX <= p.To.Reg && p.To.Reg <= REG_R15 {
|
| 168 |
+
p.From.Type = obj.TYPE_MEM
|
| 169 |
+
p.From.Name = obj.NAME_EXTERN
|
| 170 |
+
p.From.Reg = REG_NONE
|
| 171 |
+
p.From.Sym = ctxt.Lookup("runtime.tls_g")
|
| 172 |
+
p.From.Index = REG_NONE
|
| 173 |
+
if ctxt.Headtype == objabi.Hwindows {
|
| 174 |
+
// Windows requires an additional indirection
|
| 175 |
+
// to retrieve the TLS pointer,
|
| 176 |
+
// as runtime.tls_g contains the TLS offset from GS or FS.
|
| 177 |
+
// on AMD64 add
|
| 178 |
+
// MOVQ 0(BX)(GS*1), BX
|
| 179 |
+
// on 386 add
|
| 180 |
+
// MOVQ 0(BX)(FS*1), BX4
|
| 181 |
+
q := obj.Appendp(p, newprog)
|
| 182 |
+
q.As = p.As
|
| 183 |
+
q.From = obj.Addr{}
|
| 184 |
+
q.From.Type = obj.TYPE_MEM
|
| 185 |
+
q.From.Reg = p.To.Reg
|
| 186 |
+
if ctxt.Arch.Family == sys.AMD64 {
|
| 187 |
+
q.From.Index = REG_GS
|
| 188 |
+
} else {
|
| 189 |
+
q.From.Index = REG_FS
|
| 190 |
+
}
|
| 191 |
+
q.From.Scale = 1
|
| 192 |
+
q.From.Offset = 0
|
| 193 |
+
q.To = p.To
|
| 194 |
+
}
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
// TODO: Remove.
|
| 198 |
+
if ctxt.Headtype == objabi.Hwindows && ctxt.Arch.Family == sys.AMD64 || ctxt.Headtype == objabi.Hplan9 {
|
| 199 |
+
if p.From.Scale == 1 && p.From.Index == REG_TLS {
|
| 200 |
+
p.From.Scale = 2
|
| 201 |
+
}
|
| 202 |
+
if p.To.Scale == 1 && p.To.Index == REG_TLS {
|
| 203 |
+
p.To.Scale = 2
|
| 204 |
+
}
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
// Rewrite 0 to $0 in 3rd argument to CMPPS etc.
|
| 208 |
+
// That's what the tables expect.
|
| 209 |
+
switch p.As {
|
| 210 |
+
case ACMPPD, ACMPPS, ACMPSD, ACMPSS:
|
| 211 |
+
if p.To.Type == obj.TYPE_MEM && p.To.Name == obj.NAME_NONE && p.To.Reg == REG_NONE && p.To.Index == REG_NONE && p.To.Sym == nil {
|
| 212 |
+
p.To.Type = obj.TYPE_CONST
|
| 213 |
+
}
|
| 214 |
+
}
|
| 215 |
+
|
| 216 |
+
// Rewrite CALL/JMP/RET to symbol as TYPE_BRANCH.
|
| 217 |
+
switch p.As {
|
| 218 |
+
case obj.ACALL, obj.AJMP, obj.ARET:
|
| 219 |
+
if p.To.Type == obj.TYPE_MEM && (p.To.Name == obj.NAME_EXTERN || p.To.Name == obj.NAME_STATIC) && p.To.Sym != nil {
|
| 220 |
+
p.To.Type = obj.TYPE_BRANCH
|
| 221 |
+
}
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
+
// Rewrite MOVL/MOVQ $XXX(FP/SP) as LEAL/LEAQ.
|
| 225 |
+
if p.From.Type == obj.TYPE_ADDR && (ctxt.Arch.Family == sys.AMD64 || p.From.Name != obj.NAME_EXTERN && p.From.Name != obj.NAME_STATIC) {
|
| 226 |
+
switch p.As {
|
| 227 |
+
case AMOVL:
|
| 228 |
+
p.As = ALEAL
|
| 229 |
+
p.From.Type = obj.TYPE_MEM
|
| 230 |
+
case AMOVQ:
|
| 231 |
+
p.As = ALEAQ
|
| 232 |
+
p.From.Type = obj.TYPE_MEM
|
| 233 |
+
}
|
| 234 |
+
}
|
| 235 |
+
|
| 236 |
+
// Rewrite float constants to values stored in memory.
|
| 237 |
+
switch p.As {
|
| 238 |
+
// Convert AMOVSS $(0), Xx to AXORPS Xx, Xx
|
| 239 |
+
case AMOVSS:
|
| 240 |
+
if p.From.Type == obj.TYPE_FCONST {
|
| 241 |
+
// f == 0 can't be used here due to -0, so use Float64bits
|
| 242 |
+
if f := p.From.Val.(float64); math.Float64bits(f) == 0 {
|
| 243 |
+
if p.To.Type == obj.TYPE_REG && REG_X0 <= p.To.Reg && p.To.Reg <= REG_X15 {
|
| 244 |
+
p.As = AXORPS
|
| 245 |
+
p.From = p.To
|
| 246 |
+
break
|
| 247 |
+
}
|
| 248 |
+
}
|
| 249 |
+
}
|
| 250 |
+
fallthrough
|
| 251 |
+
|
| 252 |
+
case AFMOVF,
|
| 253 |
+
AFADDF,
|
| 254 |
+
AFSUBF,
|
| 255 |
+
AFSUBRF,
|
| 256 |
+
AFMULF,
|
| 257 |
+
AFDIVF,
|
| 258 |
+
AFDIVRF,
|
| 259 |
+
AFCOMF,
|
| 260 |
+
AFCOMFP,
|
| 261 |
+
AADDSS,
|
| 262 |
+
ASUBSS,
|
| 263 |
+
AMULSS,
|
| 264 |
+
ADIVSS,
|
| 265 |
+
ACOMISS,
|
| 266 |
+
AUCOMISS:
|
| 267 |
+
if p.From.Type == obj.TYPE_FCONST {
|
| 268 |
+
f32 := float32(p.From.Val.(float64))
|
| 269 |
+
p.From.Type = obj.TYPE_MEM
|
| 270 |
+
p.From.Name = obj.NAME_EXTERN
|
| 271 |
+
p.From.Sym = ctxt.Float32Sym(f32)
|
| 272 |
+
p.From.Offset = 0
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
case AMOVSD:
|
| 276 |
+
// Convert AMOVSD $(0), Xx to AXORPS Xx, Xx
|
| 277 |
+
if p.From.Type == obj.TYPE_FCONST {
|
| 278 |
+
// f == 0 can't be used here due to -0, so use Float64bits
|
| 279 |
+
if f := p.From.Val.(float64); math.Float64bits(f) == 0 {
|
| 280 |
+
if p.To.Type == obj.TYPE_REG && REG_X0 <= p.To.Reg && p.To.Reg <= REG_X15 {
|
| 281 |
+
p.As = AXORPS
|
| 282 |
+
p.From = p.To
|
| 283 |
+
break
|
| 284 |
+
}
|
| 285 |
+
}
|
| 286 |
+
}
|
| 287 |
+
fallthrough
|
| 288 |
+
|
| 289 |
+
case AFMOVD,
|
| 290 |
+
AFADDD,
|
| 291 |
+
AFSUBD,
|
| 292 |
+
AFSUBRD,
|
| 293 |
+
AFMULD,
|
| 294 |
+
AFDIVD,
|
| 295 |
+
AFDIVRD,
|
| 296 |
+
AFCOMD,
|
| 297 |
+
AFCOMDP,
|
| 298 |
+
AADDSD,
|
| 299 |
+
ASUBSD,
|
| 300 |
+
AMULSD,
|
| 301 |
+
ADIVSD,
|
| 302 |
+
ACOMISD,
|
| 303 |
+
AUCOMISD:
|
| 304 |
+
if p.From.Type == obj.TYPE_FCONST {
|
| 305 |
+
f64 := p.From.Val.(float64)
|
| 306 |
+
p.From.Type = obj.TYPE_MEM
|
| 307 |
+
p.From.Name = obj.NAME_EXTERN
|
| 308 |
+
p.From.Sym = ctxt.Float64Sym(f64)
|
| 309 |
+
p.From.Offset = 0
|
| 310 |
+
}
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
if ctxt.Flag_dynlink {
|
| 314 |
+
rewriteToUseGot(ctxt, p, newprog)
|
| 315 |
+
}
|
| 316 |
+
|
| 317 |
+
if ctxt.Flag_shared && ctxt.Arch.Family == sys.I386 {
|
| 318 |
+
rewriteToPcrel(ctxt, p, newprog)
|
| 319 |
+
}
|
| 320 |
+
}
|
| 321 |
+
|
| 322 |
+
// Rewrite p, if necessary, to access global data via the global offset table.
|
| 323 |
+
func rewriteToUseGot(ctxt *obj.Link, p *obj.Prog, newprog obj.ProgAlloc) {
|
| 324 |
+
var lea, mov obj.As
|
| 325 |
+
var reg int16
|
| 326 |
+
if ctxt.Arch.Family == sys.AMD64 {
|
| 327 |
+
lea = ALEAQ
|
| 328 |
+
mov = AMOVQ
|
| 329 |
+
reg = REG_R15
|
| 330 |
+
} else {
|
| 331 |
+
lea = ALEAL
|
| 332 |
+
mov = AMOVL
|
| 333 |
+
reg = REG_CX
|
| 334 |
+
if p.As == ALEAL && p.To.Reg != p.From.Reg && p.To.Reg != p.From.Index {
|
| 335 |
+
// Special case: clobber the destination register with
|
| 336 |
+
// the PC so we don't have to clobber CX.
|
| 337 |
+
// The SSA backend depends on CX not being clobbered across LEAL.
|
| 338 |
+
// See cmd/compile/internal/ssa/gen/386.rules (search for Flag_shared).
|
| 339 |
+
reg = p.To.Reg
|
| 340 |
+
}
|
| 341 |
+
}
|
| 342 |
+
|
| 343 |
+
if p.As == obj.ADUFFCOPY || p.As == obj.ADUFFZERO {
|
| 344 |
+
// ADUFFxxx $offset
|
| 345 |
+
// becomes
|
| 346 |
+
// $MOV runtime.duffxxx@GOT, $reg
|
| 347 |
+
// $LEA $offset($reg), $reg
|
| 348 |
+
// CALL $reg
|
| 349 |
+
// (we use LEAx rather than ADDx because ADDx clobbers
|
| 350 |
+
// flags and duffzero on 386 does not otherwise do so).
|
| 351 |
+
var sym *obj.LSym
|
| 352 |
+
if p.As == obj.ADUFFZERO {
|
| 353 |
+
sym = ctxt.LookupABI("runtime.duffzero", obj.ABIInternal)
|
| 354 |
+
} else {
|
| 355 |
+
sym = ctxt.LookupABI("runtime.duffcopy", obj.ABIInternal)
|
| 356 |
+
}
|
| 357 |
+
offset := p.To.Offset
|
| 358 |
+
p.As = mov
|
| 359 |
+
p.From.Type = obj.TYPE_MEM
|
| 360 |
+
p.From.Name = obj.NAME_GOTREF
|
| 361 |
+
p.From.Sym = sym
|
| 362 |
+
p.To.Type = obj.TYPE_REG
|
| 363 |
+
p.To.Reg = reg
|
| 364 |
+
p.To.Offset = 0
|
| 365 |
+
p.To.Sym = nil
|
| 366 |
+
p1 := obj.Appendp(p, newprog)
|
| 367 |
+
p1.As = lea
|
| 368 |
+
p1.From.Type = obj.TYPE_MEM
|
| 369 |
+
p1.From.Offset = offset
|
| 370 |
+
p1.From.Reg = reg
|
| 371 |
+
p1.To.Type = obj.TYPE_REG
|
| 372 |
+
p1.To.Reg = reg
|
| 373 |
+
p2 := obj.Appendp(p1, newprog)
|
| 374 |
+
p2.As = obj.ACALL
|
| 375 |
+
p2.To.Type = obj.TYPE_REG
|
| 376 |
+
p2.To.Reg = reg
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
// We only care about global data: NAME_EXTERN means a global
|
| 380 |
+
// symbol in the Go sense, and p.Sym.Local is true for a few
|
| 381 |
+
// internally defined symbols.
|
| 382 |
+
if p.As == lea && p.From.Type == obj.TYPE_MEM && p.From.Name == obj.NAME_EXTERN && !p.From.Sym.Local() {
|
| 383 |
+
// $LEA sym, Rx becomes $MOV $sym, Rx which will be rewritten below
|
| 384 |
+
p.As = mov
|
| 385 |
+
p.From.Type = obj.TYPE_ADDR
|
| 386 |
+
}
|
| 387 |
+
if p.From.Type == obj.TYPE_ADDR && p.From.Name == obj.NAME_EXTERN && !p.From.Sym.Local() {
|
| 388 |
+
// $MOV $sym, Rx becomes $MOV sym@GOT, Rx
|
| 389 |
+
// $MOV $sym+<off>, Rx becomes $MOV sym@GOT, Rx; $LEA <off>(Rx), Rx
|
| 390 |
+
// On 386 only, more complicated things like PUSHL $sym become $MOV sym@GOT, CX; PUSHL CX
|
| 391 |
+
cmplxdest := false
|
| 392 |
+
pAs := p.As
|
| 393 |
+
var dest obj.Addr
|
| 394 |
+
if p.To.Type != obj.TYPE_REG || pAs != mov {
|
| 395 |
+
if ctxt.Arch.Family == sys.AMD64 {
|
| 396 |
+
ctxt.Diag("do not know how to handle LEA-type insn to non-register in %v with -dynlink", p)
|
| 397 |
+
}
|
| 398 |
+
cmplxdest = true
|
| 399 |
+
dest = p.To
|
| 400 |
+
p.As = mov
|
| 401 |
+
p.To.Type = obj.TYPE_REG
|
| 402 |
+
p.To.Reg = reg
|
| 403 |
+
p.To.Sym = nil
|
| 404 |
+
p.To.Name = obj.NAME_NONE
|
| 405 |
+
}
|
| 406 |
+
p.From.Type = obj.TYPE_MEM
|
| 407 |
+
p.From.Name = obj.NAME_GOTREF
|
| 408 |
+
q := p
|
| 409 |
+
if p.From.Offset != 0 {
|
| 410 |
+
q = obj.Appendp(p, newprog)
|
| 411 |
+
q.As = lea
|
| 412 |
+
q.From.Type = obj.TYPE_MEM
|
| 413 |
+
q.From.Reg = p.To.Reg
|
| 414 |
+
q.From.Offset = p.From.Offset
|
| 415 |
+
q.To = p.To
|
| 416 |
+
p.From.Offset = 0
|
| 417 |
+
}
|
| 418 |
+
if cmplxdest {
|
| 419 |
+
q = obj.Appendp(q, newprog)
|
| 420 |
+
q.As = pAs
|
| 421 |
+
q.To = dest
|
| 422 |
+
q.From.Type = obj.TYPE_REG
|
| 423 |
+
q.From.Reg = reg
|
| 424 |
+
}
|
| 425 |
+
}
|
| 426 |
+
if p.GetFrom3() != nil && p.GetFrom3().Name == obj.NAME_EXTERN {
|
| 427 |
+
ctxt.Diag("don't know how to handle %v with -dynlink", p)
|
| 428 |
+
}
|
| 429 |
+
var source *obj.Addr
|
| 430 |
+
// MOVx sym, Ry becomes $MOV sym@GOT, R15; MOVx (R15), Ry
|
| 431 |
+
// MOVx Ry, sym becomes $MOV sym@GOT, R15; MOVx Ry, (R15)
|
| 432 |
+
// An addition may be inserted between the two MOVs if there is an offset.
|
| 433 |
+
if p.From.Name == obj.NAME_EXTERN && !p.From.Sym.Local() {
|
| 434 |
+
if p.To.Name == obj.NAME_EXTERN && !p.To.Sym.Local() {
|
| 435 |
+
ctxt.Diag("cannot handle NAME_EXTERN on both sides in %v with -dynlink", p)
|
| 436 |
+
}
|
| 437 |
+
source = &p.From
|
| 438 |
+
} else if p.To.Name == obj.NAME_EXTERN && !p.To.Sym.Local() {
|
| 439 |
+
source = &p.To
|
| 440 |
+
} else {
|
| 441 |
+
return
|
| 442 |
+
}
|
| 443 |
+
if p.As == obj.ACALL {
|
| 444 |
+
// When dynlinking on 386, almost any call might end up being a call
|
| 445 |
+
// to a PLT, so make sure the GOT pointer is loaded into BX.
|
| 446 |
+
// RegTo2 is set on the replacement call insn to stop it being
|
| 447 |
+
// processed when it is in turn passed to progedit.
|
| 448 |
+
//
|
| 449 |
+
// We disable open-coded defers in buildssa() on 386 ONLY with shared
|
| 450 |
+
// libraries because of this extra code added before deferreturn calls.
|
| 451 |
+
if ctxt.Arch.Family == sys.AMD64 || (p.To.Sym != nil && p.To.Sym.Local()) || p.RegTo2 != 0 {
|
| 452 |
+
return
|
| 453 |
+
}
|
| 454 |
+
p1 := obj.Appendp(p, newprog)
|
| 455 |
+
p2 := obj.Appendp(p1, newprog)
|
| 456 |
+
|
| 457 |
+
p1.As = ALEAL
|
| 458 |
+
p1.From.Type = obj.TYPE_MEM
|
| 459 |
+
p1.From.Name = obj.NAME_STATIC
|
| 460 |
+
p1.From.Sym = ctxt.Lookup("_GLOBAL_OFFSET_TABLE_")
|
| 461 |
+
p1.To.Type = obj.TYPE_REG
|
| 462 |
+
p1.To.Reg = REG_BX
|
| 463 |
+
|
| 464 |
+
p2.As = p.As
|
| 465 |
+
p2.Scond = p.Scond
|
| 466 |
+
p2.From = p.From
|
| 467 |
+
if p.RestArgs != nil {
|
| 468 |
+
p2.RestArgs = append(p2.RestArgs, p.RestArgs...)
|
| 469 |
+
}
|
| 470 |
+
p2.Reg = p.Reg
|
| 471 |
+
p2.To = p.To
|
| 472 |
+
// p.To.Type was set to TYPE_BRANCH above, but that makes checkaddr
|
| 473 |
+
// in ../pass.go complain, so set it back to TYPE_MEM here, until p2
|
| 474 |
+
// itself gets passed to progedit.
|
| 475 |
+
p2.To.Type = obj.TYPE_MEM
|
| 476 |
+
p2.RegTo2 = 1
|
| 477 |
+
|
| 478 |
+
obj.Nopout(p)
|
| 479 |
+
return
|
| 480 |
+
|
| 481 |
+
}
|
| 482 |
+
if p.As == obj.ATEXT || p.As == obj.AFUNCDATA || p.As == obj.ARET || p.As == obj.AJMP {
|
| 483 |
+
return
|
| 484 |
+
}
|
| 485 |
+
if source.Type != obj.TYPE_MEM {
|
| 486 |
+
ctxt.Diag("don't know how to handle %v with -dynlink", p)
|
| 487 |
+
}
|
| 488 |
+
p1 := obj.Appendp(p, newprog)
|
| 489 |
+
p2 := obj.Appendp(p1, newprog)
|
| 490 |
+
|
| 491 |
+
p1.As = mov
|
| 492 |
+
p1.From.Type = obj.TYPE_MEM
|
| 493 |
+
p1.From.Sym = source.Sym
|
| 494 |
+
p1.From.Name = obj.NAME_GOTREF
|
| 495 |
+
p1.To.Type = obj.TYPE_REG
|
| 496 |
+
p1.To.Reg = reg
|
| 497 |
+
|
| 498 |
+
p2.As = p.As
|
| 499 |
+
p2.From = p.From
|
| 500 |
+
p2.To = p.To
|
| 501 |
+
if from3 := p.GetFrom3(); from3 != nil {
|
| 502 |
+
p2.AddRestSource(*from3)
|
| 503 |
+
}
|
| 504 |
+
if p.From.Name == obj.NAME_EXTERN {
|
| 505 |
+
p2.From.Reg = reg
|
| 506 |
+
p2.From.Name = obj.NAME_NONE
|
| 507 |
+
p2.From.Sym = nil
|
| 508 |
+
} else if p.To.Name == obj.NAME_EXTERN {
|
| 509 |
+
p2.To.Reg = reg
|
| 510 |
+
p2.To.Name = obj.NAME_NONE
|
| 511 |
+
p2.To.Sym = nil
|
| 512 |
+
} else {
|
| 513 |
+
return
|
| 514 |
+
}
|
| 515 |
+
obj.Nopout(p)
|
| 516 |
+
}
|
| 517 |
+
|
| 518 |
+
func rewriteToPcrel(ctxt *obj.Link, p *obj.Prog, newprog obj.ProgAlloc) {
|
| 519 |
+
// RegTo2 is set on the instructions we insert here so they don't get
|
| 520 |
+
// processed twice.
|
| 521 |
+
if p.RegTo2 != 0 {
|
| 522 |
+
return
|
| 523 |
+
}
|
| 524 |
+
if p.As == obj.ATEXT || p.As == obj.AFUNCDATA || p.As == obj.ACALL || p.As == obj.ARET || p.As == obj.AJMP {
|
| 525 |
+
return
|
| 526 |
+
}
|
| 527 |
+
// Any Prog (aside from the above special cases) with an Addr with Name ==
|
| 528 |
+
// NAME_EXTERN, NAME_STATIC or NAME_GOTREF has a CALL __x86.get_pc_thunk.XX
|
| 529 |
+
// inserted before it.
|
| 530 |
+
isName := func(a *obj.Addr) bool {
|
| 531 |
+
if a.Sym == nil || (a.Type != obj.TYPE_MEM && a.Type != obj.TYPE_ADDR) || a.Reg != 0 {
|
| 532 |
+
return false
|
| 533 |
+
}
|
| 534 |
+
if a.Sym.Type == objabi.STLSBSS {
|
| 535 |
+
return false
|
| 536 |
+
}
|
| 537 |
+
return a.Name == obj.NAME_EXTERN || a.Name == obj.NAME_STATIC || a.Name == obj.NAME_GOTREF
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
if isName(&p.From) && p.From.Type == obj.TYPE_ADDR {
|
| 541 |
+
// Handle things like "MOVL $sym, (SP)" or "PUSHL $sym" by rewriting
|
| 542 |
+
// to "MOVL $sym, CX; MOVL CX, (SP)" or "MOVL $sym, CX; PUSHL CX"
|
| 543 |
+
// respectively.
|
| 544 |
+
if p.To.Type != obj.TYPE_REG {
|
| 545 |
+
q := obj.Appendp(p, newprog)
|
| 546 |
+
q.As = p.As
|
| 547 |
+
q.From.Type = obj.TYPE_REG
|
| 548 |
+
q.From.Reg = REG_CX
|
| 549 |
+
q.To = p.To
|
| 550 |
+
p.As = AMOVL
|
| 551 |
+
p.To.Type = obj.TYPE_REG
|
| 552 |
+
p.To.Reg = REG_CX
|
| 553 |
+
p.To.Sym = nil
|
| 554 |
+
p.To.Name = obj.NAME_NONE
|
| 555 |
+
}
|
| 556 |
+
}
|
| 557 |
+
|
| 558 |
+
if !isName(&p.From) && !isName(&p.To) && (p.GetFrom3() == nil || !isName(p.GetFrom3())) {
|
| 559 |
+
return
|
| 560 |
+
}
|
| 561 |
+
var dst int16 = REG_CX
|
| 562 |
+
if (p.As == ALEAL || p.As == AMOVL) && p.To.Reg != p.From.Reg && p.To.Reg != p.From.Index {
|
| 563 |
+
dst = p.To.Reg
|
| 564 |
+
// Why? See the comment near the top of rewriteToUseGot above.
|
| 565 |
+
// AMOVLs might be introduced by the GOT rewrites.
|
| 566 |
+
}
|
| 567 |
+
q := obj.Appendp(p, newprog)
|
| 568 |
+
q.RegTo2 = 1
|
| 569 |
+
r := obj.Appendp(q, newprog)
|
| 570 |
+
r.RegTo2 = 1
|
| 571 |
+
q.As = obj.ACALL
|
| 572 |
+
thunkname := "__x86.get_pc_thunk." + strings.ToLower(rconv(int(dst)))
|
| 573 |
+
q.To.Sym = ctxt.LookupInit(thunkname, func(s *obj.LSym) { s.Set(obj.AttrLocal, true) })
|
| 574 |
+
q.To.Type = obj.TYPE_MEM
|
| 575 |
+
q.To.Name = obj.NAME_EXTERN
|
| 576 |
+
r.As = p.As
|
| 577 |
+
r.Scond = p.Scond
|
| 578 |
+
r.From = p.From
|
| 579 |
+
r.RestArgs = p.RestArgs
|
| 580 |
+
r.Reg = p.Reg
|
| 581 |
+
r.To = p.To
|
| 582 |
+
if isName(&p.From) {
|
| 583 |
+
r.From.Reg = dst
|
| 584 |
+
}
|
| 585 |
+
if isName(&p.To) {
|
| 586 |
+
r.To.Reg = dst
|
| 587 |
+
}
|
| 588 |
+
if p.GetFrom3() != nil && isName(p.GetFrom3()) {
|
| 589 |
+
r.GetFrom3().Reg = dst
|
| 590 |
+
}
|
| 591 |
+
obj.Nopout(p)
|
| 592 |
+
}
|
| 593 |
+
|
| 594 |
+
// Prog.mark
|
| 595 |
+
const (
|
| 596 |
+
markBit = 1 << 0 // used in errorCheck to avoid duplicate work
|
| 597 |
+
)
|
| 598 |
+
|
| 599 |
+
func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
|
| 600 |
+
if cursym.Func().Text == nil || cursym.Func().Text.Link == nil {
|
| 601 |
+
return
|
| 602 |
+
}
|
| 603 |
+
|
| 604 |
+
p := cursym.Func().Text
|
| 605 |
+
autoffset := int32(p.To.Offset)
|
| 606 |
+
if autoffset < 0 {
|
| 607 |
+
autoffset = 0
|
| 608 |
+
}
|
| 609 |
+
|
| 610 |
+
hasCall := false
|
| 611 |
+
for q := p; q != nil; q = q.Link {
|
| 612 |
+
if q.As == obj.ACALL || q.As == obj.ADUFFCOPY || q.As == obj.ADUFFZERO {
|
| 613 |
+
hasCall = true
|
| 614 |
+
break
|
| 615 |
+
}
|
| 616 |
+
}
|
| 617 |
+
|
| 618 |
+
var bpsize int
|
| 619 |
+
if ctxt.Arch.Family == sys.AMD64 &&
|
| 620 |
+
!p.From.Sym.NoFrame() && // (1) below
|
| 621 |
+
!(autoffset == 0 && !hasCall) { // (2) below
|
| 622 |
+
// Make room to save a base pointer.
|
| 623 |
+
// There are 2 cases we must avoid:
|
| 624 |
+
// 1) If noframe is set (which we do for functions which tail call).
|
| 625 |
+
// For performance, we also want to avoid:
|
| 626 |
+
// 2) Frameless leaf functions
|
| 627 |
+
bpsize = ctxt.Arch.PtrSize
|
| 628 |
+
autoffset += int32(bpsize)
|
| 629 |
+
p.To.Offset += int64(bpsize)
|
| 630 |
+
} else {
|
| 631 |
+
bpsize = 0
|
| 632 |
+
p.From.Sym.Set(obj.AttrNoFrame, true)
|
| 633 |
+
}
|
| 634 |
+
|
| 635 |
+
textarg := int64(p.To.Val.(int32))
|
| 636 |
+
cursym.Func().Args = int32(textarg)
|
| 637 |
+
cursym.Func().Locals = int32(p.To.Offset)
|
| 638 |
+
|
| 639 |
+
// TODO(rsc): Remove.
|
| 640 |
+
if ctxt.Arch.Family == sys.I386 && cursym.Func().Locals < 0 {
|
| 641 |
+
cursym.Func().Locals = 0
|
| 642 |
+
}
|
| 643 |
+
|
| 644 |
+
// TODO(rsc): Remove 'ctxt.Arch.Family == sys.AMD64 &&'.
|
| 645 |
+
if ctxt.Arch.Family == sys.AMD64 && autoffset < abi.StackSmall && !p.From.Sym.NoSplit() {
|
| 646 |
+
leaf := true
|
| 647 |
+
LeafSearch:
|
| 648 |
+
for q := p; q != nil; q = q.Link {
|
| 649 |
+
switch q.As {
|
| 650 |
+
case obj.ACALL:
|
| 651 |
+
// Treat common runtime calls that take no arguments
|
| 652 |
+
// the same as duffcopy and duffzero.
|
| 653 |
+
if !isZeroArgRuntimeCall(q.To.Sym) {
|
| 654 |
+
leaf = false
|
| 655 |
+
break LeafSearch
|
| 656 |
+
}
|
| 657 |
+
fallthrough
|
| 658 |
+
case obj.ADUFFCOPY, obj.ADUFFZERO:
|
| 659 |
+
if autoffset >= abi.StackSmall-8 {
|
| 660 |
+
leaf = false
|
| 661 |
+
break LeafSearch
|
| 662 |
+
}
|
| 663 |
+
}
|
| 664 |
+
}
|
| 665 |
+
|
| 666 |
+
if leaf {
|
| 667 |
+
p.From.Sym.Set(obj.AttrNoSplit, true)
|
| 668 |
+
}
|
| 669 |
+
}
|
| 670 |
+
|
| 671 |
+
var regEntryTmp0, regEntryTmp1 int16
|
| 672 |
+
if ctxt.Arch.Family == sys.AMD64 {
|
| 673 |
+
regEntryTmp0, regEntryTmp1 = REGENTRYTMP0, REGENTRYTMP1
|
| 674 |
+
} else {
|
| 675 |
+
regEntryTmp0, regEntryTmp1 = REG_BX, REG_DI
|
| 676 |
+
}
|
| 677 |
+
|
| 678 |
+
var regg int16
|
| 679 |
+
if !p.From.Sym.NoSplit() {
|
| 680 |
+
// Emit split check and load G register
|
| 681 |
+
p, regg = stacksplit(ctxt, cursym, p, newprog, autoffset, int32(textarg))
|
| 682 |
+
} else if p.From.Sym.Wrapper() {
|
| 683 |
+
// Load G register for the wrapper code
|
| 684 |
+
p, regg = loadG(ctxt, cursym, p, newprog)
|
| 685 |
+
}
|
| 686 |
+
|
| 687 |
+
if bpsize > 0 {
|
| 688 |
+
// Save caller's BP
|
| 689 |
+
p = obj.Appendp(p, newprog)
|
| 690 |
+
|
| 691 |
+
p.As = APUSHQ
|
| 692 |
+
p.From.Type = obj.TYPE_REG
|
| 693 |
+
p.From.Reg = REG_BP
|
| 694 |
+
|
| 695 |
+
// Move current frame to BP
|
| 696 |
+
p = obj.Appendp(p, newprog)
|
| 697 |
+
|
| 698 |
+
p.As = AMOVQ
|
| 699 |
+
p.From.Type = obj.TYPE_REG
|
| 700 |
+
p.From.Reg = REG_SP
|
| 701 |
+
p.To.Type = obj.TYPE_REG
|
| 702 |
+
p.To.Reg = REG_BP
|
| 703 |
+
}
|
| 704 |
+
|
| 705 |
+
if autoffset%int32(ctxt.Arch.RegSize) != 0 {
|
| 706 |
+
ctxt.Diag("unaligned stack size %d", autoffset)
|
| 707 |
+
}
|
| 708 |
+
|
| 709 |
+
// localoffset is autoffset discounting the frame pointer,
|
| 710 |
+
// which has already been allocated in the stack.
|
| 711 |
+
localoffset := autoffset - int32(bpsize)
|
| 712 |
+
if localoffset != 0 {
|
| 713 |
+
p = obj.Appendp(p, newprog)
|
| 714 |
+
p.As = AADJSP
|
| 715 |
+
p.From.Type = obj.TYPE_CONST
|
| 716 |
+
p.From.Offset = int64(localoffset)
|
| 717 |
+
p.Spadj = localoffset
|
| 718 |
+
}
|
| 719 |
+
|
| 720 |
+
// Delve debugger would like the next instruction to be noted as the end of the function prologue.
|
| 721 |
+
// TODO: are there other cases (e.g., wrapper functions) that need marking?
|
| 722 |
+
if autoffset != 0 {
|
| 723 |
+
p.Pos = p.Pos.WithXlogue(src.PosPrologueEnd)
|
| 724 |
+
}
|
| 725 |
+
|
| 726 |
+
if cursym.Func().Text.From.Sym.Wrapper() {
|
| 727 |
+
// if g._panic != nil && g._panic.argp == FP {
|
| 728 |
+
// g._panic.argp = bottom-of-frame
|
| 729 |
+
// }
|
| 730 |
+
//
|
| 731 |
+
// MOVQ g_panic(g), regEntryTmp0
|
| 732 |
+
// TESTQ regEntryTmp0, regEntryTmp0
|
| 733 |
+
// JNE checkargp
|
| 734 |
+
// end:
|
| 735 |
+
// NOP
|
| 736 |
+
// ... rest of function ...
|
| 737 |
+
// checkargp:
|
| 738 |
+
// LEAQ (autoffset+8)(SP), regEntryTmp1
|
| 739 |
+
// CMPQ panic_argp(regEntryTmp0), regEntryTmp1
|
| 740 |
+
// JNE end
|
| 741 |
+
// MOVQ SP, panic_argp(regEntryTmp0)
|
| 742 |
+
// JMP end
|
| 743 |
+
//
|
| 744 |
+
// The NOP is needed to give the jumps somewhere to land.
|
| 745 |
+
// It is a liblink NOP, not an x86 NOP: it encodes to 0 instruction bytes.
|
| 746 |
+
//
|
| 747 |
+
// The layout is chosen to help static branch prediction:
|
| 748 |
+
// Both conditional jumps are unlikely, so they are arranged to be forward jumps.
|
| 749 |
+
|
| 750 |
+
// MOVQ g_panic(g), regEntryTmp0
|
| 751 |
+
p = obj.Appendp(p, newprog)
|
| 752 |
+
p.As = AMOVQ
|
| 753 |
+
p.From.Type = obj.TYPE_MEM
|
| 754 |
+
p.From.Reg = regg
|
| 755 |
+
p.From.Offset = 4 * int64(ctxt.Arch.PtrSize) // g_panic
|
| 756 |
+
p.To.Type = obj.TYPE_REG
|
| 757 |
+
p.To.Reg = regEntryTmp0
|
| 758 |
+
if ctxt.Arch.Family == sys.I386 {
|
| 759 |
+
p.As = AMOVL
|
| 760 |
+
}
|
| 761 |
+
|
| 762 |
+
// TESTQ regEntryTmp0, regEntryTmp0
|
| 763 |
+
p = obj.Appendp(p, newprog)
|
| 764 |
+
p.As = ATESTQ
|
| 765 |
+
p.From.Type = obj.TYPE_REG
|
| 766 |
+
p.From.Reg = regEntryTmp0
|
| 767 |
+
p.To.Type = obj.TYPE_REG
|
| 768 |
+
p.To.Reg = regEntryTmp0
|
| 769 |
+
if ctxt.Arch.Family == sys.I386 {
|
| 770 |
+
p.As = ATESTL
|
| 771 |
+
}
|
| 772 |
+
|
| 773 |
+
// JNE checkargp (checkargp to be resolved later)
|
| 774 |
+
jne := obj.Appendp(p, newprog)
|
| 775 |
+
jne.As = AJNE
|
| 776 |
+
jne.To.Type = obj.TYPE_BRANCH
|
| 777 |
+
|
| 778 |
+
// end:
|
| 779 |
+
// NOP
|
| 780 |
+
end := obj.Appendp(jne, newprog)
|
| 781 |
+
end.As = obj.ANOP
|
| 782 |
+
|
| 783 |
+
// Fast forward to end of function.
|
| 784 |
+
var last *obj.Prog
|
| 785 |
+
for last = end; last.Link != nil; last = last.Link {
|
| 786 |
+
}
|
| 787 |
+
|
| 788 |
+
// LEAQ (autoffset+8)(SP), regEntryTmp1
|
| 789 |
+
p = obj.Appendp(last, newprog)
|
| 790 |
+
p.As = ALEAQ
|
| 791 |
+
p.From.Type = obj.TYPE_MEM
|
| 792 |
+
p.From.Reg = REG_SP
|
| 793 |
+
p.From.Offset = int64(autoffset) + int64(ctxt.Arch.RegSize)
|
| 794 |
+
p.To.Type = obj.TYPE_REG
|
| 795 |
+
p.To.Reg = regEntryTmp1
|
| 796 |
+
if ctxt.Arch.Family == sys.I386 {
|
| 797 |
+
p.As = ALEAL
|
| 798 |
+
}
|
| 799 |
+
|
| 800 |
+
// Set jne branch target.
|
| 801 |
+
jne.To.SetTarget(p)
|
| 802 |
+
|
| 803 |
+
// CMPQ panic_argp(regEntryTmp0), regEntryTmp1
|
| 804 |
+
p = obj.Appendp(p, newprog)
|
| 805 |
+
p.As = ACMPQ
|
| 806 |
+
p.From.Type = obj.TYPE_MEM
|
| 807 |
+
p.From.Reg = regEntryTmp0
|
| 808 |
+
p.From.Offset = 0 // Panic.argp
|
| 809 |
+
p.To.Type = obj.TYPE_REG
|
| 810 |
+
p.To.Reg = regEntryTmp1
|
| 811 |
+
if ctxt.Arch.Family == sys.I386 {
|
| 812 |
+
p.As = ACMPL
|
| 813 |
+
}
|
| 814 |
+
|
| 815 |
+
// JNE end
|
| 816 |
+
p = obj.Appendp(p, newprog)
|
| 817 |
+
p.As = AJNE
|
| 818 |
+
p.To.Type = obj.TYPE_BRANCH
|
| 819 |
+
p.To.SetTarget(end)
|
| 820 |
+
|
| 821 |
+
// MOVQ SP, panic_argp(regEntryTmp0)
|
| 822 |
+
p = obj.Appendp(p, newprog)
|
| 823 |
+
p.As = AMOVQ
|
| 824 |
+
p.From.Type = obj.TYPE_REG
|
| 825 |
+
p.From.Reg = REG_SP
|
| 826 |
+
p.To.Type = obj.TYPE_MEM
|
| 827 |
+
p.To.Reg = regEntryTmp0
|
| 828 |
+
p.To.Offset = 0 // Panic.argp
|
| 829 |
+
if ctxt.Arch.Family == sys.I386 {
|
| 830 |
+
p.As = AMOVL
|
| 831 |
+
}
|
| 832 |
+
|
| 833 |
+
// JMP end
|
| 834 |
+
p = obj.Appendp(p, newprog)
|
| 835 |
+
p.As = obj.AJMP
|
| 836 |
+
p.To.Type = obj.TYPE_BRANCH
|
| 837 |
+
p.To.SetTarget(end)
|
| 838 |
+
|
| 839 |
+
// Reset p for following code.
|
| 840 |
+
p = end
|
| 841 |
+
}
|
| 842 |
+
|
| 843 |
+
var deltasp int32
|
| 844 |
+
for p = cursym.Func().Text; p != nil; p = p.Link {
|
| 845 |
+
pcsize := ctxt.Arch.RegSize
|
| 846 |
+
switch p.From.Name {
|
| 847 |
+
case obj.NAME_AUTO:
|
| 848 |
+
p.From.Offset += int64(deltasp) - int64(bpsize)
|
| 849 |
+
case obj.NAME_PARAM:
|
| 850 |
+
p.From.Offset += int64(deltasp) + int64(pcsize)
|
| 851 |
+
}
|
| 852 |
+
if p.GetFrom3() != nil {
|
| 853 |
+
switch p.GetFrom3().Name {
|
| 854 |
+
case obj.NAME_AUTO:
|
| 855 |
+
p.GetFrom3().Offset += int64(deltasp) - int64(bpsize)
|
| 856 |
+
case obj.NAME_PARAM:
|
| 857 |
+
p.GetFrom3().Offset += int64(deltasp) + int64(pcsize)
|
| 858 |
+
}
|
| 859 |
+
}
|
| 860 |
+
switch p.To.Name {
|
| 861 |
+
case obj.NAME_AUTO:
|
| 862 |
+
p.To.Offset += int64(deltasp) - int64(bpsize)
|
| 863 |
+
case obj.NAME_PARAM:
|
| 864 |
+
p.To.Offset += int64(deltasp) + int64(pcsize)
|
| 865 |
+
}
|
| 866 |
+
|
| 867 |
+
switch p.As {
|
| 868 |
+
default:
|
| 869 |
+
if p.To.Type == obj.TYPE_REG && p.To.Reg == REG_SP && p.As != ACMPL && p.As != ACMPQ {
|
| 870 |
+
f := cursym.Func()
|
| 871 |
+
if f.FuncFlag&abi.FuncFlagSPWrite == 0 {
|
| 872 |
+
f.FuncFlag |= abi.FuncFlagSPWrite
|
| 873 |
+
if ctxt.Debugvlog || !ctxt.IsAsm {
|
| 874 |
+
ctxt.Logf("auto-SPWRITE: %s %v\n", cursym.Name, p)
|
| 875 |
+
if !ctxt.IsAsm {
|
| 876 |
+
ctxt.Diag("invalid auto-SPWRITE in non-assembly")
|
| 877 |
+
ctxt.DiagFlush()
|
| 878 |
+
log.Fatalf("bad SPWRITE")
|
| 879 |
+
}
|
| 880 |
+
}
|
| 881 |
+
}
|
| 882 |
+
}
|
| 883 |
+
continue
|
| 884 |
+
|
| 885 |
+
case APUSHL, APUSHFL:
|
| 886 |
+
deltasp += 4
|
| 887 |
+
p.Spadj = 4
|
| 888 |
+
continue
|
| 889 |
+
|
| 890 |
+
case APUSHQ, APUSHFQ:
|
| 891 |
+
deltasp += 8
|
| 892 |
+
p.Spadj = 8
|
| 893 |
+
continue
|
| 894 |
+
|
| 895 |
+
case APUSHW, APUSHFW:
|
| 896 |
+
deltasp += 2
|
| 897 |
+
p.Spadj = 2
|
| 898 |
+
continue
|
| 899 |
+
|
| 900 |
+
case APOPL, APOPFL:
|
| 901 |
+
deltasp -= 4
|
| 902 |
+
p.Spadj = -4
|
| 903 |
+
continue
|
| 904 |
+
|
| 905 |
+
case APOPQ, APOPFQ:
|
| 906 |
+
deltasp -= 8
|
| 907 |
+
p.Spadj = -8
|
| 908 |
+
continue
|
| 909 |
+
|
| 910 |
+
case APOPW, APOPFW:
|
| 911 |
+
deltasp -= 2
|
| 912 |
+
p.Spadj = -2
|
| 913 |
+
continue
|
| 914 |
+
|
| 915 |
+
case AADJSP:
|
| 916 |
+
p.Spadj = int32(p.From.Offset)
|
| 917 |
+
deltasp += int32(p.From.Offset)
|
| 918 |
+
continue
|
| 919 |
+
|
| 920 |
+
case obj.ARET:
|
| 921 |
+
// do nothing
|
| 922 |
+
}
|
| 923 |
+
|
| 924 |
+
if autoffset != deltasp {
|
| 925 |
+
ctxt.Diag("%s: unbalanced PUSH/POP", cursym)
|
| 926 |
+
}
|
| 927 |
+
|
| 928 |
+
if autoffset != 0 {
|
| 929 |
+
to := p.To // Keep To attached to RET for retjmp below
|
| 930 |
+
p.To = obj.Addr{}
|
| 931 |
+
if localoffset != 0 {
|
| 932 |
+
p.As = AADJSP
|
| 933 |
+
p.From.Type = obj.TYPE_CONST
|
| 934 |
+
p.From.Offset = int64(-localoffset)
|
| 935 |
+
p.Spadj = -localoffset
|
| 936 |
+
p = obj.Appendp(p, newprog)
|
| 937 |
+
}
|
| 938 |
+
|
| 939 |
+
if bpsize > 0 {
|
| 940 |
+
// Restore caller's BP
|
| 941 |
+
p.As = APOPQ
|
| 942 |
+
p.To.Type = obj.TYPE_REG
|
| 943 |
+
p.To.Reg = REG_BP
|
| 944 |
+
p.Spadj = -int32(bpsize)
|
| 945 |
+
p = obj.Appendp(p, newprog)
|
| 946 |
+
}
|
| 947 |
+
|
| 948 |
+
p.As = obj.ARET
|
| 949 |
+
p.To = to
|
| 950 |
+
|
| 951 |
+
// If there are instructions following
|
| 952 |
+
// this ARET, they come from a branch
|
| 953 |
+
// with the same stackframe, so undo
|
| 954 |
+
// the cleanup.
|
| 955 |
+
p.Spadj = +autoffset
|
| 956 |
+
}
|
| 957 |
+
|
| 958 |
+
if p.To.Sym != nil { // retjmp
|
| 959 |
+
p.As = obj.AJMP
|
| 960 |
+
}
|
| 961 |
+
}
|
| 962 |
+
}
|
| 963 |
+
|
| 964 |
+
func isZeroArgRuntimeCall(s *obj.LSym) bool {
|
| 965 |
+
if s == nil {
|
| 966 |
+
return false
|
| 967 |
+
}
|
| 968 |
+
switch s.Name {
|
| 969 |
+
case "runtime.panicdivide", "runtime.panicwrap", "runtime.panicshift":
|
| 970 |
+
return true
|
| 971 |
+
}
|
| 972 |
+
if strings.HasPrefix(s.Name, "runtime.panicIndex") || strings.HasPrefix(s.Name, "runtime.panicSlice") {
|
| 973 |
+
// These functions do take arguments (in registers),
|
| 974 |
+
// but use no stack before they do a stack check. We
|
| 975 |
+
// should include them. See issue 31219.
|
| 976 |
+
return true
|
| 977 |
+
}
|
| 978 |
+
return false
|
| 979 |
+
}
|
| 980 |
+
|
| 981 |
+
func indir_cx(ctxt *obj.Link, a *obj.Addr) {
|
| 982 |
+
a.Type = obj.TYPE_MEM
|
| 983 |
+
a.Reg = REG_CX
|
| 984 |
+
}
|
| 985 |
+
|
| 986 |
+
// loadG ensures the G is loaded into a register (either CX or REGG),
|
| 987 |
+
// appending instructions to p if necessary. It returns the new last
|
| 988 |
+
// instruction and the G register.
|
| 989 |
+
func loadG(ctxt *obj.Link, cursym *obj.LSym, p *obj.Prog, newprog obj.ProgAlloc) (*obj.Prog, int16) {
|
| 990 |
+
if ctxt.Arch.Family == sys.AMD64 && cursym.ABI() == obj.ABIInternal {
|
| 991 |
+
// Use the G register directly in ABIInternal
|
| 992 |
+
return p, REGG
|
| 993 |
+
}
|
| 994 |
+
|
| 995 |
+
var regg int16 = REG_CX
|
| 996 |
+
if ctxt.Arch.Family == sys.AMD64 {
|
| 997 |
+
regg = REGG // == REG_R14
|
| 998 |
+
}
|
| 999 |
+
|
| 1000 |
+
p = obj.Appendp(p, newprog)
|
| 1001 |
+
p.As = AMOVQ
|
| 1002 |
+
if ctxt.Arch.PtrSize == 4 {
|
| 1003 |
+
p.As = AMOVL
|
| 1004 |
+
}
|
| 1005 |
+
p.From.Type = obj.TYPE_MEM
|
| 1006 |
+
p.From.Reg = REG_TLS
|
| 1007 |
+
p.From.Offset = 0
|
| 1008 |
+
p.To.Type = obj.TYPE_REG
|
| 1009 |
+
p.To.Reg = regg
|
| 1010 |
+
|
| 1011 |
+
// Rewrite TLS instruction if necessary.
|
| 1012 |
+
next := p.Link
|
| 1013 |
+
progedit(ctxt, p, newprog)
|
| 1014 |
+
for p.Link != next {
|
| 1015 |
+
p = p.Link
|
| 1016 |
+
progedit(ctxt, p, newprog)
|
| 1017 |
+
}
|
| 1018 |
+
|
| 1019 |
+
if p.From.Index == REG_TLS {
|
| 1020 |
+
p.From.Scale = 2
|
| 1021 |
+
}
|
| 1022 |
+
|
| 1023 |
+
return p, regg
|
| 1024 |
+
}
|
| 1025 |
+
|
| 1026 |
+
// Append code to p to check for stack split.
|
| 1027 |
+
// Appends to (does not overwrite) p.
|
| 1028 |
+
// Assumes g is in rg.
|
| 1029 |
+
// Returns last new instruction and G register.
|
| 1030 |
+
func stacksplit(ctxt *obj.Link, cursym *obj.LSym, p *obj.Prog, newprog obj.ProgAlloc, framesize int32, textarg int32) (*obj.Prog, int16) {
|
| 1031 |
+
cmp := ACMPQ
|
| 1032 |
+
lea := ALEAQ
|
| 1033 |
+
mov := AMOVQ
|
| 1034 |
+
sub := ASUBQ
|
| 1035 |
+
push, pop := APUSHQ, APOPQ
|
| 1036 |
+
|
| 1037 |
+
if ctxt.Arch.Family == sys.I386 {
|
| 1038 |
+
cmp = ACMPL
|
| 1039 |
+
lea = ALEAL
|
| 1040 |
+
mov = AMOVL
|
| 1041 |
+
sub = ASUBL
|
| 1042 |
+
push, pop = APUSHL, APOPL
|
| 1043 |
+
}
|
| 1044 |
+
|
| 1045 |
+
tmp := int16(REG_AX) // use AX for 32-bit
|
| 1046 |
+
if ctxt.Arch.Family == sys.AMD64 {
|
| 1047 |
+
// Avoid register parameters.
|
| 1048 |
+
tmp = int16(REGENTRYTMP0)
|
| 1049 |
+
}
|
| 1050 |
+
|
| 1051 |
+
if ctxt.Flag_maymorestack != "" {
|
| 1052 |
+
p = cursym.Func().SpillRegisterArgs(p, newprog)
|
| 1053 |
+
|
| 1054 |
+
if cursym.Func().Text.From.Sym.NeedCtxt() {
|
| 1055 |
+
p = obj.Appendp(p, newprog)
|
| 1056 |
+
p.As = push
|
| 1057 |
+
p.From.Type = obj.TYPE_REG
|
| 1058 |
+
p.From.Reg = REGCTXT
|
| 1059 |
+
}
|
| 1060 |
+
|
| 1061 |
+
// We call maymorestack with an ABI matching the
|
| 1062 |
+
// caller's ABI. Since this is the first thing that
|
| 1063 |
+
// happens in the function, we have to be consistent
|
| 1064 |
+
// with the caller about CPU state (notably,
|
| 1065 |
+
// fixed-meaning registers).
|
| 1066 |
+
|
| 1067 |
+
p = obj.Appendp(p, newprog)
|
| 1068 |
+
p.As = obj.ACALL
|
| 1069 |
+
p.To.Type = obj.TYPE_BRANCH
|
| 1070 |
+
p.To.Name = obj.NAME_EXTERN
|
| 1071 |
+
p.To.Sym = ctxt.LookupABI(ctxt.Flag_maymorestack, cursym.ABI())
|
| 1072 |
+
|
| 1073 |
+
if cursym.Func().Text.From.Sym.NeedCtxt() {
|
| 1074 |
+
p = obj.Appendp(p, newprog)
|
| 1075 |
+
p.As = pop
|
| 1076 |
+
p.To.Type = obj.TYPE_REG
|
| 1077 |
+
p.To.Reg = REGCTXT
|
| 1078 |
+
}
|
| 1079 |
+
|
| 1080 |
+
p = cursym.Func().UnspillRegisterArgs(p, newprog)
|
| 1081 |
+
}
|
| 1082 |
+
|
| 1083 |
+
// Jump back to here after morestack returns.
|
| 1084 |
+
startPred := p
|
| 1085 |
+
|
| 1086 |
+
// Load G register
|
| 1087 |
+
var rg int16
|
| 1088 |
+
p, rg = loadG(ctxt, cursym, p, newprog)
|
| 1089 |
+
|
| 1090 |
+
var q1 *obj.Prog
|
| 1091 |
+
if framesize <= abi.StackSmall {
|
| 1092 |
+
// small stack: SP <= stackguard
|
| 1093 |
+
// CMPQ SP, stackguard
|
| 1094 |
+
p = obj.Appendp(p, newprog)
|
| 1095 |
+
|
| 1096 |
+
p.As = cmp
|
| 1097 |
+
p.From.Type = obj.TYPE_REG
|
| 1098 |
+
p.From.Reg = REG_SP
|
| 1099 |
+
p.To.Type = obj.TYPE_MEM
|
| 1100 |
+
p.To.Reg = rg
|
| 1101 |
+
p.To.Offset = 2 * int64(ctxt.Arch.PtrSize) // G.stackguard0
|
| 1102 |
+
if cursym.CFunc() {
|
| 1103 |
+
p.To.Offset = 3 * int64(ctxt.Arch.PtrSize) // G.stackguard1
|
| 1104 |
+
}
|
| 1105 |
+
|
| 1106 |
+
// Mark the stack bound check and morestack call async nonpreemptible.
|
| 1107 |
+
// If we get preempted here, when resumed the preemption request is
|
| 1108 |
+
// cleared, but we'll still call morestack, which will double the stack
|
| 1109 |
+
// unnecessarily. See issue #35470.
|
| 1110 |
+
p = ctxt.StartUnsafePoint(p, newprog)
|
| 1111 |
+
} else if framesize <= abi.StackBig {
|
| 1112 |
+
// large stack: SP-framesize <= stackguard-StackSmall
|
| 1113 |
+
// LEAQ -xxx(SP), tmp
|
| 1114 |
+
// CMPQ tmp, stackguard
|
| 1115 |
+
p = obj.Appendp(p, newprog)
|
| 1116 |
+
|
| 1117 |
+
p.As = lea
|
| 1118 |
+
p.From.Type = obj.TYPE_MEM
|
| 1119 |
+
p.From.Reg = REG_SP
|
| 1120 |
+
p.From.Offset = -(int64(framesize) - abi.StackSmall)
|
| 1121 |
+
p.To.Type = obj.TYPE_REG
|
| 1122 |
+
p.To.Reg = tmp
|
| 1123 |
+
|
| 1124 |
+
p = obj.Appendp(p, newprog)
|
| 1125 |
+
p.As = cmp
|
| 1126 |
+
p.From.Type = obj.TYPE_REG
|
| 1127 |
+
p.From.Reg = tmp
|
| 1128 |
+
p.To.Type = obj.TYPE_MEM
|
| 1129 |
+
p.To.Reg = rg
|
| 1130 |
+
p.To.Offset = 2 * int64(ctxt.Arch.PtrSize) // G.stackguard0
|
| 1131 |
+
if cursym.CFunc() {
|
| 1132 |
+
p.To.Offset = 3 * int64(ctxt.Arch.PtrSize) // G.stackguard1
|
| 1133 |
+
}
|
| 1134 |
+
|
| 1135 |
+
p = ctxt.StartUnsafePoint(p, newprog) // see the comment above
|
| 1136 |
+
} else {
|
| 1137 |
+
// Such a large stack we need to protect against underflow.
|
| 1138 |
+
// The runtime guarantees SP > objabi.StackBig, but
|
| 1139 |
+
// framesize is large enough that SP-framesize may
|
| 1140 |
+
// underflow, causing a direct comparison with the
|
| 1141 |
+
// stack guard to incorrectly succeed. We explicitly
|
| 1142 |
+
// guard against underflow.
|
| 1143 |
+
//
|
| 1144 |
+
// MOVQ SP, tmp
|
| 1145 |
+
// SUBQ $(framesize - StackSmall), tmp
|
| 1146 |
+
// // If subtraction wrapped (carry set), morestack.
|
| 1147 |
+
// JCS label-of-call-to-morestack
|
| 1148 |
+
// CMPQ tmp, stackguard
|
| 1149 |
+
|
| 1150 |
+
p = obj.Appendp(p, newprog)
|
| 1151 |
+
|
| 1152 |
+
p.As = mov
|
| 1153 |
+
p.From.Type = obj.TYPE_REG
|
| 1154 |
+
p.From.Reg = REG_SP
|
| 1155 |
+
p.To.Type = obj.TYPE_REG
|
| 1156 |
+
p.To.Reg = tmp
|
| 1157 |
+
|
| 1158 |
+
p = ctxt.StartUnsafePoint(p, newprog) // see the comment above
|
| 1159 |
+
|
| 1160 |
+
p = obj.Appendp(p, newprog)
|
| 1161 |
+
p.As = sub
|
| 1162 |
+
p.From.Type = obj.TYPE_CONST
|
| 1163 |
+
p.From.Offset = int64(framesize) - abi.StackSmall
|
| 1164 |
+
p.To.Type = obj.TYPE_REG
|
| 1165 |
+
p.To.Reg = tmp
|
| 1166 |
+
|
| 1167 |
+
p = obj.Appendp(p, newprog)
|
| 1168 |
+
p.As = AJCS
|
| 1169 |
+
p.To.Type = obj.TYPE_BRANCH
|
| 1170 |
+
q1 = p
|
| 1171 |
+
|
| 1172 |
+
p = obj.Appendp(p, newprog)
|
| 1173 |
+
p.As = cmp
|
| 1174 |
+
p.From.Type = obj.TYPE_REG
|
| 1175 |
+
p.From.Reg = tmp
|
| 1176 |
+
p.To.Type = obj.TYPE_MEM
|
| 1177 |
+
p.To.Reg = rg
|
| 1178 |
+
p.To.Offset = 2 * int64(ctxt.Arch.PtrSize) // G.stackguard0
|
| 1179 |
+
if cursym.CFunc() {
|
| 1180 |
+
p.To.Offset = 3 * int64(ctxt.Arch.PtrSize) // G.stackguard1
|
| 1181 |
+
}
|
| 1182 |
+
}
|
| 1183 |
+
|
| 1184 |
+
// common
|
| 1185 |
+
jls := obj.Appendp(p, newprog)
|
| 1186 |
+
jls.As = AJLS
|
| 1187 |
+
jls.To.Type = obj.TYPE_BRANCH
|
| 1188 |
+
|
| 1189 |
+
end := ctxt.EndUnsafePoint(jls, newprog, -1)
|
| 1190 |
+
|
| 1191 |
+
var last *obj.Prog
|
| 1192 |
+
for last = cursym.Func().Text; last.Link != nil; last = last.Link {
|
| 1193 |
+
}
|
| 1194 |
+
|
| 1195 |
+
// Now we are at the end of the function, but logically
|
| 1196 |
+
// we are still in function prologue. We need to fix the
|
| 1197 |
+
// SP data and PCDATA.
|
| 1198 |
+
spfix := obj.Appendp(last, newprog)
|
| 1199 |
+
spfix.As = obj.ANOP
|
| 1200 |
+
spfix.Spadj = -framesize
|
| 1201 |
+
|
| 1202 |
+
pcdata := ctxt.EmitEntryStackMap(cursym, spfix, newprog)
|
| 1203 |
+
spill := ctxt.StartUnsafePoint(pcdata, newprog)
|
| 1204 |
+
pcdata = cursym.Func().SpillRegisterArgs(spill, newprog)
|
| 1205 |
+
|
| 1206 |
+
call := obj.Appendp(pcdata, newprog)
|
| 1207 |
+
call.Pos = cursym.Func().Text.Pos
|
| 1208 |
+
call.As = obj.ACALL
|
| 1209 |
+
call.To.Type = obj.TYPE_BRANCH
|
| 1210 |
+
call.To.Name = obj.NAME_EXTERN
|
| 1211 |
+
morestack := "runtime.morestack"
|
| 1212 |
+
switch {
|
| 1213 |
+
case cursym.CFunc():
|
| 1214 |
+
morestack = "runtime.morestackc"
|
| 1215 |
+
case !cursym.Func().Text.From.Sym.NeedCtxt():
|
| 1216 |
+
morestack = "runtime.morestack_noctxt"
|
| 1217 |
+
}
|
| 1218 |
+
call.To.Sym = ctxt.Lookup(morestack)
|
| 1219 |
+
// When compiling 386 code for dynamic linking, the call needs to be adjusted
|
| 1220 |
+
// to follow PIC rules. This in turn can insert more instructions, so we need
|
| 1221 |
+
// to keep track of the start of the call (where the jump will be to) and the
|
| 1222 |
+
// end (which following instructions are appended to).
|
| 1223 |
+
callend := call
|
| 1224 |
+
progedit(ctxt, callend, newprog)
|
| 1225 |
+
for ; callend.Link != nil; callend = callend.Link {
|
| 1226 |
+
progedit(ctxt, callend.Link, newprog)
|
| 1227 |
+
}
|
| 1228 |
+
|
| 1229 |
+
// The instructions which unspill regs should be preemptible.
|
| 1230 |
+
pcdata = ctxt.EndUnsafePoint(callend, newprog, -1)
|
| 1231 |
+
unspill := cursym.Func().UnspillRegisterArgs(pcdata, newprog)
|
| 1232 |
+
|
| 1233 |
+
jmp := obj.Appendp(unspill, newprog)
|
| 1234 |
+
jmp.As = obj.AJMP
|
| 1235 |
+
jmp.To.Type = obj.TYPE_BRANCH
|
| 1236 |
+
jmp.To.SetTarget(startPred.Link)
|
| 1237 |
+
jmp.Spadj = +framesize
|
| 1238 |
+
|
| 1239 |
+
jls.To.SetTarget(spill)
|
| 1240 |
+
if q1 != nil {
|
| 1241 |
+
q1.To.SetTarget(spill)
|
| 1242 |
+
}
|
| 1243 |
+
|
| 1244 |
+
return end, rg
|
| 1245 |
+
}
|
| 1246 |
+
|
| 1247 |
+
func isR15(r int16) bool {
|
| 1248 |
+
return r == REG_R15 || r == REG_R15B
|
| 1249 |
+
}
|
| 1250 |
+
func addrMentionsR15(a *obj.Addr) bool {
|
| 1251 |
+
if a == nil {
|
| 1252 |
+
return false
|
| 1253 |
+
}
|
| 1254 |
+
return isR15(a.Reg) || isR15(a.Index)
|
| 1255 |
+
}
|
| 1256 |
+
func progMentionsR15(p *obj.Prog) bool {
|
| 1257 |
+
return addrMentionsR15(&p.From) || addrMentionsR15(&p.To) || isR15(p.Reg) || addrMentionsR15(p.GetFrom3())
|
| 1258 |
+
}
|
| 1259 |
+
|
| 1260 |
+
func addrUsesGlobal(a *obj.Addr) bool {
|
| 1261 |
+
if a == nil {
|
| 1262 |
+
return false
|
| 1263 |
+
}
|
| 1264 |
+
return a.Name == obj.NAME_EXTERN && !a.Sym.Local()
|
| 1265 |
+
}
|
| 1266 |
+
func progUsesGlobal(p *obj.Prog) bool {
|
| 1267 |
+
if p.As == obj.ACALL || p.As == obj.ATEXT || p.As == obj.AFUNCDATA || p.As == obj.ARET || p.As == obj.AJMP {
|
| 1268 |
+
// These opcodes don't use a GOT to access their argument (see rewriteToUseGot),
|
| 1269 |
+
// or R15 would be dead at them anyway.
|
| 1270 |
+
return false
|
| 1271 |
+
}
|
| 1272 |
+
if p.As == ALEAQ {
|
| 1273 |
+
// The GOT entry is placed directly in the destination register; R15 is not used.
|
| 1274 |
+
return false
|
| 1275 |
+
}
|
| 1276 |
+
return addrUsesGlobal(&p.From) || addrUsesGlobal(&p.To) || addrUsesGlobal(p.GetFrom3())
|
| 1277 |
+
}
|
| 1278 |
+
|
| 1279 |
+
type rwMask int
|
| 1280 |
+
|
| 1281 |
+
const (
|
| 1282 |
+
readFrom rwMask = 1 << iota
|
| 1283 |
+
readTo
|
| 1284 |
+
readReg
|
| 1285 |
+
readFrom3
|
| 1286 |
+
writeFrom
|
| 1287 |
+
writeTo
|
| 1288 |
+
writeReg
|
| 1289 |
+
writeFrom3
|
| 1290 |
+
)
|
| 1291 |
+
|
| 1292 |
+
// progRW returns a mask describing the effects of the instruction p.
|
| 1293 |
+
// Note: this isn't exhaustively accurate. It is only currently used for detecting
|
| 1294 |
+
// reads/writes to R15, so SSE register behavior isn't fully correct, and
|
| 1295 |
+
// other weird cases (e.g. writes to DX by CLD) also aren't captured.
|
| 1296 |
+
func progRW(p *obj.Prog) rwMask {
|
| 1297 |
+
var m rwMask
|
| 1298 |
+
// Default for most instructions
|
| 1299 |
+
if p.From.Type != obj.TYPE_NONE {
|
| 1300 |
+
m |= readFrom
|
| 1301 |
+
}
|
| 1302 |
+
if p.To.Type != obj.TYPE_NONE {
|
| 1303 |
+
// Most x86 instructions update the To value
|
| 1304 |
+
m |= readTo | writeTo
|
| 1305 |
+
}
|
| 1306 |
+
if p.Reg != 0 {
|
| 1307 |
+
m |= readReg
|
| 1308 |
+
}
|
| 1309 |
+
if p.GetFrom3() != nil {
|
| 1310 |
+
m |= readFrom3
|
| 1311 |
+
}
|
| 1312 |
+
|
| 1313 |
+
// Lots of exceptions to the above defaults.
|
| 1314 |
+
name := p.As.String()
|
| 1315 |
+
if strings.HasPrefix(name, "MOV") || strings.HasPrefix(name, "PMOV") {
|
| 1316 |
+
// MOV instructions don't read To.
|
| 1317 |
+
m &^= readTo
|
| 1318 |
+
}
|
| 1319 |
+
switch p.As {
|
| 1320 |
+
case APOPW, APOPL, APOPQ,
|
| 1321 |
+
ALEAL, ALEAQ,
|
| 1322 |
+
AIMUL3W, AIMUL3L, AIMUL3Q,
|
| 1323 |
+
APEXTRB, APEXTRW, APEXTRD, APEXTRQ, AVPEXTRB, AVPEXTRW, AVPEXTRD, AVPEXTRQ, AEXTRACTPS,
|
| 1324 |
+
ABSFW, ABSFL, ABSFQ, ABSRW, ABSRL, ABSRQ, APOPCNTW, APOPCNTL, APOPCNTQ, ALZCNTW, ALZCNTL, ALZCNTQ,
|
| 1325 |
+
ASHLXL, ASHLXQ, ASHRXL, ASHRXQ, ASARXL, ASARXQ:
|
| 1326 |
+
// These instructions are pure writes to To. They don't use its old value.
|
| 1327 |
+
m &^= readTo
|
| 1328 |
+
case AXORL, AXORQ:
|
| 1329 |
+
// Register-clearing idiom doesn't read previous value.
|
| 1330 |
+
if p.From.Type == obj.TYPE_REG && p.To.Type == obj.TYPE_REG && p.From.Reg == p.To.Reg {
|
| 1331 |
+
m &^= readFrom | readTo
|
| 1332 |
+
}
|
| 1333 |
+
case AMULXL, AMULXQ:
|
| 1334 |
+
// These are write-only to both To and From3.
|
| 1335 |
+
m &^= readTo | readFrom3
|
| 1336 |
+
m |= writeFrom3
|
| 1337 |
+
}
|
| 1338 |
+
return m
|
| 1339 |
+
}
|
| 1340 |
+
|
| 1341 |
+
// progReadsR15 reports whether p reads the register R15.
|
| 1342 |
+
func progReadsR15(p *obj.Prog) bool {
|
| 1343 |
+
m := progRW(p)
|
| 1344 |
+
if m&readFrom != 0 && p.From.Type == obj.TYPE_REG && isR15(p.From.Reg) {
|
| 1345 |
+
return true
|
| 1346 |
+
}
|
| 1347 |
+
if m&readTo != 0 && p.To.Type == obj.TYPE_REG && isR15(p.To.Reg) {
|
| 1348 |
+
return true
|
| 1349 |
+
}
|
| 1350 |
+
if m&readReg != 0 && isR15(p.Reg) {
|
| 1351 |
+
return true
|
| 1352 |
+
}
|
| 1353 |
+
if m&readFrom3 != 0 && p.GetFrom3().Type == obj.TYPE_REG && isR15(p.GetFrom3().Reg) {
|
| 1354 |
+
return true
|
| 1355 |
+
}
|
| 1356 |
+
// reads of the index registers
|
| 1357 |
+
if p.From.Type == obj.TYPE_MEM && (isR15(p.From.Reg) || isR15(p.From.Index)) {
|
| 1358 |
+
return true
|
| 1359 |
+
}
|
| 1360 |
+
if p.To.Type == obj.TYPE_MEM && (isR15(p.To.Reg) || isR15(p.To.Index)) {
|
| 1361 |
+
return true
|
| 1362 |
+
}
|
| 1363 |
+
if f3 := p.GetFrom3(); f3 != nil && f3.Type == obj.TYPE_MEM && (isR15(f3.Reg) || isR15(f3.Index)) {
|
| 1364 |
+
return true
|
| 1365 |
+
}
|
| 1366 |
+
return false
|
| 1367 |
+
}
|
| 1368 |
+
|
| 1369 |
+
// progWritesR15 reports whether p writes the register R15.
|
| 1370 |
+
func progWritesR15(p *obj.Prog) bool {
|
| 1371 |
+
m := progRW(p)
|
| 1372 |
+
if m&writeFrom != 0 && p.From.Type == obj.TYPE_REG && isR15(p.From.Reg) {
|
| 1373 |
+
return true
|
| 1374 |
+
}
|
| 1375 |
+
if m&writeTo != 0 && p.To.Type == obj.TYPE_REG && isR15(p.To.Reg) {
|
| 1376 |
+
return true
|
| 1377 |
+
}
|
| 1378 |
+
if m&writeReg != 0 && isR15(p.Reg) {
|
| 1379 |
+
return true
|
| 1380 |
+
}
|
| 1381 |
+
if m&writeFrom3 != 0 && p.GetFrom3().Type == obj.TYPE_REG && isR15(p.GetFrom3().Reg) {
|
| 1382 |
+
return true
|
| 1383 |
+
}
|
| 1384 |
+
return false
|
| 1385 |
+
}
|
| 1386 |
+
|
| 1387 |
+
func errorCheck(ctxt *obj.Link, s *obj.LSym) {
|
| 1388 |
+
// When dynamic linking, R15 is used to access globals. Reject code that
|
| 1389 |
+
// uses R15 after a global variable access.
|
| 1390 |
+
if !ctxt.Flag_dynlink {
|
| 1391 |
+
return
|
| 1392 |
+
}
|
| 1393 |
+
|
| 1394 |
+
// Flood fill all the instructions where R15's value is junk.
|
| 1395 |
+
// If there are any uses of R15 in that set, report an error.
|
| 1396 |
+
var work []*obj.Prog
|
| 1397 |
+
var mentionsR15 bool
|
| 1398 |
+
for p := s.Func().Text; p != nil; p = p.Link {
|
| 1399 |
+
if progUsesGlobal(p) {
|
| 1400 |
+
work = append(work, p)
|
| 1401 |
+
p.Mark |= markBit
|
| 1402 |
+
}
|
| 1403 |
+
if progMentionsR15(p) {
|
| 1404 |
+
mentionsR15 = true
|
| 1405 |
+
}
|
| 1406 |
+
}
|
| 1407 |
+
if mentionsR15 {
|
| 1408 |
+
for len(work) > 0 {
|
| 1409 |
+
p := work[len(work)-1]
|
| 1410 |
+
work = work[:len(work)-1]
|
| 1411 |
+
if progReadsR15(p) {
|
| 1412 |
+
pos := ctxt.PosTable.Pos(p.Pos)
|
| 1413 |
+
ctxt.Diag("%s:%s: when dynamic linking, R15 is clobbered by a global variable access and is used here: %v", path.Base(pos.Filename()), pos.LineNumber(), p)
|
| 1414 |
+
break // only report one error
|
| 1415 |
+
}
|
| 1416 |
+
if progWritesR15(p) {
|
| 1417 |
+
// R15 is overwritten by this instruction. Its value is not junk any more.
|
| 1418 |
+
continue
|
| 1419 |
+
}
|
| 1420 |
+
if q := p.To.Target(); q != nil && q.Mark&markBit == 0 {
|
| 1421 |
+
q.Mark |= markBit
|
| 1422 |
+
work = append(work, q)
|
| 1423 |
+
}
|
| 1424 |
+
if p.As == obj.AJMP || p.As == obj.ARET {
|
| 1425 |
+
continue // no fallthrough
|
| 1426 |
+
}
|
| 1427 |
+
if q := p.Link; q != nil && q.Mark&markBit == 0 {
|
| 1428 |
+
q.Mark |= markBit
|
| 1429 |
+
work = append(work, q)
|
| 1430 |
+
}
|
| 1431 |
+
}
|
| 1432 |
+
}
|
| 1433 |
+
|
| 1434 |
+
// Clean up.
|
| 1435 |
+
for p := s.Func().Text; p != nil; p = p.Link {
|
| 1436 |
+
p.Mark &^= markBit
|
| 1437 |
+
}
|
| 1438 |
+
}
|
| 1439 |
+
|
| 1440 |
+
var unaryDst = map[obj.As]bool{
|
| 1441 |
+
ABSWAPL: true,
|
| 1442 |
+
ABSWAPQ: true,
|
| 1443 |
+
ACLDEMOTE: true,
|
| 1444 |
+
ACLFLUSH: true,
|
| 1445 |
+
ACLFLUSHOPT: true,
|
| 1446 |
+
ACLWB: true,
|
| 1447 |
+
ACMPXCHG16B: true,
|
| 1448 |
+
ACMPXCHG8B: true,
|
| 1449 |
+
ADECB: true,
|
| 1450 |
+
ADECL: true,
|
| 1451 |
+
ADECQ: true,
|
| 1452 |
+
ADECW: true,
|
| 1453 |
+
AFBSTP: true,
|
| 1454 |
+
AFFREE: true,
|
| 1455 |
+
AFLDENV: true,
|
| 1456 |
+
AFSAVE: true,
|
| 1457 |
+
AFSTCW: true,
|
| 1458 |
+
AFSTENV: true,
|
| 1459 |
+
AFSTSW: true,
|
| 1460 |
+
AFXSAVE64: true,
|
| 1461 |
+
AFXSAVE: true,
|
| 1462 |
+
AINCB: true,
|
| 1463 |
+
AINCL: true,
|
| 1464 |
+
AINCQ: true,
|
| 1465 |
+
AINCW: true,
|
| 1466 |
+
ANEGB: true,
|
| 1467 |
+
ANEGL: true,
|
| 1468 |
+
ANEGQ: true,
|
| 1469 |
+
ANEGW: true,
|
| 1470 |
+
ANOTB: true,
|
| 1471 |
+
ANOTL: true,
|
| 1472 |
+
ANOTQ: true,
|
| 1473 |
+
ANOTW: true,
|
| 1474 |
+
APOPL: true,
|
| 1475 |
+
APOPQ: true,
|
| 1476 |
+
APOPW: true,
|
| 1477 |
+
ARDFSBASEL: true,
|
| 1478 |
+
ARDFSBASEQ: true,
|
| 1479 |
+
ARDGSBASEL: true,
|
| 1480 |
+
ARDGSBASEQ: true,
|
| 1481 |
+
ARDPID: true,
|
| 1482 |
+
ARDRANDL: true,
|
| 1483 |
+
ARDRANDQ: true,
|
| 1484 |
+
ARDRANDW: true,
|
| 1485 |
+
ARDSEEDL: true,
|
| 1486 |
+
ARDSEEDQ: true,
|
| 1487 |
+
ARDSEEDW: true,
|
| 1488 |
+
ASETCC: true,
|
| 1489 |
+
ASETCS: true,
|
| 1490 |
+
ASETEQ: true,
|
| 1491 |
+
ASETGE: true,
|
| 1492 |
+
ASETGT: true,
|
| 1493 |
+
ASETHI: true,
|
| 1494 |
+
ASETLE: true,
|
| 1495 |
+
ASETLS: true,
|
| 1496 |
+
ASETLT: true,
|
| 1497 |
+
ASETMI: true,
|
| 1498 |
+
ASETNE: true,
|
| 1499 |
+
ASETOC: true,
|
| 1500 |
+
ASETOS: true,
|
| 1501 |
+
ASETPC: true,
|
| 1502 |
+
ASETPL: true,
|
| 1503 |
+
ASETPS: true,
|
| 1504 |
+
ASGDT: true,
|
| 1505 |
+
ASIDT: true,
|
| 1506 |
+
ASLDTL: true,
|
| 1507 |
+
ASLDTQ: true,
|
| 1508 |
+
ASLDTW: true,
|
| 1509 |
+
ASMSWL: true,
|
| 1510 |
+
ASMSWQ: true,
|
| 1511 |
+
ASMSWW: true,
|
| 1512 |
+
ASTMXCSR: true,
|
| 1513 |
+
ASTRL: true,
|
| 1514 |
+
ASTRQ: true,
|
| 1515 |
+
ASTRW: true,
|
| 1516 |
+
AXSAVE64: true,
|
| 1517 |
+
AXSAVE: true,
|
| 1518 |
+
AXSAVEC64: true,
|
| 1519 |
+
AXSAVEC: true,
|
| 1520 |
+
AXSAVEOPT64: true,
|
| 1521 |
+
AXSAVEOPT: true,
|
| 1522 |
+
AXSAVES64: true,
|
| 1523 |
+
AXSAVES: true,
|
| 1524 |
+
}
|
| 1525 |
+
|
| 1526 |
+
var Linkamd64 = obj.LinkArch{
|
| 1527 |
+
Arch: sys.ArchAMD64,
|
| 1528 |
+
Init: instinit,
|
| 1529 |
+
ErrorCheck: errorCheck,
|
| 1530 |
+
Preprocess: preprocess,
|
| 1531 |
+
Assemble: span6,
|
| 1532 |
+
Progedit: progedit,
|
| 1533 |
+
SEH: populateSeh,
|
| 1534 |
+
UnaryDst: unaryDst,
|
| 1535 |
+
DWARFRegisters: AMD64DWARFRegisters,
|
| 1536 |
+
}
|
| 1537 |
+
|
| 1538 |
+
var Link386 = obj.LinkArch{
|
| 1539 |
+
Arch: sys.Arch386,
|
| 1540 |
+
Init: instinit,
|
| 1541 |
+
Preprocess: preprocess,
|
| 1542 |
+
Assemble: span6,
|
| 1543 |
+
Progedit: progedit,
|
| 1544 |
+
UnaryDst: unaryDst,
|
| 1545 |
+
DWARFRegisters: X86DWARFRegisters,
|
| 1546 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/obj6_test.go
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2015 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
package x86_test
|
| 6 |
+
|
| 7 |
+
import (
|
| 8 |
+
"bufio"
|
| 9 |
+
"bytes"
|
| 10 |
+
"fmt"
|
| 11 |
+
"internal/testenv"
|
| 12 |
+
"os"
|
| 13 |
+
"path/filepath"
|
| 14 |
+
"regexp"
|
| 15 |
+
"strconv"
|
| 16 |
+
"strings"
|
| 17 |
+
"testing"
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
const testdata = `
|
| 21 |
+
MOVQ AX, AX -> MOVQ AX, AX
|
| 22 |
+
|
| 23 |
+
LEAQ name(SB), AX -> MOVQ name@GOT(SB), AX
|
| 24 |
+
LEAQ name+10(SB), AX -> MOVQ name@GOT(SB), AX; LEAQ 10(AX), AX
|
| 25 |
+
MOVQ $name(SB), AX -> MOVQ name@GOT(SB), AX
|
| 26 |
+
MOVQ $name+10(SB), AX -> MOVQ name@GOT(SB), AX; LEAQ 10(AX), AX
|
| 27 |
+
|
| 28 |
+
MOVQ name(SB), AX -> NOP; MOVQ name@GOT(SB), R15; MOVQ (R15), AX
|
| 29 |
+
MOVQ name+10(SB), AX -> NOP; MOVQ name@GOT(SB), R15; MOVQ 10(R15), AX
|
| 30 |
+
|
| 31 |
+
CMPQ name(SB), $0 -> NOP; MOVQ name@GOT(SB), R15; CMPQ (R15), $0
|
| 32 |
+
|
| 33 |
+
MOVQ $1, name(SB) -> NOP; MOVQ name@GOT(SB), R15; MOVQ $1, (R15)
|
| 34 |
+
MOVQ $1, name+10(SB) -> NOP; MOVQ name@GOT(SB), R15; MOVQ $1, 10(R15)
|
| 35 |
+
`
|
| 36 |
+
|
| 37 |
+
type ParsedTestData struct {
|
| 38 |
+
input string
|
| 39 |
+
marks []int
|
| 40 |
+
marker_to_input map[int][]string
|
| 41 |
+
marker_to_expected map[int][]string
|
| 42 |
+
marker_to_output map[int][]string
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
const marker_start = 1234
|
| 46 |
+
|
| 47 |
+
func parseTestData(t *testing.T) *ParsedTestData {
|
| 48 |
+
r := &ParsedTestData{}
|
| 49 |
+
scanner := bufio.NewScanner(strings.NewReader(testdata))
|
| 50 |
+
r.marker_to_input = make(map[int][]string)
|
| 51 |
+
r.marker_to_expected = make(map[int][]string)
|
| 52 |
+
marker := marker_start
|
| 53 |
+
input_insns := []string{}
|
| 54 |
+
for scanner.Scan() {
|
| 55 |
+
line := scanner.Text()
|
| 56 |
+
if len(strings.TrimSpace(line)) == 0 {
|
| 57 |
+
continue
|
| 58 |
+
}
|
| 59 |
+
parts := strings.Split(line, "->")
|
| 60 |
+
if len(parts) != 2 {
|
| 61 |
+
t.Fatalf("malformed line %v", line)
|
| 62 |
+
}
|
| 63 |
+
r.marks = append(r.marks, marker)
|
| 64 |
+
marker_insn := fmt.Sprintf("MOVQ $%d, AX", marker)
|
| 65 |
+
input_insns = append(input_insns, marker_insn)
|
| 66 |
+
for _, input_insn := range strings.Split(parts[0], ";") {
|
| 67 |
+
input_insns = append(input_insns, input_insn)
|
| 68 |
+
r.marker_to_input[marker] = append(r.marker_to_input[marker], normalize(input_insn))
|
| 69 |
+
}
|
| 70 |
+
for _, expected_insn := range strings.Split(parts[1], ";") {
|
| 71 |
+
r.marker_to_expected[marker] = append(r.marker_to_expected[marker], normalize(expected_insn))
|
| 72 |
+
}
|
| 73 |
+
marker++
|
| 74 |
+
}
|
| 75 |
+
r.input = "TEXT ·foo(SB),$0\n" + strings.Join(input_insns, "\n") + "\n"
|
| 76 |
+
return r
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
var spaces_re *regexp.Regexp = regexp.MustCompile(`\s+`)
|
| 80 |
+
|
| 81 |
+
func normalize(s string) string {
|
| 82 |
+
return spaces_re.ReplaceAllLiteralString(strings.TrimSpace(s), " ")
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
func asmOutput(t *testing.T, s string) []byte {
|
| 86 |
+
tmpdir, err := os.MkdirTemp("", "progedittest")
|
| 87 |
+
if err != nil {
|
| 88 |
+
t.Fatal(err)
|
| 89 |
+
}
|
| 90 |
+
defer os.RemoveAll(tmpdir)
|
| 91 |
+
tmpfile, err := os.Create(filepath.Join(tmpdir, "input.s"))
|
| 92 |
+
if err != nil {
|
| 93 |
+
t.Fatal(err)
|
| 94 |
+
}
|
| 95 |
+
defer tmpfile.Close()
|
| 96 |
+
_, err = tmpfile.WriteString(s)
|
| 97 |
+
if err != nil {
|
| 98 |
+
t.Fatal(err)
|
| 99 |
+
}
|
| 100 |
+
cmd := testenv.Command(t,
|
| 101 |
+
testenv.GoToolPath(t), "tool", "asm", "-S", "-dynlink",
|
| 102 |
+
"-o", filepath.Join(tmpdir, "output.6"), tmpfile.Name())
|
| 103 |
+
|
| 104 |
+
cmd.Env = append(os.Environ(),
|
| 105 |
+
"GOARCH=amd64", "GOOS=linux", "GOPATH="+filepath.Join(tmpdir, "_gopath"))
|
| 106 |
+
asmout, err := cmd.CombinedOutput()
|
| 107 |
+
if err != nil {
|
| 108 |
+
t.Fatalf("error %s output %s", err, asmout)
|
| 109 |
+
}
|
| 110 |
+
return asmout
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
func parseOutput(t *testing.T, td *ParsedTestData, asmout []byte) {
|
| 114 |
+
scanner := bufio.NewScanner(bytes.NewReader(asmout))
|
| 115 |
+
marker := regexp.MustCompile(`MOVQ \$([0-9]+), AX`)
|
| 116 |
+
mark := -1
|
| 117 |
+
td.marker_to_output = make(map[int][]string)
|
| 118 |
+
for scanner.Scan() {
|
| 119 |
+
line := scanner.Text()
|
| 120 |
+
if line[0] != '\t' {
|
| 121 |
+
continue
|
| 122 |
+
}
|
| 123 |
+
parts := strings.SplitN(line, "\t", 3)
|
| 124 |
+
if len(parts) != 3 {
|
| 125 |
+
continue
|
| 126 |
+
}
|
| 127 |
+
n := normalize(parts[2])
|
| 128 |
+
mark_matches := marker.FindStringSubmatch(n)
|
| 129 |
+
if mark_matches != nil {
|
| 130 |
+
mark, _ = strconv.Atoi(mark_matches[1])
|
| 131 |
+
if _, ok := td.marker_to_input[mark]; !ok {
|
| 132 |
+
t.Fatalf("unexpected marker %d", mark)
|
| 133 |
+
}
|
| 134 |
+
} else if mark != -1 {
|
| 135 |
+
td.marker_to_output[mark] = append(td.marker_to_output[mark], n)
|
| 136 |
+
}
|
| 137 |
+
}
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
func TestDynlink(t *testing.T) {
|
| 141 |
+
testenv.MustHaveGoBuild(t)
|
| 142 |
+
|
| 143 |
+
if os.Getenv("GOHOSTARCH") != "" {
|
| 144 |
+
// TODO: make this work? It was failing due to the
|
| 145 |
+
// GOARCH= filtering above and skipping is easiest for
|
| 146 |
+
// now.
|
| 147 |
+
t.Skip("skipping when GOHOSTARCH is set")
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
testdata := parseTestData(t)
|
| 151 |
+
asmout := asmOutput(t, testdata.input)
|
| 152 |
+
parseOutput(t, testdata, asmout)
|
| 153 |
+
for _, m := range testdata.marks {
|
| 154 |
+
i := strings.Join(testdata.marker_to_input[m], "; ")
|
| 155 |
+
o := strings.Join(testdata.marker_to_output[m], "; ")
|
| 156 |
+
e := strings.Join(testdata.marker_to_expected[m], "; ")
|
| 157 |
+
if o != e {
|
| 158 |
+
if o == i {
|
| 159 |
+
t.Errorf("%s was unchanged; should have become %s", i, e)
|
| 160 |
+
} else {
|
| 161 |
+
t.Errorf("%s became %s; should have become %s", i, o, e)
|
| 162 |
+
}
|
| 163 |
+
} else if i != e {
|
| 164 |
+
t.Logf("%s correctly became %s", i, o)
|
| 165 |
+
}
|
| 166 |
+
}
|
| 167 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/pcrelative_test.go
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2017 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
package x86_test
|
| 6 |
+
|
| 7 |
+
import (
|
| 8 |
+
"bytes"
|
| 9 |
+
"fmt"
|
| 10 |
+
"internal/testenv"
|
| 11 |
+
"os"
|
| 12 |
+
"path/filepath"
|
| 13 |
+
"testing"
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
const asmData = `
|
| 17 |
+
GLOBL zeros<>(SB),8,$64
|
| 18 |
+
TEXT ·testASM(SB),4,$0
|
| 19 |
+
VMOVUPS zeros<>(SB), %s // PC relative relocation is off by 1, for Y8-Y15, Z8-15 and Z24-Z31
|
| 20 |
+
RET
|
| 21 |
+
`
|
| 22 |
+
|
| 23 |
+
const goData = `
|
| 24 |
+
package main
|
| 25 |
+
|
| 26 |
+
func testASM()
|
| 27 |
+
|
| 28 |
+
func main() {
|
| 29 |
+
testASM()
|
| 30 |
+
}
|
| 31 |
+
`
|
| 32 |
+
|
| 33 |
+
func objdumpOutput(t *testing.T, mname, source string) []byte {
|
| 34 |
+
tmpdir, err := os.MkdirTemp("", mname)
|
| 35 |
+
if err != nil {
|
| 36 |
+
t.Fatal(err)
|
| 37 |
+
}
|
| 38 |
+
defer os.RemoveAll(tmpdir)
|
| 39 |
+
err = os.WriteFile(filepath.Join(tmpdir, "go.mod"), []byte(fmt.Sprintf("module %s\n", mname)), 0666)
|
| 40 |
+
if err != nil {
|
| 41 |
+
t.Fatal(err)
|
| 42 |
+
}
|
| 43 |
+
tmpfile, err := os.Create(filepath.Join(tmpdir, "input.s"))
|
| 44 |
+
if err != nil {
|
| 45 |
+
t.Fatal(err)
|
| 46 |
+
}
|
| 47 |
+
defer tmpfile.Close()
|
| 48 |
+
_, err = tmpfile.WriteString(source)
|
| 49 |
+
if err != nil {
|
| 50 |
+
t.Fatal(err)
|
| 51 |
+
}
|
| 52 |
+
tmpfile2, err := os.Create(filepath.Join(tmpdir, "input.go"))
|
| 53 |
+
if err != nil {
|
| 54 |
+
t.Fatal(err)
|
| 55 |
+
}
|
| 56 |
+
defer tmpfile2.Close()
|
| 57 |
+
_, err = tmpfile2.WriteString(goData)
|
| 58 |
+
if err != nil {
|
| 59 |
+
t.Fatal(err)
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
cmd := testenv.Command(t,
|
| 63 |
+
testenv.GoToolPath(t), "build", "-o",
|
| 64 |
+
filepath.Join(tmpdir, "output"))
|
| 65 |
+
|
| 66 |
+
cmd.Env = append(os.Environ(),
|
| 67 |
+
"GOARCH=amd64", "GOOS=linux", "GOPATH="+filepath.Join(tmpdir, "_gopath"))
|
| 68 |
+
cmd.Dir = tmpdir
|
| 69 |
+
|
| 70 |
+
out, err := cmd.CombinedOutput()
|
| 71 |
+
if err != nil {
|
| 72 |
+
t.Fatalf("error %s output %s", err, out)
|
| 73 |
+
}
|
| 74 |
+
cmd2 := testenv.Command(t,
|
| 75 |
+
testenv.GoToolPath(t), "tool", "objdump", "-s", "testASM",
|
| 76 |
+
filepath.Join(tmpdir, "output"))
|
| 77 |
+
cmd2.Env = cmd.Env
|
| 78 |
+
cmd2.Dir = tmpdir
|
| 79 |
+
objout, err := cmd2.CombinedOutput()
|
| 80 |
+
if err != nil {
|
| 81 |
+
t.Fatalf("error %s output %s", err, objout)
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
return objout
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
func TestVexEvexPCrelative(t *testing.T) {
|
| 88 |
+
testenv.MustHaveGoBuild(t)
|
| 89 |
+
LOOP:
|
| 90 |
+
for _, reg := range []string{"Y0", "Y8", "Z0", "Z8", "Z16", "Z24"} {
|
| 91 |
+
asm := fmt.Sprintf(asmData, reg)
|
| 92 |
+
objout := objdumpOutput(t, "pcrelative", asm)
|
| 93 |
+
data := bytes.Split(objout, []byte("\n"))
|
| 94 |
+
for idx := len(data) - 1; idx >= 0; idx-- {
|
| 95 |
+
// check that RET wasn't overwritten.
|
| 96 |
+
if bytes.Index(data[idx], []byte("RET")) != -1 {
|
| 97 |
+
if testing.Short() {
|
| 98 |
+
break LOOP
|
| 99 |
+
}
|
| 100 |
+
continue LOOP
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
t.Errorf("VMOVUPS zeros<>(SB), %s overwrote RET", reg)
|
| 104 |
+
}
|
| 105 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/seh.go
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2023 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
package x86
|
| 6 |
+
|
| 7 |
+
import (
|
| 8 |
+
"cmd/internal/obj"
|
| 9 |
+
"cmd/internal/objabi"
|
| 10 |
+
"cmd/internal/src"
|
| 11 |
+
"encoding/base64"
|
| 12 |
+
"fmt"
|
| 13 |
+
"math"
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
type sehbuf struct {
|
| 17 |
+
ctxt *obj.Link
|
| 18 |
+
data []byte
|
| 19 |
+
off int
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
func newsehbuf(ctxt *obj.Link, nodes uint8) sehbuf {
|
| 23 |
+
// - 8 bytes for the header
|
| 24 |
+
// - 2 bytes for each node
|
| 25 |
+
// - 2 bytes in case nodes is not even
|
| 26 |
+
size := 8 + nodes*2
|
| 27 |
+
if nodes%2 != 0 {
|
| 28 |
+
size += 2
|
| 29 |
+
}
|
| 30 |
+
return sehbuf{ctxt, make([]byte, size), 0}
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
func (b *sehbuf) write8(v uint8) {
|
| 34 |
+
b.data[b.off] = v
|
| 35 |
+
b.off++
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
func (b *sehbuf) write32(v uint32) {
|
| 39 |
+
b.ctxt.Arch.ByteOrder.PutUint32(b.data[b.off:], v)
|
| 40 |
+
b.off += 4
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
func (b *sehbuf) writecode(op, value uint8) {
|
| 44 |
+
b.write8(value<<4 | op)
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
// populateSeh generates the SEH unwind information for s.
|
| 48 |
+
func populateSeh(ctxt *obj.Link, s *obj.LSym) (sehsym *obj.LSym) {
|
| 49 |
+
if s.NoFrame() {
|
| 50 |
+
return
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
// This implementation expects the following function prologue layout:
|
| 54 |
+
// - Stack split code (optional)
|
| 55 |
+
// - PUSHQ BP
|
| 56 |
+
// - MOVQ SP, BP
|
| 57 |
+
//
|
| 58 |
+
// If the prologue layout change, the unwind information should be updated
|
| 59 |
+
// accordingly.
|
| 60 |
+
|
| 61 |
+
// Search for the PUSHQ BP instruction inside the prologue.
|
| 62 |
+
var pushbp *obj.Prog
|
| 63 |
+
for p := s.Func().Text; p != nil; p = p.Link {
|
| 64 |
+
if p.As == APUSHQ && p.From.Type == obj.TYPE_REG && p.From.Reg == REG_BP {
|
| 65 |
+
pushbp = p
|
| 66 |
+
break
|
| 67 |
+
}
|
| 68 |
+
if p.Pos.Xlogue() == src.PosPrologueEnd {
|
| 69 |
+
break
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
if pushbp == nil {
|
| 73 |
+
ctxt.Diag("missing frame pointer instruction: PUSHQ BP")
|
| 74 |
+
return
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
// It must be followed by a MOVQ SP, BP.
|
| 78 |
+
movbp := pushbp.Link
|
| 79 |
+
if movbp == nil {
|
| 80 |
+
ctxt.Diag("missing frame pointer instruction: MOVQ SP, BP")
|
| 81 |
+
return
|
| 82 |
+
}
|
| 83 |
+
if !(movbp.As == AMOVQ && movbp.From.Type == obj.TYPE_REG && movbp.From.Reg == REG_SP &&
|
| 84 |
+
movbp.To.Type == obj.TYPE_REG && movbp.To.Reg == REG_BP && movbp.From.Offset == 0) {
|
| 85 |
+
ctxt.Diag("unexpected frame pointer instruction\n%v", movbp)
|
| 86 |
+
return
|
| 87 |
+
}
|
| 88 |
+
if movbp.Link.Pc > math.MaxUint8 {
|
| 89 |
+
// SEH unwind information don't support prologues that are more than 255 bytes long.
|
| 90 |
+
// These are very rare, but still possible, e.g., when compiling functions with many
|
| 91 |
+
// parameters with -gcflags=-d=maymorestack=runtime.mayMoreStackPreempt.
|
| 92 |
+
// Return without reporting an error.
|
| 93 |
+
return
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
// Reference:
|
| 97 |
+
// https://learn.microsoft.com/en-us/cpp/build/exception-handling-x64#struct-unwind_info
|
| 98 |
+
|
| 99 |
+
const (
|
| 100 |
+
UWOP_PUSH_NONVOL = 0
|
| 101 |
+
UWOP_SET_FPREG = 3
|
| 102 |
+
SEH_REG_BP = 5
|
| 103 |
+
UNW_FLAG_EHANDLER = 1 << 3
|
| 104 |
+
)
|
| 105 |
+
|
| 106 |
+
var exceptionHandler *obj.LSym
|
| 107 |
+
var flags uint8
|
| 108 |
+
if s.Name == "runtime.asmcgocall_landingpad" {
|
| 109 |
+
// Most cgo calls go through runtime.asmcgocall_landingpad,
|
| 110 |
+
// we can use it to catch exceptions from C code.
|
| 111 |
+
// TODO: use a more generic approach to identify which calls need an exception handler.
|
| 112 |
+
exceptionHandler = ctxt.Lookup("runtime.sehtramp")
|
| 113 |
+
if exceptionHandler == nil {
|
| 114 |
+
ctxt.Diag("missing runtime.sehtramp\n")
|
| 115 |
+
return
|
| 116 |
+
}
|
| 117 |
+
flags = UNW_FLAG_EHANDLER
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
// Fow now we only support operations which are encoded
|
| 121 |
+
// using a single 2-byte node, so the number of nodes
|
| 122 |
+
// is the number of operations.
|
| 123 |
+
nodes := uint8(2)
|
| 124 |
+
buf := newsehbuf(ctxt, nodes)
|
| 125 |
+
buf.write8(flags | 1) // Flags + version
|
| 126 |
+
buf.write8(uint8(movbp.Link.Pc)) // Size of prolog
|
| 127 |
+
buf.write8(nodes) // Count of nodes
|
| 128 |
+
buf.write8(SEH_REG_BP) // FP register
|
| 129 |
+
|
| 130 |
+
// Notes are written in reverse order of appearance.
|
| 131 |
+
buf.write8(uint8(movbp.Link.Pc))
|
| 132 |
+
buf.writecode(UWOP_SET_FPREG, 0)
|
| 133 |
+
|
| 134 |
+
buf.write8(uint8(pushbp.Link.Pc))
|
| 135 |
+
buf.writecode(UWOP_PUSH_NONVOL, SEH_REG_BP)
|
| 136 |
+
|
| 137 |
+
// The following 4 bytes reference the RVA of the exception handler.
|
| 138 |
+
// The value is set to 0 for now, if an exception handler is needed,
|
| 139 |
+
// it will be updated later with a R_PEIMAGEOFF relocation to the
|
| 140 |
+
// exception handler.
|
| 141 |
+
buf.write32(0)
|
| 142 |
+
|
| 143 |
+
// The list of unwind infos in a PE binary have very low cardinality
|
| 144 |
+
// as each info only contains frame pointer operations,
|
| 145 |
+
// which are very similar across functions.
|
| 146 |
+
// Dedup them when possible.
|
| 147 |
+
hash := base64.StdEncoding.EncodeToString(buf.data)
|
| 148 |
+
symname := fmt.Sprintf("%d.%s", len(buf.data), hash)
|
| 149 |
+
return ctxt.LookupInit("go:sehuw."+symname, func(s *obj.LSym) {
|
| 150 |
+
s.WriteBytes(ctxt, 0, buf.data)
|
| 151 |
+
s.Type = objabi.SSEHUNWINDINFO
|
| 152 |
+
s.Set(obj.AttrDuplicateOK, true)
|
| 153 |
+
s.Set(obj.AttrLocal, true)
|
| 154 |
+
if exceptionHandler != nil {
|
| 155 |
+
r := obj.Addrel(s)
|
| 156 |
+
r.Off = int32(len(buf.data) - 4)
|
| 157 |
+
r.Siz = 4
|
| 158 |
+
r.Sym = exceptionHandler
|
| 159 |
+
r.Type = objabi.R_PEIMAGEOFF
|
| 160 |
+
}
|
| 161 |
+
// Note: AttrContentAddressable cannot be set here,
|
| 162 |
+
// because the content-addressable-handling code
|
| 163 |
+
// does not know about aux symbols.
|
| 164 |
+
})
|
| 165 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/obj/x86/ytab.go
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2017 The Go Authors. All rights reserved.
|
| 2 |
+
// Use of this source code is governed by a BSD-style
|
| 3 |
+
// license that can be found in the LICENSE file.
|
| 4 |
+
|
| 5 |
+
package x86
|
| 6 |
+
|
| 7 |
+
// argListMax specifies upper arg count limit expected to be carried by obj.Prog.
|
| 8 |
+
// Max len(obj.Prog.RestArgs) can be inferred from this to be 4.
|
| 9 |
+
const argListMax int = 6
|
| 10 |
+
|
| 11 |
+
type argList [argListMax]uint8
|
| 12 |
+
|
| 13 |
+
type ytab struct {
|
| 14 |
+
zcase uint8
|
| 15 |
+
zoffset uint8
|
| 16 |
+
|
| 17 |
+
// Last arg is usually destination.
|
| 18 |
+
// For unary instructions unaryDst is used to determine
|
| 19 |
+
// if single argument is a source or destination.
|
| 20 |
+
args argList
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
// Returns true if yt is compatible with args.
|
| 24 |
+
//
|
| 25 |
+
// Elements from args and yt.args are used
|
| 26 |
+
// to index ycover table like `ycover[args[i]+yt.args[i]]`.
|
| 27 |
+
// This means that args should contain values that already
|
| 28 |
+
// multiplied by Ymax.
|
| 29 |
+
func (yt *ytab) match(args []int) bool {
|
| 30 |
+
// Trailing Yxxx check is required to avoid a case
|
| 31 |
+
// where shorter arg list is matched.
|
| 32 |
+
// If we had exact yt.args length, it could be `yt.argc != len(args)`.
|
| 33 |
+
if len(args) < len(yt.args) && yt.args[len(args)] != Yxxx {
|
| 34 |
+
return false
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
for i := range args {
|
| 38 |
+
if ycover[args[i]+int(yt.args[i])] == 0 {
|
| 39 |
+
return false
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
return true
|
| 44 |
+
}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/ascii.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"run","Test":"TestAscii"}
|
| 3 |
+
{"Action":"output","Test":"TestAscii","Output":"=== RUN TestAscii\n"}
|
| 4 |
+
{"Action":"output","Test":"TestAscii","Output":"I can eat glass, and it doesn't hurt me. I can eat glass, and it doesn't hurt me.\n"}
|
| 5 |
+
{"Action":"output","Test":"TestAscii","Output":"I CAN EAT GLASS, AND IT DOESN'T HURT ME. I CAN EAT GLASS, AND IT DOESN'T HURT ME.\n"}
|
| 6 |
+
{"Action":"output","Test":"TestAscii","Output":"--- PASS: TestAscii\n"}
|
| 7 |
+
{"Action":"output","Test":"TestAscii","Output":" i can eat glass, and it doesn't hurt me. i can eat glass, and it doesn't hurt me.\n"}
|
| 8 |
+
{"Action":"output","Test":"TestAscii","Output":" V PNA RNG TYNFF, NAQ VG QBRFA'G UHEG ZR. V PNA RNG TYNFF, NAQ VG QBRFA'G UHEG ZR.\n"}
|
| 9 |
+
{"Action":"pass","Test":"TestAscii"}
|
| 10 |
+
{"Action":"output","Output":"PASS\n"}
|
| 11 |
+
{"Action":"pass"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/ascii.test
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=== RUN TestAscii
|
| 2 |
+
I can eat glass, and it doesn't hurt me. I can eat glass, and it doesn't hurt me.
|
| 3 |
+
I CAN EAT GLASS, AND IT DOESN'T HURT ME. I CAN EAT GLASS, AND IT DOESN'T HURT ME.
|
| 4 |
+
--- PASS: TestAscii
|
| 5 |
+
i can eat glass, and it doesn't hurt me. i can eat glass, and it doesn't hurt me.
|
| 6 |
+
V PNA RNG TYNFF, NAQ VG QBRFA'G UHEG ZR. V PNA RNG TYNFF, NAQ VG QBRFA'G UHEG ZR.
|
| 7 |
+
PASS
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/bench.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"output","Output":"goos: darwin\n"}
|
| 3 |
+
{"Action":"output","Output":"goarch: 386\n"}
|
| 4 |
+
{"Action":"output","Output":"BenchmarkFoo-8 \t2000000000\t 0.00 ns/op\n"}
|
| 5 |
+
{"Action":"output","Test":"BenchmarkFoo-8","Output":"--- BENCH: BenchmarkFoo-8\n"}
|
| 6 |
+
{"Action":"output","Test":"BenchmarkFoo-8","Output":"\tx_test.go:8: My benchmark\n"}
|
| 7 |
+
{"Action":"output","Test":"BenchmarkFoo-8","Output":"\tx_test.go:8: My benchmark\n"}
|
| 8 |
+
{"Action":"output","Test":"BenchmarkFoo-8","Output":"\tx_test.go:8: My benchmark\n"}
|
| 9 |
+
{"Action":"output","Test":"BenchmarkFoo-8","Output":"\tx_test.go:8: My benchmark\n"}
|
| 10 |
+
{"Action":"output","Test":"BenchmarkFoo-8","Output":"\tx_test.go:8: My benchmark\n"}
|
| 11 |
+
{"Action":"output","Test":"BenchmarkFoo-8","Output":"\tx_test.go:8: My benchmark\n"}
|
| 12 |
+
{"Action":"bench","Test":"BenchmarkFoo-8"}
|
| 13 |
+
{"Action":"output","Output":"PASS\n"}
|
| 14 |
+
{"Action":"output","Output":"ok \tcommand-line-arguments\t0.009s\n"}
|
| 15 |
+
{"Action":"pass"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/bench.test
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
goos: darwin
|
| 2 |
+
goarch: 386
|
| 3 |
+
BenchmarkFoo-8 2000000000 0.00 ns/op
|
| 4 |
+
--- BENCH: BenchmarkFoo-8
|
| 5 |
+
x_test.go:8: My benchmark
|
| 6 |
+
x_test.go:8: My benchmark
|
| 7 |
+
x_test.go:8: My benchmark
|
| 8 |
+
x_test.go:8: My benchmark
|
| 9 |
+
x_test.go:8: My benchmark
|
| 10 |
+
x_test.go:8: My benchmark
|
| 11 |
+
PASS
|
| 12 |
+
ok command-line-arguments 0.009s
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/benchfail.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"output","Test":"BenchmarkFoo","Output":"--- FAIL: BenchmarkFoo\n"}
|
| 3 |
+
{"Action":"output","Test":"BenchmarkFoo","Output":"\tx_test.go:8: My benchmark\n"}
|
| 4 |
+
{"Action":"fail","Test":"BenchmarkFoo"}
|
| 5 |
+
{"Action":"output","Output":"FAIL\n"}
|
| 6 |
+
{"Action":"output","Output":"FAIL\tcommand-line-arguments\t0.008s\n"}
|
| 7 |
+
{"Action":"fail"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/benchfail.test
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
--- FAIL: BenchmarkFoo
|
| 2 |
+
x_test.go:8: My benchmark
|
| 3 |
+
FAIL
|
| 4 |
+
FAIL command-line-arguments 0.008s
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/benchshort.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"output","Output":"# This file ends in an early EOF to trigger the Benchmark prefix test,\n"}
|
| 3 |
+
{"Action":"output","Output":"# which only happens when a benchmark prefix is seen ahead of the \\n.\n"}
|
| 4 |
+
{"Action":"output","Output":"# Normally that's due to the benchmark running and the \\n coming later,\n"}
|
| 5 |
+
{"Action":"output","Output":"# but to avoid questions of timing, we just use a file with no \\n at all.\n"}
|
| 6 |
+
{"Action":"output","Output":"BenchmarkFoo \t"}
|
| 7 |
+
{"Action":"output","Output":"10000 early EOF"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/benchshort.test
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file ends in an early EOF to trigger the Benchmark prefix test,
|
| 2 |
+
# which only happens when a benchmark prefix is seen ahead of the \n.
|
| 3 |
+
# Normally that's due to the benchmark running and the \n coming later,
|
| 4 |
+
# but to avoid questions of timing, we just use a file with no \n at all.
|
| 5 |
+
BenchmarkFoo 10000 early EOF
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/empty.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/empty.test
ADDED
|
File without changes
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/frame.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"run","Test":"TestAscii"}
|
| 3 |
+
{"Action":"output","Test":"TestAscii","Output":"=== RUN TestAscii\n"}
|
| 4 |
+
{"Action":"output","Test":"TestAscii","Output":"=== RUN TestNotReally\n"}
|
| 5 |
+
{"Action":"output","Test":"TestAscii","Output":"--- PASS: TestAscii\n"}
|
| 6 |
+
{"Action":"output","Test":"TestAscii","Output":" i can eat glass, and it doesn't hurt me. i can eat glass, and it doesn't hurt me.\n"}
|
| 7 |
+
{"Action":"output","Test":"TestAscii","Output":"FAIL\n"}
|
| 8 |
+
{"Action":"pass","Test":"TestAscii"}
|
| 9 |
+
{"Action":"output","Output":"PASS\n"}
|
| 10 |
+
{"Action":"pass"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/frame.test
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=== RUN TestAscii
|
| 2 |
+
=== RUN TestNotReally
|
| 3 |
+
--- PASS: TestAscii
|
| 4 |
+
i can eat glass, and it doesn't hurt me. i can eat glass, and it doesn't hurt me.
|
| 5 |
+
FAIL
|
| 6 |
+
PASS
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/framebig.json
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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test":"TestIndex","Output":"--- PASS: TestIndex (0.00s)\n"}
|
| 5 |
+
{"Action":"pass","Test":"TestIndex"}
|
| 6 |
+
{"Action":"pass","Test":"TestIndex"}
|
| 7 |
+
{"Action":"output","Test":"TestIndex","Output":"=== PASS TestIndex\n"}
|
| 8 |
+
{"Action":"run","Test":"TestLastIndex"}
|
| 9 |
+
{"Action":"output","Test":"TestLastIndex","Output":"=== RUN TestLastIndex\n"}
|
| 10 |
+
{"Action":"output","Test":"TestLastIndex","Output":"--- PASS: TestLastIndex (0.00s)\n"}
|
| 11 |
+
{"Action":"pass","Test":"TestLastIndex"}
|
| 12 |
+
{"Action":"pass","Test":"TestLastIndex"}
|
| 13 |
+
{"Action":"output","Test":"TestLastIndex","Output":"=== PASS TestLastIndex\n"}
|
| 14 |
+
{"Action":"run","Test":"TestIndexAny"}
|
| 15 |
+
{"Action":"output","Test":"TestIndexAny","Output":"=== RUN TestIndexAny\n"}
|
| 16 |
+
{"Action":"output","Test":"TestIndexAny","Output":"--- PASS: TestIndexAny (0.00s)\n"}
|
| 17 |
+
{"Action":"pass","Test":"TestIndexAny"}
|
| 18 |
+
{"Action":"pass","Test":"TestIndexAny"}
|
| 19 |
+
{"Action":"output","Test":"TestIndexAny","Output":"=== PASS TestIndexAny\n"}
|
| 20 |
+
{"Action":"run","Test":"TestLastIndexAny"}
|
| 21 |
+
{"Action":"output","Test":"TestLastIndexAny","Output":"=== RUN TestLastIndexAny\n"}
|
| 22 |
+
{"Action":"output","Test":"TestLastIndexAny","Output":"--- PASS: TestLastIndexAny (0.00s)\n"}
|
| 23 |
+
{"Action":"pass","Test":"TestLastIndexAny"}
|
| 24 |
+
{"Action":"pass","Test":"TestLastIndexAny"}
|
| 25 |
+
{"Action":"output","Test":"TestLastIndexAny","Output":"=== PASS TestLastIndexAny\n"}
|
| 26 |
+
{"Action":"run","Test":"TestIndexByte"}
|
| 27 |
+
{"Action":"output","Test":"TestIndexByte","Output":"=== RUN TestIndexByte\n"}
|
| 28 |
+
{"Action":"output","Test":"TestIndexByte","Output":"--- PASS: TestIndexByte (0.00s)\n"}
|
| 29 |
+
{"Action":"pass","Test":"TestIndexByte"}
|
| 30 |
+
{"Action":"pass","Test":"TestIndexByte"}
|
| 31 |
+
{"Action":"output","Test":"TestIndexByte","Output":"=== PASS TestIndexByte\n"}
|
| 32 |
+
{"Action":"run","Test":"TestLastIndexByte"}
|
| 33 |
+
{"Action":"output","Test":"TestLastIndexByte","Output":"=== RUN TestLastIndexByte\n"}
|
| 34 |
+
{"Action":"output","Test":"TestLastIndexByte","Output":"--- PASS: TestLastIndexByte (0.00s)\n"}
|
| 35 |
+
{"Action":"pass","Test":"TestLastIndexByte"}
|
| 36 |
+
{"Action":"pass","Test":"TestLastIndexByte"}
|
| 37 |
+
{"Action":"output","Test":"TestLastIndexByte","Output":"=== PASS TestLastIndexByte\n"}
|
| 38 |
+
{"Action":"run","Test":"TestIndexRandom"}
|
| 39 |
+
{"Action":"output","Test":"TestIndexRandom","Output":"=== RUN TestIndexRandom\n"}
|
| 40 |
+
{"Action":"output","Test":"TestIndexRandom","Output":"--- PASS: TestIndexRandom (0.00s)\n"}
|
| 41 |
+
{"Action":"pass","Test":"TestIndexRandom"}
|
| 42 |
+
{"Action":"pass","Test":"TestIndexRandom"}
|
| 43 |
+
{"Action":"output","Test":"TestIndexRandom","Output":"=== PASS TestIndexRandom\n"}
|
| 44 |
+
{"Action":"run","Test":"TestIndexRune"}
|
| 45 |
+
{"Action":"output","Test":"TestIndexRune","Output":"=== RUN TestIndexRune\n"}
|
| 46 |
+
{"Action":"output","Test":"TestIndexRune","Output":"--- PASS: TestIndexRune (0.00s)\n"}
|
| 47 |
+
{"Action":"pass","Test":"TestIndexRune"}
|
| 48 |
+
{"Action":"pass","Test":"TestIndexRune"}
|
| 49 |
+
{"Action":"output","Test":"TestIndexRune","Output":"=== PASS TestIndexRune\n"}
|
| 50 |
+
{"Action":"run","Test":"TestIndexFunc"}
|
| 51 |
+
{"Action":"output","Test":"TestIndexFunc","Output":"=== RUN TestIndexFunc\n"}
|
| 52 |
+
{"Action":"output","Test":"TestIndexFunc","Output":"--- PASS: TestIndexFunc (0.00s)\n"}
|
| 53 |
+
{"Action":"pass","Test":"TestIndexFunc"}
|
| 54 |
+
{"Action":"pass","Test":"TestIndexFunc"}
|
| 55 |
+
{"Action":"output","Test":"TestIndexFunc","Output":"=== PASS TestIndexFunc\n"}
|
| 56 |
+
{"Action":"run","Test":"ExampleIndex"}
|
| 57 |
+
{"Action":"output","Test":"ExampleIndex","Output":"=== RUN ExampleIndex\n"}
|
| 58 |
+
{"Action":"output","Test":"ExampleIndex","Output":"--- PASS: ExampleIndex (0.00s)\n"}
|
| 59 |
+
{"Action":"pass","Test":"ExampleIndex"}
|
| 60 |
+
{"Action":"run","Test":"ExampleIndexFunc"}
|
| 61 |
+
{"Action":"output","Test":"ExampleIndexFunc","Output":"=== RUN ExampleIndexFunc\n"}
|
| 62 |
+
{"Action":"output","Test":"ExampleIndexFunc","Output":"--- PASS: ExampleIndexFunc (0.00s)\n"}
|
| 63 |
+
{"Action":"pass","Test":"ExampleIndexFunc"}
|
| 64 |
+
{"Action":"run","Test":"ExampleIndexAny"}
|
| 65 |
+
{"Action":"output","Test":"ExampleIndexAny","Output":"=== RUN ExampleIndexAny\n"}
|
| 66 |
+
{"Action":"output","Test":"ExampleIndexAny","Output":"--- PASS: ExampleIndexAny (0.00s)\n"}
|
| 67 |
+
{"Action":"pass","Test":"ExampleIndexAny"}
|
| 68 |
+
{"Action":"run","Test":"ExampleIndexByte"}
|
| 69 |
+
{"Action":"output","Test":"ExampleIndexByte","Output":"=== RUN ExampleIndexByte\n"}
|
| 70 |
+
{"Action":"output","Test":"ExampleIndexByte","Output":"--- PASS: ExampleIndexByte (0.00s)\n"}
|
| 71 |
+
{"Action":"pass","Test":"ExampleIndexByte"}
|
| 72 |
+
{"Action":"run","Test":"ExampleIndexRune"}
|
| 73 |
+
{"Action":"output","Test":"ExampleIndexRune","Output":"=== RUN ExampleIndexRune\n"}
|
| 74 |
+
{"Action":"output","Test":"ExampleIndexRune","Output":"--- PASS: ExampleIndexRune (0.00s)\n"}
|
| 75 |
+
{"Action":"pass","Test":"ExampleIndexRune"}
|
| 76 |
+
{"Action":"run","Test":"ExampleLastIndex"}
|
| 77 |
+
{"Action":"output","Test":"ExampleLastIndex","Output":"=== RUN ExampleLastIndex\n"}
|
| 78 |
+
{"Action":"output","Test":"ExampleLastIndex","Output":"--- PASS: ExampleLastIndex (0.00s)\n"}
|
| 79 |
+
{"Action":"pass","Test":"ExampleLastIndex"}
|
| 80 |
+
{"Action":"run","Test":"ExampleLastIndexAny"}
|
| 81 |
+
{"Action":"output","Test":"ExampleLastIndexAny","Output":"=== RUN ExampleLastIndexAny\n"}
|
| 82 |
+
{"Action":"output","Test":"ExampleLastIndexAny","Output":"--- PASS: ExampleLastIndexAny (0.00s)\n"}
|
| 83 |
+
{"Action":"pass","Test":"ExampleLastIndexAny"}
|
| 84 |
+
{"Action":"run","Test":"ExampleLastIndexByte"}
|
| 85 |
+
{"Action":"output","Test":"ExampleLastIndexByte","Output":"=== RUN ExampleLastIndexByte\n"}
|
| 86 |
+
{"Action":"output","Test":"ExampleLastIndexByte","Output":"--- PASS: ExampleLastIndexByte (0.00s)\n"}
|
| 87 |
+
{"Action":"pass","Test":"ExampleLastIndexByte"}
|
| 88 |
+
{"Action":"run","Test":"ExampleLastIndexFunc"}
|
| 89 |
+
{"Action":"output","Test":"ExampleLastIndexFunc","Output":"=== RUN ExampleLastIndexFunc\n"}
|
| 90 |
+
{"Action":"output","Test":"ExampleLastIndexFunc","Output":"--- PASS: ExampleLastIndexFunc (0.00s)\n"}
|
| 91 |
+
{"Action":"pass","Test":"ExampleLastIndexFunc"}
|
| 92 |
+
{"Action":"output","Output":"goos: darwin\n"}
|
| 93 |
+
{"Action":"output","Output":"goarch: amd64\n"}
|
| 94 |
+
{"Action":"output","Output":"pkg: strings\n"}
|
| 95 |
+
{"Action":"output","Output":"cpu: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz\n"}
|
| 96 |
+
{"Action":"run","Test":"BenchmarkIndexRune"}
|
| 97 |
+
{"Action":"output","Test":"BenchmarkIndexRune","Output":"=== RUN BenchmarkIndexRune\n"}
|
| 98 |
+
{"Action":"output","Test":"BenchmarkIndexRune","Output":"BenchmarkIndexRune\n"}
|
| 99 |
+
{"Action":"output","Test":"BenchmarkIndexRune","Output":"BenchmarkIndexRune-16 \t87335496\t 14.27 ns/op\n"}
|
| 100 |
+
{"Action":"run","Test":"BenchmarkIndexRuneLongString"}
|
| 101 |
+
{"Action":"output","Test":"BenchmarkIndexRuneLongString","Output":"=== RUN BenchmarkIndexRuneLongString\n"}
|
| 102 |
+
{"Action":"output","Test":"BenchmarkIndexRuneLongString","Output":"BenchmarkIndexRuneLongString\n"}
|
| 103 |
+
{"Action":"output","Test":"BenchmarkIndexRuneLongString","Output":"BenchmarkIndexRuneLongString-16 \t57104472\t 18.66 ns/op\n"}
|
| 104 |
+
{"Action":"run","Test":"BenchmarkIndexRuneFastPath"}
|
| 105 |
+
{"Action":"output","Test":"BenchmarkIndexRuneFastPath","Output":"=== RUN BenchmarkIndexRuneFastPath\n"}
|
| 106 |
+
{"Action":"output","Test":"BenchmarkIndexRuneFastPath","Output":"BenchmarkIndexRuneFastPath\n"}
|
| 107 |
+
{"Action":"output","Test":"BenchmarkIndexRuneFastPath","Output":"BenchmarkIndexRuneFastPath-16 \t262380160\t 4.499 ns/op\n"}
|
| 108 |
+
{"Action":"run","Test":"BenchmarkIndex"}
|
| 109 |
+
{"Action":"output","Test":"BenchmarkIndex","Output":"=== RUN BenchmarkIndex\n"}
|
| 110 |
+
{"Action":"output","Test":"BenchmarkIndex","Output":"BenchmarkIndex\n"}
|
| 111 |
+
{"Action":"output","Test":"BenchmarkIndex","Output":"BenchmarkIndex-16 \t248529364\t 4.697 ns/op\n"}
|
| 112 |
+
{"Action":"run","Test":"BenchmarkLastIndex"}
|
| 113 |
+
{"Action":"output","Test":"BenchmarkLastIndex","Output":"=== RUN BenchmarkLastIndex\n"}
|
| 114 |
+
{"Action":"output","Test":"BenchmarkLastIndex","Output":"BenchmarkLastIndex\n"}
|
| 115 |
+
{"Action":"output","Test":"BenchmarkLastIndex","Output":"BenchmarkLastIndex-16 \t293688756\t 4.166 ns/op\n"}
|
| 116 |
+
{"Action":"run","Test":"BenchmarkIndexByte"}
|
| 117 |
+
{"Action":"output","Test":"BenchmarkIndexByte","Output":"=== RUN BenchmarkIndexByte\n"}
|
| 118 |
+
{"Action":"output","Test":"BenchmarkIndexByte","Output":"BenchmarkIndexByte\n"}
|
| 119 |
+
{"Action":"output","Test":"BenchmarkIndexByte","Output":"BenchmarkIndexByte-16 \t310338391\t 3.608 ns/op\n"}
|
| 120 |
+
{"Action":"run","Test":"BenchmarkIndexHard1"}
|
| 121 |
+
{"Action":"output","Test":"BenchmarkIndexHard1","Output":"=== RUN BenchmarkIndexHard1\n"}
|
| 122 |
+
{"Action":"output","Test":"BenchmarkIndexHard1","Output":"BenchmarkIndexHard1\n"}
|
| 123 |
+
{"Action":"output","Test":"BenchmarkIndexHard1","Output":"BenchmarkIndexHard1-16 \t 12852\t 92380 ns/op\n"}
|
| 124 |
+
{"Action":"run","Test":"BenchmarkIndexHard2"}
|
| 125 |
+
{"Action":"output","Test":"BenchmarkIndexHard2","Output":"=== RUN BenchmarkIndexHard2\n"}
|
| 126 |
+
{"Action":"output","Test":"BenchmarkIndexHard2","Output":"BenchmarkIndexHard2\n"}
|
| 127 |
+
{"Action":"output","Test":"BenchmarkIndexHard2","Output":"BenchmarkIndexHard2-16 \t 8977\t 135080 ns/op\n"}
|
| 128 |
+
{"Action":"run","Test":"BenchmarkIndexHard3"}
|
| 129 |
+
{"Action":"output","Test":"BenchmarkIndexHard3","Output":"=== RUN BenchmarkIndexHard3\n"}
|
| 130 |
+
{"Action":"output","Test":"BenchmarkIndexHard3","Output":"BenchmarkIndexHard3\n"}
|
| 131 |
+
{"Action":"output","Test":"BenchmarkIndexHard3","Output":"BenchmarkIndexHard3-16 \t 1885\t 532079 ns/op\n"}
|
| 132 |
+
{"Action":"run","Test":"BenchmarkIndexHard4"}
|
| 133 |
+
{"Action":"output","Test":"BenchmarkIndexHard4","Output":"=== RUN BenchmarkIndexHard4\n"}
|
| 134 |
+
{"Action":"output","Test":"BenchmarkIndexHard4","Output":"BenchmarkIndexHard4\n"}
|
| 135 |
+
{"Action":"output","Test":"BenchmarkIndexHard4","Output":"BenchmarkIndexHard4-16 \t 2298\t 533435 ns/op\n"}
|
| 136 |
+
{"Action":"run","Test":"BenchmarkLastIndexHard1"}
|
| 137 |
+
{"Action":"output","Test":"BenchmarkLastIndexHard1","Output":"=== RUN BenchmarkLastIndexHard1\n"}
|
| 138 |
+
{"Action":"output","Test":"BenchmarkLastIndexHard1","Output":"BenchmarkLastIndexHard1\n"}
|
| 139 |
+
{"Action":"output","Test":"BenchmarkLastIndexHard1","Output":"BenchmarkLastIndexHard1-16 \t 813\t 1295767 ns/op\n"}
|
| 140 |
+
{"Action":"run","Test":"BenchmarkLastIndexHard2"}
|
| 141 |
+
{"Action":"output","Test":"BenchmarkLastIndexHard2","Output":"=== RUN BenchmarkLastIndexHard2\n"}
|
| 142 |
+
{"Action":"output","Test":"BenchmarkLastIndexHard2","Output":"BenchmarkLastIndexHard2\n"}
|
| 143 |
+
{"Action":"output","Test":"BenchmarkLastIndexHard2","Output":"BenchmarkLastIndexHard2-16 \t 784\t 1389403 ns/op\n"}
|
| 144 |
+
{"Action":"run","Test":"BenchmarkLastIndexHard3"}
|
| 145 |
+
{"Action":"output","Test":"BenchmarkLastIndexHard3","Output":"=== RUN BenchmarkLastIndexHard3\n"}
|
| 146 |
+
{"Action":"output","Test":"BenchmarkLastIndexHard3","Output":"BenchmarkLastIndexHard3\n"}
|
| 147 |
+
{"Action":"output","Test":"BenchmarkLastIndexHard3","Output":"BenchmarkLastIndexHard3-16 \t 913\t 1316608 ns/op\n"}
|
| 148 |
+
{"Action":"run","Test":"BenchmarkIndexTorture"}
|
| 149 |
+
{"Action":"output","Test":"BenchmarkIndexTorture","Output":"=== RUN BenchmarkIndexTorture\n"}
|
| 150 |
+
{"Action":"output","Test":"BenchmarkIndexTorture","Output":"BenchmarkIndexTorture\n"}
|
| 151 |
+
{"Action":"output","Test":"BenchmarkIndexTorture","Output":"BenchmarkIndexTorture-16 \t 98090\t 10201 ns/op\n"}
|
| 152 |
+
{"Action":"run","Test":"BenchmarkIndexAnyASCII"}
|
| 153 |
+
{"Action":"output","Test":"BenchmarkIndexAnyASCII","Output":"=== RUN BenchmarkIndexAnyASCII\n"}
|
| 154 |
+
{"Action":"output","Test":"BenchmarkIndexAnyASCII","Output":"BenchmarkIndexAnyASCII\n"}
|
| 155 |
+
{"Action":"run","Test":"BenchmarkIndexAnyASCII/1:1"}
|
| 156 |
+
{"Action":"output","Test":"BenchmarkIndexAnyASCII/1:1","Output":"=== RUN BenchmarkIndexAnyASCII/1:1\n"}
|
| 157 |
+
{"Action":"output","Test":"BenchmarkIndexAnyASCII/1:1","Output":"BenchmarkIndexAnyASCII/1:1\n"}
|
| 158 |
+
{"Action":"output","Test":"BenchmarkIndexAnyASCII/1:1","Output":"BenchmarkIndexAnyASCII/1:1-16 \t214829462\t 5.592 ns/op\n"}
|
| 159 |
+
{"Action":"run","Test":"BenchmarkIndexAnyASCII/1:2"}
|
| 160 |
+
{"Action":"output","Test":"BenchmarkIndexAnyASCII/1:2","Output":"=== RUN BenchmarkIndexAnyASCII/1:2\n"}
|
| 161 |
+
{"Action":"output","Test":"BenchmarkIndexAnyASCII/1:2","Output":"BenchmarkIndexAnyASCII/1:2\n"}
|
| 162 |
+
{"Action":"output","Test":"BenchmarkIndexAnyASCII/1:2","Output":"BenchmarkIndexAnyASCII/1:2-16 \t155499682\t 7.214 ns/op\n"}
|
| 163 |
+
{"Action":"run","Test":"BenchmarkIndexAnyASCII/1:4"}
|
| 164 |
+
{"Action":"output","Test":"BenchmarkIndexAnyASCII/1:4","Output":"=== RUN BenchmarkIndexAnyASCII/1:4\n"}
|
| 165 |
+
{"Action":"output","Test":"BenchmarkIndexAnyASCII/1:4","Output":"BenchmarkIndexAnyASCII/1:4\n"}
|
| 166 |
+
{"Action":"output","Test":"BenchmarkIndexAnyASCII/1:4","Output":"BenchmarkIndexAnyASCII/1:4-16 \t172757770\t 7.092 ns/op\n"}
|
| 167 |
+
{"Action":"output","Output":"PASS\n"}
|
| 168 |
+
{"Action":"pass"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/framebig.test
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=== RUN TestIndex
|
| 2 |
+
--- PASS: TestIndex (0.00s)
|
| 3 |
+
=== PASS TestIndex
|
| 4 |
+
=== NAME
|
| 5 |
+
=== RUN TestLastIndex
|
| 6 |
+
--- PASS: TestLastIndex (0.00s)
|
| 7 |
+
=== PASS TestLastIndex
|
| 8 |
+
=== NAME
|
| 9 |
+
=== RUN TestIndexAny
|
| 10 |
+
--- PASS: TestIndexAny (0.00s)
|
| 11 |
+
=== PASS TestIndexAny
|
| 12 |
+
=== NAME
|
| 13 |
+
=== RUN TestLastIndexAny
|
| 14 |
+
--- PASS: TestLastIndexAny (0.00s)
|
| 15 |
+
=== PASS TestLastIndexAny
|
| 16 |
+
=== NAME
|
| 17 |
+
=== RUN TestIndexByte
|
| 18 |
+
--- PASS: TestIndexByte (0.00s)
|
| 19 |
+
=== PASS TestIndexByte
|
| 20 |
+
=== NAME
|
| 21 |
+
=== RUN TestLastIndexByte
|
| 22 |
+
--- PASS: TestLastIndexByte (0.00s)
|
| 23 |
+
=== PASS TestLastIndexByte
|
| 24 |
+
=== NAME
|
| 25 |
+
=== RUN TestIndexRandom
|
| 26 |
+
--- PASS: TestIndexRandom (0.00s)
|
| 27 |
+
=== PASS TestIndexRandom
|
| 28 |
+
=== NAME
|
| 29 |
+
=== RUN TestIndexRune
|
| 30 |
+
--- PASS: TestIndexRune (0.00s)
|
| 31 |
+
=== PASS TestIndexRune
|
| 32 |
+
=== NAME
|
| 33 |
+
=== RUN TestIndexFunc
|
| 34 |
+
--- PASS: TestIndexFunc (0.00s)
|
| 35 |
+
=== PASS TestIndexFunc
|
| 36 |
+
=== NAME
|
| 37 |
+
=== RUN ExampleIndex
|
| 38 |
+
--- PASS: ExampleIndex (0.00s)
|
| 39 |
+
=== NAME
|
| 40 |
+
=== RUN ExampleIndexFunc
|
| 41 |
+
--- PASS: ExampleIndexFunc (0.00s)
|
| 42 |
+
=== NAME
|
| 43 |
+
=== RUN ExampleIndexAny
|
| 44 |
+
--- PASS: ExampleIndexAny (0.00s)
|
| 45 |
+
=== NAME
|
| 46 |
+
=== RUN ExampleIndexByte
|
| 47 |
+
--- PASS: ExampleIndexByte (0.00s)
|
| 48 |
+
=== NAME
|
| 49 |
+
=== RUN ExampleIndexRune
|
| 50 |
+
--- PASS: ExampleIndexRune (0.00s)
|
| 51 |
+
=== NAME
|
| 52 |
+
=== RUN ExampleLastIndex
|
| 53 |
+
--- PASS: ExampleLastIndex (0.00s)
|
| 54 |
+
=== NAME
|
| 55 |
+
=== RUN ExampleLastIndexAny
|
| 56 |
+
--- PASS: ExampleLastIndexAny (0.00s)
|
| 57 |
+
=== NAME
|
| 58 |
+
=== RUN ExampleLastIndexByte
|
| 59 |
+
--- PASS: ExampleLastIndexByte (0.00s)
|
| 60 |
+
=== NAME
|
| 61 |
+
=== RUN ExampleLastIndexFunc
|
| 62 |
+
--- PASS: ExampleLastIndexFunc (0.00s)
|
| 63 |
+
=== NAME
|
| 64 |
+
goos: darwin
|
| 65 |
+
goarch: amd64
|
| 66 |
+
pkg: strings
|
| 67 |
+
cpu: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
|
| 68 |
+
=== RUN BenchmarkIndexRune
|
| 69 |
+
BenchmarkIndexRune
|
| 70 |
+
BenchmarkIndexRune-16 87335496 14.27 ns/op
|
| 71 |
+
=== NAME
|
| 72 |
+
=== RUN BenchmarkIndexRuneLongString
|
| 73 |
+
BenchmarkIndexRuneLongString
|
| 74 |
+
BenchmarkIndexRuneLongString-16 57104472 18.66 ns/op
|
| 75 |
+
=== NAME
|
| 76 |
+
=== RUN BenchmarkIndexRuneFastPath
|
| 77 |
+
BenchmarkIndexRuneFastPath
|
| 78 |
+
BenchmarkIndexRuneFastPath-16 262380160 4.499 ns/op
|
| 79 |
+
=== NAME
|
| 80 |
+
=== RUN BenchmarkIndex
|
| 81 |
+
BenchmarkIndex
|
| 82 |
+
BenchmarkIndex-16 248529364 4.697 ns/op
|
| 83 |
+
=== NAME
|
| 84 |
+
=== RUN BenchmarkLastIndex
|
| 85 |
+
BenchmarkLastIndex
|
| 86 |
+
BenchmarkLastIndex-16 293688756 4.166 ns/op
|
| 87 |
+
=== NAME
|
| 88 |
+
=== RUN BenchmarkIndexByte
|
| 89 |
+
BenchmarkIndexByte
|
| 90 |
+
BenchmarkIndexByte-16 310338391 3.608 ns/op
|
| 91 |
+
=== NAME
|
| 92 |
+
=== RUN BenchmarkIndexHard1
|
| 93 |
+
BenchmarkIndexHard1
|
| 94 |
+
BenchmarkIndexHard1-16 12852 92380 ns/op
|
| 95 |
+
=== NAME
|
| 96 |
+
=== RUN BenchmarkIndexHard2
|
| 97 |
+
BenchmarkIndexHard2
|
| 98 |
+
BenchmarkIndexHard2-16 8977 135080 ns/op
|
| 99 |
+
=== NAME
|
| 100 |
+
=== RUN BenchmarkIndexHard3
|
| 101 |
+
BenchmarkIndexHard3
|
| 102 |
+
BenchmarkIndexHard3-16 1885 532079 ns/op
|
| 103 |
+
=== NAME
|
| 104 |
+
=== RUN BenchmarkIndexHard4
|
| 105 |
+
BenchmarkIndexHard4
|
| 106 |
+
BenchmarkIndexHard4-16 2298 533435 ns/op
|
| 107 |
+
=== NAME
|
| 108 |
+
=== RUN BenchmarkLastIndexHard1
|
| 109 |
+
BenchmarkLastIndexHard1
|
| 110 |
+
BenchmarkLastIndexHard1-16 813 1295767 ns/op
|
| 111 |
+
=== NAME
|
| 112 |
+
=== RUN BenchmarkLastIndexHard2
|
| 113 |
+
BenchmarkLastIndexHard2
|
| 114 |
+
BenchmarkLastIndexHard2-16 784 1389403 ns/op
|
| 115 |
+
=== NAME
|
| 116 |
+
=== RUN BenchmarkLastIndexHard3
|
| 117 |
+
BenchmarkLastIndexHard3
|
| 118 |
+
BenchmarkLastIndexHard3-16 913 1316608 ns/op
|
| 119 |
+
=== NAME
|
| 120 |
+
=== RUN BenchmarkIndexTorture
|
| 121 |
+
BenchmarkIndexTorture
|
| 122 |
+
BenchmarkIndexTorture-16 98090 10201 ns/op
|
| 123 |
+
=== NAME
|
| 124 |
+
=== RUN BenchmarkIndexAnyASCII
|
| 125 |
+
BenchmarkIndexAnyASCII
|
| 126 |
+
=== RUN BenchmarkIndexAnyASCII/1:1
|
| 127 |
+
BenchmarkIndexAnyASCII/1:1
|
| 128 |
+
BenchmarkIndexAnyASCII/1:1-16 214829462 5.592 ns/op
|
| 129 |
+
=== NAME
|
| 130 |
+
=== RUN BenchmarkIndexAnyASCII/1:2
|
| 131 |
+
BenchmarkIndexAnyASCII/1:2
|
| 132 |
+
BenchmarkIndexAnyASCII/1:2-16 155499682 7.214 ns/op
|
| 133 |
+
=== NAME
|
| 134 |
+
=== RUN BenchmarkIndexAnyASCII/1:4
|
| 135 |
+
BenchmarkIndexAnyASCII/1:4
|
| 136 |
+
BenchmarkIndexAnyASCII/1:4-16 172757770 7.092 ns/op
|
| 137 |
+
=== NAME
|
| 138 |
+
PASS
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/framefuzz.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"run","Test":"TestAddrStringAllocs"}
|
| 3 |
+
{"Action":"output","Test":"TestAddrStringAllocs","Output":"=== RUN TestAddrStringAllocs\n"}
|
| 4 |
+
{"Action":"run","Test":"TestAddrStringAllocs/zero"}
|
| 5 |
+
{"Action":"output","Test":"TestAddrStringAllocs/zero","Output":"=== RUN TestAddrStringAllocs/zero\n"}
|
| 6 |
+
{"Action":"run","Test":"TestAddrStringAllocs/ipv4"}
|
| 7 |
+
{"Action":"output","Test":"TestAddrStringAllocs/ipv4","Output":"=== RUN TestAddrStringAllocs/ipv4\n"}
|
| 8 |
+
{"Action":"run","Test":"TestAddrStringAllocs/ipv6"}
|
| 9 |
+
{"Action":"output","Test":"TestAddrStringAllocs/ipv6","Output":"=== RUN TestAddrStringAllocs/ipv6\n"}
|
| 10 |
+
{"Action":"run","Test":"TestAddrStringAllocs/ipv6+zone"}
|
| 11 |
+
{"Action":"output","Test":"TestAddrStringAllocs/ipv6+zone","Output":"=== RUN TestAddrStringAllocs/ipv6+zone\n"}
|
| 12 |
+
{"Action":"run","Test":"TestAddrStringAllocs/ipv4-in-ipv6"}
|
| 13 |
+
{"Action":"output","Test":"TestAddrStringAllocs/ipv4-in-ipv6","Output":"=== RUN TestAddrStringAllocs/ipv4-in-ipv6\n"}
|
| 14 |
+
{"Action":"run","Test":"TestAddrStringAllocs/ipv4-in-ipv6+zone"}
|
| 15 |
+
{"Action":"output","Test":"TestAddrStringAllocs/ipv4-in-ipv6+zone","Output":"=== RUN TestAddrStringAllocs/ipv4-in-ipv6+zone\n"}
|
| 16 |
+
{"Action":"output","Test":"TestAddrStringAllocs","Output":"--- PASS: TestAddrStringAllocs (0.00s)\n"}
|
| 17 |
+
{"Action":"output","Test":"TestAddrStringAllocs/zero","Output":" --- PASS: TestAddrStringAllocs/zero (0.00s)\n"}
|
| 18 |
+
{"Action":"pass","Test":"TestAddrStringAllocs/zero"}
|
| 19 |
+
{"Action":"output","Test":"TestAddrStringAllocs/ipv4","Output":" --- PASS: TestAddrStringAllocs/ipv4 (0.00s)\n"}
|
| 20 |
+
{"Action":"pass","Test":"TestAddrStringAllocs/ipv4"}
|
| 21 |
+
{"Action":"output","Test":"TestAddrStringAllocs/ipv6","Output":" --- PASS: TestAddrStringAllocs/ipv6 (0.00s)\n"}
|
| 22 |
+
{"Action":"pass","Test":"TestAddrStringAllocs/ipv6"}
|
| 23 |
+
{"Action":"output","Test":"TestAddrStringAllocs/ipv6+zone","Output":" --- PASS: TestAddrStringAllocs/ipv6+zone (0.00s)\n"}
|
| 24 |
+
{"Action":"pass","Test":"TestAddrStringAllocs/ipv6+zone"}
|
| 25 |
+
{"Action":"output","Test":"TestAddrStringAllocs/ipv4-in-ipv6","Output":" --- PASS: TestAddrStringAllocs/ipv4-in-ipv6 (0.00s)\n"}
|
| 26 |
+
{"Action":"pass","Test":"TestAddrStringAllocs/ipv4-in-ipv6"}
|
| 27 |
+
{"Action":"output","Test":"TestAddrStringAllocs/ipv4-in-ipv6+zone","Output":" --- PASS: TestAddrStringAllocs/ipv4-in-ipv6+zone (0.00s)\n"}
|
| 28 |
+
{"Action":"pass","Test":"TestAddrStringAllocs/ipv4-in-ipv6+zone"}
|
| 29 |
+
{"Action":"pass","Test":"TestAddrStringAllocs"}
|
| 30 |
+
{"Action":"run","Test":"TestPrefixString"}
|
| 31 |
+
{"Action":"output","Test":"TestPrefixString","Output":"=== RUN TestPrefixString\n"}
|
| 32 |
+
{"Action":"output","Test":"TestPrefixString","Output":"--- PASS: TestPrefixString (0.00s)\n"}
|
| 33 |
+
{"Action":"pass","Test":"TestPrefixString"}
|
| 34 |
+
{"Action":"run","Test":"TestInvalidAddrPortString"}
|
| 35 |
+
{"Action":"output","Test":"TestInvalidAddrPortString","Output":"=== RUN TestInvalidAddrPortString\n"}
|
| 36 |
+
{"Action":"output","Test":"TestInvalidAddrPortString","Output":"--- PASS: TestInvalidAddrPortString (0.00s)\n"}
|
| 37 |
+
{"Action":"pass","Test":"TestInvalidAddrPortString"}
|
| 38 |
+
{"Action":"run","Test":"TestAsSlice"}
|
| 39 |
+
{"Action":"output","Test":"TestAsSlice","Output":"=== RUN TestAsSlice\n"}
|
| 40 |
+
{"Action":"output","Test":"TestAsSlice","Output":"--- PASS: TestAsSlice (0.00s)\n"}
|
| 41 |
+
{"Action":"pass","Test":"TestAsSlice"}
|
| 42 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"Addr.string4\"\n"}
|
| 43 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"Prefix.isZero\"\n"}
|
| 44 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"IPv4Unspecified\"\n"}
|
| 45 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"joinHostPort\"\n"}
|
| 46 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"Addr.MarshalBinary\"\n"}
|
| 47 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"bePutUint64\"\n"}
|
| 48 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"mask6\"\n"}
|
| 49 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"AddrPort.isZero\"\n"}
|
| 50 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"stringsLastIndexByte\"\n"}
|
| 51 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"Addr.isZero\"\n"}
|
| 52 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"bePutUint32\"\n"}
|
| 53 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"leUint16\"\n"}
|
| 54 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"Addr.string6\"\n"}
|
| 55 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"beUint64\"\n"}
|
| 56 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"appendHexPad\"\n"}
|
| 57 |
+
{"Action":"output","Test":"TestInlining","Output":" inlining_test.go:102: not in expected set, but also inlinable: \"lePutUint16\"\n"}
|
| 58 |
+
{"Action":"output","Test":"TestInlining","Output":"--- PASS: TestInlining (0.10s)\n"}
|
| 59 |
+
{"Action":"pass","Test":"TestInlining"}
|
| 60 |
+
{"Action":"run","Test":"FuzzParse"}
|
| 61 |
+
{"Action":"output","Test":"FuzzParse","Output":"=== RUN FuzzParse\n"}
|
| 62 |
+
{"Action":"output","Test":"FuzzParse","Output":"fuzz: elapsed: 0s, gathering baseline coverage: 0/390 completed\n"}
|
| 63 |
+
{"Action":"output","Test":"FuzzParse","Output":"fuzz: elapsed: 0s, gathering baseline coverage: 390/390 completed, now fuzzing with 16 workers\n"}
|
| 64 |
+
{"Action":"output","Test":"FuzzParse","Output":"fuzz: elapsed: 3s, execs: 438666 (146173/sec), new interesting: 12 (total: 402)\n"}
|
| 65 |
+
{"Action":"output","Test":"FuzzParse","Output":"\u0003fuzz: elapsed: 4s, execs: 558467 (147850/sec), new interesting: 15 (total: 405)\n"}
|
| 66 |
+
{"Action":"output","Test":"FuzzParse","Output":"--- PASS: FuzzParse (3.85s)\n"}
|
| 67 |
+
{"Action":"pass","Test":"FuzzParse"}
|
| 68 |
+
{"Action":"output","Output":"PASS\n"}
|
| 69 |
+
{"Action":"pass"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/framefuzz.test
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=== RUN TestAddrStringAllocs
|
| 2 |
+
=== RUN TestAddrStringAllocs/zero
|
| 3 |
+
=== NAME TestAddrStringAllocs
|
| 4 |
+
=== RUN TestAddrStringAllocs/ipv4
|
| 5 |
+
=== NAME TestAddrStringAllocs
|
| 6 |
+
=== RUN TestAddrStringAllocs/ipv6
|
| 7 |
+
=== NAME TestAddrStringAllocs
|
| 8 |
+
=== RUN TestAddrStringAllocs/ipv6+zone
|
| 9 |
+
=== NAME TestAddrStringAllocs
|
| 10 |
+
=== RUN TestAddrStringAllocs/ipv4-in-ipv6
|
| 11 |
+
=== NAME TestAddrStringAllocs
|
| 12 |
+
=== RUN TestAddrStringAllocs/ipv4-in-ipv6+zone
|
| 13 |
+
=== NAME TestAddrStringAllocs
|
| 14 |
+
--- PASS: TestAddrStringAllocs (0.00s)
|
| 15 |
+
--- PASS: TestAddrStringAllocs/zero (0.00s)
|
| 16 |
+
--- PASS: TestAddrStringAllocs/ipv4 (0.00s)
|
| 17 |
+
--- PASS: TestAddrStringAllocs/ipv6 (0.00s)
|
| 18 |
+
--- PASS: TestAddrStringAllocs/ipv6+zone (0.00s)
|
| 19 |
+
--- PASS: TestAddrStringAllocs/ipv4-in-ipv6 (0.00s)
|
| 20 |
+
--- PASS: TestAddrStringAllocs/ipv4-in-ipv6+zone (0.00s)
|
| 21 |
+
=== NAME
|
| 22 |
+
=== RUN TestPrefixString
|
| 23 |
+
--- PASS: TestPrefixString (0.00s)
|
| 24 |
+
=== NAME
|
| 25 |
+
=== RUN TestInvalidAddrPortString
|
| 26 |
+
--- PASS: TestInvalidAddrPortString (0.00s)
|
| 27 |
+
=== NAME
|
| 28 |
+
=== RUN TestAsSlice
|
| 29 |
+
--- PASS: TestAsSlice (0.00s)
|
| 30 |
+
=== NAME
|
| 31 |
+
=== NAME TestInlining
|
| 32 |
+
inlining_test.go:102: not in expected set, but also inlinable: "Addr.string4"
|
| 33 |
+
inlining_test.go:102: not in expected set, but also inlinable: "Prefix.isZero"
|
| 34 |
+
inlining_test.go:102: not in expected set, but also inlinable: "IPv4Unspecified"
|
| 35 |
+
inlining_test.go:102: not in expected set, but also inlinable: "joinHostPort"
|
| 36 |
+
inlining_test.go:102: not in expected set, but also inlinable: "Addr.MarshalBinary"
|
| 37 |
+
inlining_test.go:102: not in expected set, but also inlinable: "bePutUint64"
|
| 38 |
+
inlining_test.go:102: not in expected set, but also inlinable: "mask6"
|
| 39 |
+
inlining_test.go:102: not in expected set, but also inlinable: "AddrPort.isZero"
|
| 40 |
+
inlining_test.go:102: not in expected set, but also inlinable: "stringsLastIndexByte"
|
| 41 |
+
inlining_test.go:102: not in expected set, but also inlinable: "Addr.isZero"
|
| 42 |
+
inlining_test.go:102: not in expected set, but also inlinable: "bePutUint32"
|
| 43 |
+
inlining_test.go:102: not in expected set, but also inlinable: "leUint16"
|
| 44 |
+
inlining_test.go:102: not in expected set, but also inlinable: "Addr.string6"
|
| 45 |
+
inlining_test.go:102: not in expected set, but also inlinable: "beUint64"
|
| 46 |
+
inlining_test.go:102: not in expected set, but also inlinable: "appendHexPad"
|
| 47 |
+
inlining_test.go:102: not in expected set, but also inlinable: "lePutUint16"
|
| 48 |
+
--- PASS: TestInlining (0.10s)
|
| 49 |
+
=== RUN FuzzParse
|
| 50 |
+
fuzz: elapsed: 0s, gathering baseline coverage: 0/390 completed
|
| 51 |
+
fuzz: elapsed: 0s, gathering baseline coverage: 390/390 completed, now fuzzing with 16 workers
|
| 52 |
+
fuzz: elapsed: 3s, execs: 438666 (146173/sec), new interesting: 12 (total: 402)
|
| 53 |
+
fuzz: elapsed: 4s, execs: 558467 (147850/sec), new interesting: 15 (total: 405)
|
| 54 |
+
--- PASS: FuzzParse (3.85s)
|
| 55 |
+
=== NAME
|
| 56 |
+
PASS
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue23036.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"run","Test":"TestActualCase"}
|
| 3 |
+
{"Action":"output","Test":"TestActualCase","Output":"=== RUN TestActualCase\n"}
|
| 4 |
+
{"Action":"output","Test":"TestActualCase","Output":"--- FAIL: TestActualCase (0.00s)\n"}
|
| 5 |
+
{"Action":"output","Test":"TestActualCase","Output":" foo_test.go:14: Differed.\n"}
|
| 6 |
+
{"Action":"output","Test":"TestActualCase","Output":" Expected: MyTest:\n"}
|
| 7 |
+
{"Action":"output","Test":"TestActualCase","Output":" --- FAIL: Test output from other tool\n"}
|
| 8 |
+
{"Action":"output","Test":"TestActualCase","Output":" Actual: not expected\n"}
|
| 9 |
+
{"Action":"fail","Test":"TestActualCase"}
|
| 10 |
+
{"Action":"output","Output":"FAIL\n"}
|
| 11 |
+
{"Action":"output","Output":"exit status 1\n"}
|
| 12 |
+
{"Action":"output","Output":"FAIL github.com/org/project/badtest 0.049s\n"}
|
| 13 |
+
{"Action":"fail"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue23036.test
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=== RUN TestActualCase
|
| 2 |
+
--- FAIL: TestActualCase (0.00s)
|
| 3 |
+
foo_test.go:14: Differed.
|
| 4 |
+
Expected: MyTest:
|
| 5 |
+
--- FAIL: Test output from other tool
|
| 6 |
+
Actual: not expected
|
| 7 |
+
FAIL
|
| 8 |
+
exit status 1
|
| 9 |
+
FAIL github.com/org/project/badtest 0.049s
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue23920.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"run","Test":"TestWithColons"}
|
| 3 |
+
{"Action":"output","Test":"TestWithColons","Output":"=== RUN TestWithColons\n"}
|
| 4 |
+
{"Action":"run","Test":"TestWithColons/[::1]"}
|
| 5 |
+
{"Action":"output","Test":"TestWithColons/[::1]","Output":"=== RUN TestWithColons/[::1]\n"}
|
| 6 |
+
{"Action":"run","Test":"TestWithColons/127.0.0.1:0"}
|
| 7 |
+
{"Action":"output","Test":"TestWithColons/127.0.0.1:0","Output":"=== RUN TestWithColons/127.0.0.1:0\n"}
|
| 8 |
+
{"Action":"output","Test":"TestWithColons","Output":"--- PASS: TestWithColons (0.00s)\n"}
|
| 9 |
+
{"Action":"output","Test":"TestWithColons/[::1]","Output":" --- PASS: TestWithColons/[::1] (0.00s)\n"}
|
| 10 |
+
{"Action":"pass","Test":"TestWithColons/[::1]"}
|
| 11 |
+
{"Action":"output","Test":"TestWithColons/127.0.0.1:0","Output":" --- PASS: TestWithColons/127.0.0.1:0 (0.00s)\n"}
|
| 12 |
+
{"Action":"pass","Test":"TestWithColons/127.0.0.1:0"}
|
| 13 |
+
{"Action":"pass","Test":"TestWithColons"}
|
| 14 |
+
{"Action":"output","Output":"PASS\n"}
|
| 15 |
+
{"Action":"pass"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue23920.test
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=== RUN TestWithColons
|
| 2 |
+
=== RUN TestWithColons/[::1]
|
| 3 |
+
=== RUN TestWithColons/127.0.0.1:0
|
| 4 |
+
--- PASS: TestWithColons (0.00s)
|
| 5 |
+
--- PASS: TestWithColons/[::1] (0.00s)
|
| 6 |
+
--- PASS: TestWithColons/127.0.0.1:0 (0.00s)
|
| 7 |
+
PASS
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue29755.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"run","Test":"TestOutputWithSubtest"}
|
| 3 |
+
{"Action":"output","Test":"TestOutputWithSubtest","Output":"=== RUN TestOutputWithSubtest\n"}
|
| 4 |
+
{"Action":"run","Test":"TestOutputWithSubtest/sub_test"}
|
| 5 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test","Output":"=== RUN TestOutputWithSubtest/sub_test\n"}
|
| 6 |
+
{"Action":"run","Test":"TestOutputWithSubtest/sub_test/sub2"}
|
| 7 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test/sub2","Output":"=== RUN TestOutputWithSubtest/sub_test/sub2\n"}
|
| 8 |
+
{"Action":"run","Test":"TestOutputWithSubtest/sub_test2"}
|
| 9 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test2","Output":"=== RUN TestOutputWithSubtest/sub_test2\n"}
|
| 10 |
+
{"Action":"run","Test":"TestOutputWithSubtest/sub_test2/sub2"}
|
| 11 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test2/sub2","Output":"=== RUN TestOutputWithSubtest/sub_test2/sub2\n"}
|
| 12 |
+
{"Action":"output","Test":"TestOutputWithSubtest","Output":"--- FAIL: TestOutputWithSubtest (0.00s)\n"}
|
| 13 |
+
{"Action":"output","Test":"TestOutputWithSubtest","Output":" foo_test.go:6: output before sub tests\n"}
|
| 14 |
+
{"Action":"output","Test":"TestOutputWithSubtest","Output":" foo_test.go:10: output from root test\n"}
|
| 15 |
+
{"Action":"output","Test":"TestOutputWithSubtest","Output":" foo_test.go:15: output from root test\n"}
|
| 16 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test","Output":" --- PASS: TestOutputWithSubtest/sub_test (0.00s)\n"}
|
| 17 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test","Output":" foo_test.go:9: output from sub test\n"}
|
| 18 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test","Output":" foo_test.go:11: more output from sub test\n"}
|
| 19 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test","Output":" foo_test.go:16: more output from sub test\n"}
|
| 20 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test/sub2","Output":" --- PASS: TestOutputWithSubtest/sub_test/sub2 (0.00s)\n"}
|
| 21 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test/sub2","Output":" foo_test.go:14: output from sub2 test\n"}
|
| 22 |
+
{"Action":"output","Test":"TestOutputWithSubtest","Output":" foo_test.go:22: output from root test\n"}
|
| 23 |
+
{"Action":"output","Test":"TestOutputWithSubtest","Output":" foo_test.go:27: output from root test\n"}
|
| 24 |
+
{"Action":"pass","Test":"TestOutputWithSubtest/sub_test/sub2"}
|
| 25 |
+
{"Action":"pass","Test":"TestOutputWithSubtest/sub_test"}
|
| 26 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test2","Output":" --- PASS: TestOutputWithSubtest/sub_test2 (0.00s)\n"}
|
| 27 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test2","Output":" foo_test.go:21: output from sub test2\n"}
|
| 28 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test2","Output":" foo_test.go:23: more output from sub test2\n"}
|
| 29 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test2","Output":" foo_test.go:28: more output from sub test2\n"}
|
| 30 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test2/sub2","Output":" --- PASS: TestOutputWithSubtest/sub_test2/sub2 (0.00s)\n"}
|
| 31 |
+
{"Action":"output","Test":"TestOutputWithSubtest/sub_test2/sub2","Output":" foo_test.go:26: output from sub2 test\n"}
|
| 32 |
+
{"Action":"output","Test":"TestOutputWithSubtest","Output":" foo_test.go:32: output after sub test\n"}
|
| 33 |
+
{"Action":"pass","Test":"TestOutputWithSubtest/sub_test2/sub2"}
|
| 34 |
+
{"Action":"pass","Test":"TestOutputWithSubtest/sub_test2"}
|
| 35 |
+
{"Action":"fail","Test":"TestOutputWithSubtest"}
|
| 36 |
+
{"Action":"output","Output":"FAIL\n"}
|
| 37 |
+
{"Action":"output","Output":"FAIL\tgotest.tools/gotestsum/foo\t0.001s\n"}
|
| 38 |
+
{"Action":"output","Output":"FAIL\n"}
|
| 39 |
+
{"Action":"fail"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/issue29755.test
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=== RUN TestOutputWithSubtest
|
| 2 |
+
=== RUN TestOutputWithSubtest/sub_test
|
| 3 |
+
=== RUN TestOutputWithSubtest/sub_test/sub2
|
| 4 |
+
=== RUN TestOutputWithSubtest/sub_test2
|
| 5 |
+
=== RUN TestOutputWithSubtest/sub_test2/sub2
|
| 6 |
+
--- FAIL: TestOutputWithSubtest (0.00s)
|
| 7 |
+
foo_test.go:6: output before sub tests
|
| 8 |
+
foo_test.go:10: output from root test
|
| 9 |
+
foo_test.go:15: output from root test
|
| 10 |
+
--- PASS: TestOutputWithSubtest/sub_test (0.00s)
|
| 11 |
+
foo_test.go:9: output from sub test
|
| 12 |
+
foo_test.go:11: more output from sub test
|
| 13 |
+
foo_test.go:16: more output from sub test
|
| 14 |
+
--- PASS: TestOutputWithSubtest/sub_test/sub2 (0.00s)
|
| 15 |
+
foo_test.go:14: output from sub2 test
|
| 16 |
+
foo_test.go:22: output from root test
|
| 17 |
+
foo_test.go:27: output from root test
|
| 18 |
+
--- PASS: TestOutputWithSubtest/sub_test2 (0.00s)
|
| 19 |
+
foo_test.go:21: output from sub test2
|
| 20 |
+
foo_test.go:23: more output from sub test2
|
| 21 |
+
foo_test.go:28: more output from sub test2
|
| 22 |
+
--- PASS: TestOutputWithSubtest/sub_test2/sub2 (0.00s)
|
| 23 |
+
foo_test.go:26: output from sub2 test
|
| 24 |
+
foo_test.go:32: output after sub test
|
| 25 |
+
FAIL
|
| 26 |
+
FAIL gotest.tools/gotestsum/foo 0.001s
|
| 27 |
+
FAIL
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/panic.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"output","Test":"TestPanic","Output":"--- FAIL: TestPanic (0.00s)\n"}
|
| 3 |
+
{"Action":"output","Test":"TestPanic","Output":"panic: oops [recovered]\n"}
|
| 4 |
+
{"Action":"output","Test":"TestPanic","Output":"\tpanic: oops\n"}
|
| 5 |
+
{"Action":"output","Test":"TestPanic","Output":"\n"}
|
| 6 |
+
{"Action":"output","Test":"TestPanic","Output":"goroutine 7 [running]:\n"}
|
| 7 |
+
{"Action":"output","Test":"TestPanic","Output":"testing.tRunner.func1(0xc000092100)\n"}
|
| 8 |
+
{"Action":"output","Test":"TestPanic","Output":"\t/go/src/testing/testing.go:874 +0x3a3\n"}
|
| 9 |
+
{"Action":"output","Test":"TestPanic","Output":"panic(0x1110ea0, 0x116aea0)\n"}
|
| 10 |
+
{"Action":"output","Test":"TestPanic","Output":"\t/go/src/runtime/panic.go:679 +0x1b2\n"}
|
| 11 |
+
{"Action":"output","Test":"TestPanic","Output":"command-line-arguments.TestPanic(0xc000092100)\n"}
|
| 12 |
+
{"Action":"output","Test":"TestPanic","Output":"\ta_test.go:6 +0x39\n"}
|
| 13 |
+
{"Action":"output","Test":"TestPanic","Output":"testing.tRunner(0xc000092100, 0x114f500)\n"}
|
| 14 |
+
{"Action":"output","Test":"TestPanic","Output":"\tgo/src/testing/testing.go:909 +0xc9\n"}
|
| 15 |
+
{"Action":"output","Test":"TestPanic","Output":"created by testing.(*T).Run\n"}
|
| 16 |
+
{"Action":"output","Test":"TestPanic","Output":"\tgo/src/testing/testing.go:960 +0x350\n"}
|
| 17 |
+
{"Action":"fail","Test":"TestPanic"}
|
| 18 |
+
{"Action":"output","Output":"FAIL\tcommand-line-arguments\t0.042s\n"}
|
| 19 |
+
{"Action":"output","Output":"FAIL\n"}
|
| 20 |
+
{"Action":"fail"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/panic.test
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
--- FAIL: TestPanic (0.00s)
|
| 2 |
+
panic: oops [recovered]
|
| 3 |
+
panic: oops
|
| 4 |
+
|
| 5 |
+
goroutine 7 [running]:
|
| 6 |
+
testing.tRunner.func1(0xc000092100)
|
| 7 |
+
/go/src/testing/testing.go:874 +0x3a3
|
| 8 |
+
panic(0x1110ea0, 0x116aea0)
|
| 9 |
+
/go/src/runtime/panic.go:679 +0x1b2
|
| 10 |
+
command-line-arguments.TestPanic(0xc000092100)
|
| 11 |
+
a_test.go:6 +0x39
|
| 12 |
+
testing.tRunner(0xc000092100, 0x114f500)
|
| 13 |
+
go/src/testing/testing.go:909 +0xc9
|
| 14 |
+
created by testing.(*T).Run
|
| 15 |
+
go/src/testing/testing.go:960 +0x350
|
| 16 |
+
FAIL command-line-arguments 0.042s
|
| 17 |
+
FAIL
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/smiley.json
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"run","Test":"Test☺☹"}
|
| 3 |
+
{"Action":"output","Test":"Test☺☹","Output":"=== RUN Test☺☹\n"}
|
| 4 |
+
{"Action":"output","Test":"Test☺☹","Output":"=== PAUSE Test☺☹\n"}
|
| 5 |
+
{"Action":"pause","Test":"Test☺☹"}
|
| 6 |
+
{"Action":"run","Test":"Test☺☹Asm"}
|
| 7 |
+
{"Action":"output","Test":"Test☺☹Asm","Output":"=== RUN Test☺☹Asm\n"}
|
| 8 |
+
{"Action":"output","Test":"Test☺☹Asm","Output":"=== PAUSE Test☺☹Asm\n"}
|
| 9 |
+
{"Action":"pause","Test":"Test☺☹Asm"}
|
| 10 |
+
{"Action":"run","Test":"Test☺☹Dirs"}
|
| 11 |
+
{"Action":"output","Test":"Test☺☹Dirs","Output":"=== RUN Test☺☹Dirs\n"}
|
| 12 |
+
{"Action":"output","Test":"Test☺☹Dirs","Output":"=== PAUSE Test☺☹Dirs\n"}
|
| 13 |
+
{"Action":"pause","Test":"Test☺☹Dirs"}
|
| 14 |
+
{"Action":"run","Test":"TestTags"}
|
| 15 |
+
{"Action":"output","Test":"TestTags","Output":"=== RUN TestTags\n"}
|
| 16 |
+
{"Action":"output","Test":"TestTags","Output":"=== PAUSE TestTags\n"}
|
| 17 |
+
{"Action":"pause","Test":"TestTags"}
|
| 18 |
+
{"Action":"run","Test":"Test☺☹Verbose"}
|
| 19 |
+
{"Action":"output","Test":"Test☺☹Verbose","Output":"=== RUN Test☺☹Verbose\n"}
|
| 20 |
+
{"Action":"output","Test":"Test☺☹Verbose","Output":"=== PAUSE Test☺☹Verbose\n"}
|
| 21 |
+
{"Action":"pause","Test":"Test☺☹Verbose"}
|
| 22 |
+
{"Action":"cont","Test":"Test☺☹"}
|
| 23 |
+
{"Action":"output","Test":"Test☺☹","Output":"=== CONT Test☺☹\n"}
|
| 24 |
+
{"Action":"cont","Test":"TestTags"}
|
| 25 |
+
{"Action":"output","Test":"TestTags","Output":"=== CONT TestTags\n"}
|
| 26 |
+
{"Action":"cont","Test":"Test☺☹Verbose"}
|
| 27 |
+
{"Action":"output","Test":"Test☺☹Verbose","Output":"=== CONT Test☺☹Verbose\n"}
|
| 28 |
+
{"Action":"run","Test":"TestTags/testtag"}
|
| 29 |
+
{"Action":"output","Test":"TestTags/testtag","Output":"=== RUN TestTags/testtag\n"}
|
| 30 |
+
{"Action":"output","Test":"TestTags/testtag","Output":"=== PAUSE TestTags/testtag\n"}
|
| 31 |
+
{"Action":"pause","Test":"TestTags/testtag"}
|
| 32 |
+
{"Action":"cont","Test":"Test☺☹Dirs"}
|
| 33 |
+
{"Action":"output","Test":"Test☺☹Dirs","Output":"=== CONT Test☺☹Dirs\n"}
|
| 34 |
+
{"Action":"cont","Test":"Test☺☹Asm"}
|
| 35 |
+
{"Action":"output","Test":"Test☺☹Asm","Output":"=== CONT Test☺☹Asm\n"}
|
| 36 |
+
{"Action":"run","Test":"Test☺☹/0"}
|
| 37 |
+
{"Action":"output","Test":"Test☺☹/0","Output":"=== RUN Test☺☹/0\n"}
|
| 38 |
+
{"Action":"output","Test":"Test☺☹/0","Output":"=== PAUSE Test☺☹/0\n"}
|
| 39 |
+
{"Action":"pause","Test":"Test☺☹/0"}
|
| 40 |
+
{"Action":"run","Test":"Test☺☹/1"}
|
| 41 |
+
{"Action":"output","Test":"Test☺☹/1","Output":"=== RUN Test☺☹/1\n"}
|
| 42 |
+
{"Action":"output","Test":"Test☺☹/1","Output":"=== PAUSE Test☺☹/1\n"}
|
| 43 |
+
{"Action":"pause","Test":"Test☺☹/1"}
|
| 44 |
+
{"Action":"run","Test":"Test☺☹/2"}
|
| 45 |
+
{"Action":"output","Test":"Test☺☹/2","Output":"=== RUN Test☺☹/2\n"}
|
| 46 |
+
{"Action":"output","Test":"Test☺☹/2","Output":"=== PAUSE Test☺☹/2\n"}
|
| 47 |
+
{"Action":"pause","Test":"Test☺☹/2"}
|
| 48 |
+
{"Action":"run","Test":"Test☺☹/3"}
|
| 49 |
+
{"Action":"output","Test":"Test☺☹/3","Output":"=== RUN Test☺☹/3\n"}
|
| 50 |
+
{"Action":"output","Test":"Test☺☹/3","Output":"=== PAUSE Test☺☹/3\n"}
|
| 51 |
+
{"Action":"pause","Test":"Test☺☹/3"}
|
| 52 |
+
{"Action":"run","Test":"Test☺☹/4"}
|
| 53 |
+
{"Action":"output","Test":"Test☺☹/4","Output":"=== RUN Test☺☹/4\n"}
|
| 54 |
+
{"Action":"run","Test":"TestTags/x_testtag_y"}
|
| 55 |
+
{"Action":"output","Test":"TestTags/x_testtag_y","Output":"=== RUN TestTags/x_testtag_y\n"}
|
| 56 |
+
{"Action":"output","Test":"Test☺☹/4","Output":"=== PAUSE Test☺☹/4\n"}
|
| 57 |
+
{"Action":"pause","Test":"Test☺☹/4"}
|
| 58 |
+
{"Action":"run","Test":"Test☺☹/5"}
|
| 59 |
+
{"Action":"output","Test":"Test☺☹/5","Output":"=== RUN Test☺☹/5\n"}
|
| 60 |
+
{"Action":"output","Test":"Test☺☹/5","Output":"=== PAUSE Test☺☹/5\n"}
|
| 61 |
+
{"Action":"pause","Test":"Test☺☹/5"}
|
| 62 |
+
{"Action":"output","Test":"TestTags/x_testtag_y","Output":"=== PAUSE TestTags/x_testtag_y\n"}
|
| 63 |
+
{"Action":"pause","Test":"TestTags/x_testtag_y"}
|
| 64 |
+
{"Action":"run","Test":"Test☺☹/6"}
|
| 65 |
+
{"Action":"output","Test":"Test☺☹/6","Output":"=== RUN Test☺☹/6\n"}
|
| 66 |
+
{"Action":"run","Test":"TestTags/x,testtag,y"}
|
| 67 |
+
{"Action":"output","Test":"TestTags/x,testtag,y","Output":"=== RUN TestTags/x,testtag,y\n"}
|
| 68 |
+
{"Action":"output","Test":"TestTags/x,testtag,y","Output":"=== PAUSE TestTags/x,testtag,y\n"}
|
| 69 |
+
{"Action":"pause","Test":"TestTags/x,testtag,y"}
|
| 70 |
+
{"Action":"run","Test":"Test☺☹Dirs/testingpkg"}
|
| 71 |
+
{"Action":"output","Test":"Test☺☹Dirs/testingpkg","Output":"=== RUN Test☺☹Dirs/testingpkg\n"}
|
| 72 |
+
{"Action":"output","Test":"Test☺☹/6","Output":"=== PAUSE Test☺☹/6\n"}
|
| 73 |
+
{"Action":"pause","Test":"Test☺☹/6"}
|
| 74 |
+
{"Action":"cont","Test":"TestTags/x,testtag,y"}
|
| 75 |
+
{"Action":"output","Test":"TestTags/x,testtag,y","Output":"=== CONT TestTags/x,testtag,y\n"}
|
| 76 |
+
{"Action":"output","Test":"Test☺☹Dirs/testingpkg","Output":"=== PAUSE Test☺☹Dirs/testingpkg\n"}
|
| 77 |
+
{"Action":"pause","Test":"Test☺☹Dirs/testingpkg"}
|
| 78 |
+
{"Action":"run","Test":"Test☺☹Dirs/divergent"}
|
| 79 |
+
{"Action":"output","Test":"Test☺☹Dirs/divergent","Output":"=== RUN Test☺☹Dirs/divergent\n"}
|
| 80 |
+
{"Action":"run","Test":"Test☺☹/7"}
|
| 81 |
+
{"Action":"output","Test":"Test☺☹/7","Output":"=== RUN Test☺☹/7\n"}
|
| 82 |
+
{"Action":"output","Test":"Test☺☹/7","Output":"=== PAUSE Test☺☹/7\n"}
|
| 83 |
+
{"Action":"pause","Test":"Test☺☹/7"}
|
| 84 |
+
{"Action":"output","Test":"Test☺☹Dirs/divergent","Output":"=== PAUSE Test☺☹Dirs/divergent\n"}
|
| 85 |
+
{"Action":"pause","Test":"Test☺☹Dirs/divergent"}
|
| 86 |
+
{"Action":"cont","Test":"TestTags/x_testtag_y"}
|
| 87 |
+
{"Action":"output","Test":"TestTags/x_testtag_y","Output":"=== CONT TestTags/x_testtag_y\n"}
|
| 88 |
+
{"Action":"cont","Test":"TestTags/testtag"}
|
| 89 |
+
{"Action":"output","Test":"TestTags/testtag","Output":"=== CONT TestTags/testtag\n"}
|
| 90 |
+
{"Action":"run","Test":"Test☺☹Dirs/buildtag"}
|
| 91 |
+
{"Action":"output","Test":"Test☺☹Dirs/buildtag","Output":"=== RUN Test☺☹Dirs/buildtag\n"}
|
| 92 |
+
{"Action":"output","Test":"Test☺☹Dirs/buildtag","Output":"=== PAUSE Test☺☹Dirs/buildtag\n"}
|
| 93 |
+
{"Action":"pause","Test":"Test☺☹Dirs/buildtag"}
|
| 94 |
+
{"Action":"cont","Test":"Test☺☹/0"}
|
| 95 |
+
{"Action":"output","Test":"Test☺☹/0","Output":"=== CONT Test☺☹/0\n"}
|
| 96 |
+
{"Action":"cont","Test":"Test☺☹/4"}
|
| 97 |
+
{"Action":"output","Test":"Test☺☹/4","Output":"=== CONT Test☺☹/4\n"}
|
| 98 |
+
{"Action":"run","Test":"Test☺☹Dirs/incomplete"}
|
| 99 |
+
{"Action":"output","Test":"Test☺☹Dirs/incomplete","Output":"=== RUN Test☺☹Dirs/incomplete\n"}
|
| 100 |
+
{"Action":"output","Test":"Test☺☹Dirs/incomplete","Output":"=== PAUSE Test☺☹Dirs/incomplete\n"}
|
| 101 |
+
{"Action":"pause","Test":"Test☺☹Dirs/incomplete"}
|
| 102 |
+
{"Action":"run","Test":"Test☺☹Dirs/cgo"}
|
| 103 |
+
{"Action":"output","Test":"Test☺☹Dirs/cgo","Output":"=== RUN Test☺☹Dirs/cgo\n"}
|
| 104 |
+
{"Action":"output","Test":"Test☺☹Dirs/cgo","Output":"=== PAUSE Test☺☹Dirs/cgo\n"}
|
| 105 |
+
{"Action":"pause","Test":"Test☺☹Dirs/cgo"}
|
| 106 |
+
{"Action":"cont","Test":"Test☺☹/7"}
|
| 107 |
+
{"Action":"output","Test":"Test☺☹/7","Output":"=== CONT Test☺☹/7\n"}
|
| 108 |
+
{"Action":"cont","Test":"Test☺☹/6"}
|
| 109 |
+
{"Action":"output","Test":"Test☺☹/6","Output":"=== CONT Test☺☹/6\n"}
|
| 110 |
+
{"Action":"output","Test":"Test☺☹Verbose","Output":"--- PASS: Test☺☹Verbose (0.04s)\n"}
|
| 111 |
+
{"Action":"pass","Test":"Test☺☹Verbose"}
|
| 112 |
+
{"Action":"cont","Test":"Test☺☹/5"}
|
| 113 |
+
{"Action":"output","Test":"Test☺☹/5","Output":"=== CONT Test☺☹/5\n"}
|
| 114 |
+
{"Action":"cont","Test":"Test☺☹/3"}
|
| 115 |
+
{"Action":"output","Test":"Test☺☹/3","Output":"=== CONT Test☺☹/3\n"}
|
| 116 |
+
{"Action":"cont","Test":"Test☺☹/2"}
|
| 117 |
+
{"Action":"output","Test":"Test☺☹/2","Output":"=== CONT Test☺☹/2\n"}
|
| 118 |
+
{"Action":"output","Test":"TestTags","Output":"--- PASS: TestTags (0.00s)\n"}
|
| 119 |
+
{"Action":"output","Test":"TestTags/x_testtag_y","Output":" --- PASS: TestTags/x_testtag_y (0.04s)\n"}
|
| 120 |
+
{"Action":"output","Test":"TestTags/x_testtag_y","Output":" vet_test.go:187: -tags=x testtag y\n"}
|
| 121 |
+
{"Action":"pass","Test":"TestTags/x_testtag_y"}
|
| 122 |
+
{"Action":"output","Test":"TestTags/x,testtag,y","Output":" --- PASS: TestTags/x,testtag,y (0.04s)\n"}
|
| 123 |
+
{"Action":"output","Test":"TestTags/x,testtag,y","Output":" vet_test.go:187: -tags=x,testtag,y\n"}
|
| 124 |
+
{"Action":"pass","Test":"TestTags/x,testtag,y"}
|
| 125 |
+
{"Action":"output","Test":"TestTags/testtag","Output":" --- PASS: TestTags/testtag (0.04s)\n"}
|
| 126 |
+
{"Action":"output","Test":"TestTags/testtag","Output":" vet_test.go:187: -tags=testtag\n"}
|
| 127 |
+
{"Action":"pass","Test":"TestTags/testtag"}
|
| 128 |
+
{"Action":"pass","Test":"TestTags"}
|
| 129 |
+
{"Action":"cont","Test":"Test☺☹/1"}
|
| 130 |
+
{"Action":"output","Test":"Test☺☹/1","Output":"=== CONT Test☺☹/1\n"}
|
| 131 |
+
{"Action":"cont","Test":"Test☺☹Dirs/testingpkg"}
|
| 132 |
+
{"Action":"output","Test":"Test☺☹Dirs/testingpkg","Output":"=== CONT Test☺☹Dirs/testingpkg\n"}
|
| 133 |
+
{"Action":"cont","Test":"Test☺☹Dirs/buildtag"}
|
| 134 |
+
{"Action":"output","Test":"Test☺☹Dirs/buildtag","Output":"=== CONT Test☺☹Dirs/buildtag\n"}
|
| 135 |
+
{"Action":"cont","Test":"Test☺☹Dirs/divergent"}
|
| 136 |
+
{"Action":"output","Test":"Test☺☹Dirs/divergent","Output":"=== CONT Test☺☹Dirs/divergent\n"}
|
| 137 |
+
{"Action":"cont","Test":"Test☺☹Dirs/incomplete"}
|
| 138 |
+
{"Action":"output","Test":"Test☺☹Dirs/incomplete","Output":"=== CONT Test☺☹Dirs/incomplete\n"}
|
| 139 |
+
{"Action":"cont","Test":"Test☺☹Dirs/cgo"}
|
| 140 |
+
{"Action":"output","Test":"Test☺☹Dirs/cgo","Output":"=== CONT Test☺☹Dirs/cgo\n"}
|
| 141 |
+
{"Action":"output","Test":"Test☺☹","Output":"--- PASS: Test☺☹ (0.39s)\n"}
|
| 142 |
+
{"Action":"output","Test":"Test☺☹/5","Output":" --- PASS: Test☺☹/5 (0.07s)\n"}
|
| 143 |
+
{"Action":"output","Test":"Test☺☹/5","Output":" vet_test.go:114: φιλεσ: [\"testdata/copylock_func.go\" \"testdata/rangeloop.go\"]\n"}
|
| 144 |
+
{"Action":"pass","Test":"Test☺☹/5"}
|
| 145 |
+
{"Action":"output","Test":"Test☺☹/3","Output":" --- PASS: Test☺☹/3 (0.07s)\n"}
|
| 146 |
+
{"Action":"output","Test":"Test☺☹/3","Output":" vet_test.go:114: φιλεσ: [\"testdata/composite.go\" \"testdata/nilfunc.go\"]\n"}
|
| 147 |
+
{"Action":"pass","Test":"Test☺☹/3"}
|
| 148 |
+
{"Action":"output","Test":"Test☺☹/6","Output":" --- PASS: Test☺☹/6 (0.07s)\n"}
|
| 149 |
+
{"Action":"output","Test":"Test☺☹/6","Output":" vet_test.go:114: φιλεσ: [\"testdata/copylock_range.go\" \"testdata/shadow.go\"]\n"}
|
| 150 |
+
{"Action":"pass","Test":"Test☺☹/6"}
|
| 151 |
+
{"Action":"output","Test":"Test☺☹/2","Output":" --- PASS: Test☺☹/2 (0.07s)\n"}
|
| 152 |
+
{"Action":"output","Test":"Test☺☹/2","Output":" vet_test.go:114: φιλεσ: [\"testdata/bool.go\" \"testdata/method.go\" \"testdata/unused.go\"]\n"}
|
| 153 |
+
{"Action":"pass","Test":"Test☺☹/2"}
|
| 154 |
+
{"Action":"output","Test":"Test☺☹/0","Output":" --- PASS: Test☺☹/0 (0.13s)\n"}
|
| 155 |
+
{"Action":"output","Test":"Test☺☹/0","Output":" vet_test.go:114: φιλεσ: [\"testdata/assign.go\" \"testdata/httpresponse.go\" \"testdata/structtag.go\"]\n"}
|
| 156 |
+
{"Action":"pass","Test":"Test☺☹/0"}
|
| 157 |
+
{"Action":"output","Test":"Test☺☹/4","Output":" --- PASS: Test☺☹/4 (0.16s)\n"}
|
| 158 |
+
{"Action":"output","Test":"Test☺☹/4","Output":" vet_test.go:114: φιλεσ: [\"testdata/copylock.go\" \"testdata/print.go\"]\n"}
|
| 159 |
+
{"Action":"pass","Test":"Test☺☹/4"}
|
| 160 |
+
{"Action":"output","Test":"Test☺☹/1","Output":" --- PASS: Test☺☹/1 (0.07s)\n"}
|
| 161 |
+
{"Action":"output","Test":"Test☺☹/1","Output":" vet_test.go:114: φιλεσ: [\"testdata/atomic.go\" \"testdata/lostcancel.go\" \"testdata/unsafeptr.go\"]\n"}
|
| 162 |
+
{"Action":"pass","Test":"Test☺☹/1"}
|
| 163 |
+
{"Action":"output","Test":"Test☺☹/7","Output":" --- PASS: Test☺☹/7 (0.19s)\n"}
|
| 164 |
+
{"Action":"output","Test":"Test☺☹/7","Output":" vet_test.go:114: φιλεσ: [\"testdata/deadcode.go\" \"testdata/shift.go\"]\n"}
|
| 165 |
+
{"Action":"pass","Test":"Test☺☹/7"}
|
| 166 |
+
{"Action":"pass","Test":"Test☺☹"}
|
| 167 |
+
{"Action":"output","Test":"Test☺☹Dirs","Output":"--- PASS: Test☺☹Dirs (0.01s)\n"}
|
| 168 |
+
{"Action":"output","Test":"Test☺☹Dirs/testingpkg","Output":" --- PASS: Test☺☹Dirs/testingpkg (0.06s)\n"}
|
| 169 |
+
{"Action":"pass","Test":"Test☺☹Dirs/testingpkg"}
|
| 170 |
+
{"Action":"output","Test":"Test☺☹Dirs/divergent","Output":" --- PASS: Test☺☹Dirs/divergent (0.05s)\n"}
|
| 171 |
+
{"Action":"pass","Test":"Test☺☹Dirs/divergent"}
|
| 172 |
+
{"Action":"output","Test":"Test☺☹Dirs/buildtag","Output":" --- PASS: Test☺☹Dirs/buildtag (0.06s)\n"}
|
| 173 |
+
{"Action":"pass","Test":"Test☺☹Dirs/buildtag"}
|
| 174 |
+
{"Action":"output","Test":"Test☺☹Dirs/incomplete","Output":" --- PASS: Test☺☹Dirs/incomplete (0.05s)\n"}
|
| 175 |
+
{"Action":"pass","Test":"Test☺☹Dirs/incomplete"}
|
| 176 |
+
{"Action":"output","Test":"Test☺☹Dirs/cgo","Output":" --- PASS: Test☺☹Dirs/cgo (0.04s)\n"}
|
| 177 |
+
{"Action":"pass","Test":"Test☺☹Dirs/cgo"}
|
| 178 |
+
{"Action":"pass","Test":"Test☺☹Dirs"}
|
| 179 |
+
{"Action":"output","Test":"Test☺☹Asm","Output":"--- PASS: Test☺☹Asm (0.75s)\n"}
|
| 180 |
+
{"Action":"pass","Test":"Test☺☹Asm"}
|
| 181 |
+
{"Action":"output","Output":"PASS\n"}
|
| 182 |
+
{"Action":"output","Output":"ok \tcmd/vet\t(cached)\n"}
|
| 183 |
+
{"Action":"pass"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/smiley.test
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=== RUN Test☺☹
|
| 2 |
+
=== PAUSE Test☺☹
|
| 3 |
+
=== RUN Test☺☹Asm
|
| 4 |
+
=== PAUSE Test☺☹Asm
|
| 5 |
+
=== RUN Test☺☹Dirs
|
| 6 |
+
=== PAUSE Test☺☹Dirs
|
| 7 |
+
=== RUN TestTags
|
| 8 |
+
=== PAUSE TestTags
|
| 9 |
+
=== RUN Test☺☹Verbose
|
| 10 |
+
=== PAUSE Test☺☹Verbose
|
| 11 |
+
=== CONT Test☺☹
|
| 12 |
+
=== CONT TestTags
|
| 13 |
+
=== CONT Test☺☹Verbose
|
| 14 |
+
=== RUN TestTags/testtag
|
| 15 |
+
=== PAUSE TestTags/testtag
|
| 16 |
+
=== CONT Test☺☹Dirs
|
| 17 |
+
=== CONT Test☺☹Asm
|
| 18 |
+
=== RUN Test☺☹/0
|
| 19 |
+
=== PAUSE Test☺☹/0
|
| 20 |
+
=== RUN Test☺☹/1
|
| 21 |
+
=== PAUSE Test☺☹/1
|
| 22 |
+
=== RUN Test☺☹/2
|
| 23 |
+
=== PAUSE Test☺☹/2
|
| 24 |
+
=== RUN Test☺☹/3
|
| 25 |
+
=== PAUSE Test☺☹/3
|
| 26 |
+
=== RUN Test☺☹/4
|
| 27 |
+
=== RUN TestTags/x_testtag_y
|
| 28 |
+
=== PAUSE Test☺☹/4
|
| 29 |
+
=== RUN Test☺☹/5
|
| 30 |
+
=== PAUSE Test☺☹/5
|
| 31 |
+
=== PAUSE TestTags/x_testtag_y
|
| 32 |
+
=== RUN Test☺☹/6
|
| 33 |
+
=== RUN TestTags/x,testtag,y
|
| 34 |
+
=== PAUSE TestTags/x,testtag,y
|
| 35 |
+
=== RUN Test☺☹Dirs/testingpkg
|
| 36 |
+
=== PAUSE Test☺☹/6
|
| 37 |
+
=== CONT TestTags/x,testtag,y
|
| 38 |
+
=== PAUSE Test☺☹Dirs/testingpkg
|
| 39 |
+
=== RUN Test☺☹Dirs/divergent
|
| 40 |
+
=== RUN Test☺☹/7
|
| 41 |
+
=== PAUSE Test☺☹/7
|
| 42 |
+
=== PAUSE Test☺☹Dirs/divergent
|
| 43 |
+
=== CONT TestTags/x_testtag_y
|
| 44 |
+
=== CONT TestTags/testtag
|
| 45 |
+
=== RUN Test☺☹Dirs/buildtag
|
| 46 |
+
=== PAUSE Test☺☹Dirs/buildtag
|
| 47 |
+
=== CONT Test☺☹/0
|
| 48 |
+
=== CONT Test☺☹/4
|
| 49 |
+
=== RUN Test☺☹Dirs/incomplete
|
| 50 |
+
=== PAUSE Test☺☹Dirs/incomplete
|
| 51 |
+
=== RUN Test☺☹Dirs/cgo
|
| 52 |
+
=== PAUSE Test☺☹Dirs/cgo
|
| 53 |
+
=== CONT Test☺☹/7
|
| 54 |
+
=== CONT Test☺☹/6
|
| 55 |
+
--- PASS: Test☺☹Verbose (0.04s)
|
| 56 |
+
=== CONT Test☺☹/5
|
| 57 |
+
=== CONT Test☺☹/3
|
| 58 |
+
=== CONT Test☺☹/2
|
| 59 |
+
--- PASS: TestTags (0.00s)
|
| 60 |
+
--- PASS: TestTags/x_testtag_y (0.04s)
|
| 61 |
+
vet_test.go:187: -tags=x testtag y
|
| 62 |
+
--- PASS: TestTags/x,testtag,y (0.04s)
|
| 63 |
+
vet_test.go:187: -tags=x,testtag,y
|
| 64 |
+
--- PASS: TestTags/testtag (0.04s)
|
| 65 |
+
vet_test.go:187: -tags=testtag
|
| 66 |
+
=== CONT Test☺☹/1
|
| 67 |
+
=== CONT Test☺☹Dirs/testingpkg
|
| 68 |
+
=== CONT Test☺☹Dirs/buildtag
|
| 69 |
+
=== CONT Test☺☹Dirs/divergent
|
| 70 |
+
=== CONT Test☺☹Dirs/incomplete
|
| 71 |
+
=== CONT Test☺☹Dirs/cgo
|
| 72 |
+
--- PASS: Test☺☹ (0.39s)
|
| 73 |
+
--- PASS: Test☺☹/5 (0.07s)
|
| 74 |
+
vet_test.go:114: φιλεσ: ["testdata/copylock_func.go" "testdata/rangeloop.go"]
|
| 75 |
+
--- PASS: Test☺☹/3 (0.07s)
|
| 76 |
+
vet_test.go:114: φιλεσ: ["testdata/composite.go" "testdata/nilfunc.go"]
|
| 77 |
+
--- PASS: Test☺☹/6 (0.07s)
|
| 78 |
+
vet_test.go:114: φιλεσ: ["testdata/copylock_range.go" "testdata/shadow.go"]
|
| 79 |
+
--- PASS: Test☺☹/2 (0.07s)
|
| 80 |
+
vet_test.go:114: φιλεσ: ["testdata/bool.go" "testdata/method.go" "testdata/unused.go"]
|
| 81 |
+
--- PASS: Test☺☹/0 (0.13s)
|
| 82 |
+
vet_test.go:114: φιλεσ: ["testdata/assign.go" "testdata/httpresponse.go" "testdata/structtag.go"]
|
| 83 |
+
--- PASS: Test☺☹/4 (0.16s)
|
| 84 |
+
vet_test.go:114: φιλεσ: ["testdata/copylock.go" "testdata/print.go"]
|
| 85 |
+
--- PASS: Test☺☹/1 (0.07s)
|
| 86 |
+
vet_test.go:114: φιλεσ: ["testdata/atomic.go" "testdata/lostcancel.go" "testdata/unsafeptr.go"]
|
| 87 |
+
--- PASS: Test☺☹/7 (0.19s)
|
| 88 |
+
vet_test.go:114: φιλεσ: ["testdata/deadcode.go" "testdata/shift.go"]
|
| 89 |
+
--- PASS: Test☺☹Dirs (0.01s)
|
| 90 |
+
--- PASS: Test☺☹Dirs/testingpkg (0.06s)
|
| 91 |
+
--- PASS: Test☺☹Dirs/divergent (0.05s)
|
| 92 |
+
--- PASS: Test☺☹Dirs/buildtag (0.06s)
|
| 93 |
+
--- PASS: Test☺☹Dirs/incomplete (0.05s)
|
| 94 |
+
--- PASS: Test☺☹Dirs/cgo (0.04s)
|
| 95 |
+
--- PASS: Test☺☹Asm (0.75s)
|
| 96 |
+
PASS
|
| 97 |
+
ok cmd/vet (cached)
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/timeout.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"run","Test":"Test"}
|
| 3 |
+
{"Action":"output","Test":"Test","Output":"=== RUN Test\n"}
|
| 4 |
+
{"Action":"output","Test":"Test","Output":"panic: test timed out after 1s\n"}
|
| 5 |
+
{"Action":"output","Test":"Test","Output":"\n"}
|
| 6 |
+
{"Action":"output","Output":"FAIL\tp\t1.111s\n"}
|
| 7 |
+
{"Action":"output","Output":"FAIL\n"}
|
| 8 |
+
{"Action":"fail"}
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/timeout.test
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=== RUN Test
|
| 2 |
+
panic: test timed out after 1s
|
| 3 |
+
|
| 4 |
+
FAIL p 1.111s
|
| 5 |
+
FAIL
|
platform/dbops/binaries/go/go/src/cmd/internal/test2json/testdata/unicode.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"Action":"start"}
|
| 2 |
+
{"Action":"run","Test":"TestUnicode"}
|
| 3 |
+
{"Action":"output","Test":"TestUnicode","Output":"=== RUN TestUnicode\n"}
|
| 4 |
+
{"Action":"output","Test":"TestUnicode","Output":"Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα. Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα.\n"}
|
| 5 |
+
{"Action":"output","Test":"TestUnicode","Output":"私はガラスを食べられます。それは私を傷つけません。私はガラスを食べられます。それは私を傷つけません。\n"}
|
| 6 |
+
{"Action":"output","Test":"TestUnicode","Output":"--- PASS: TestUnicode\n"}
|
| 7 |
+
{"Action":"output","Test":"TestUnicode","Output":" ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ\n"}
|
| 8 |
+
{"Action":"output","Test":"TestUnicode","Output":" אני יכול לאכול זכוכית וזה לא מזיק לי. אני יכול לאכול זכוכית וזה לא מזיק לי.\n"}
|
| 9 |
+
{"Action":"pass","Test":"TestUnicode"}
|
| 10 |
+
{"Action":"output","Output":"PASS\n"}
|
| 11 |
+
{"Action":"pass"}
|