We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9b5735 + 30aca06 commit 371f824Copy full SHA for 371f824
src/cmd/asm/internal/asm/testdata/loong64enc1.s
@@ -937,3 +937,26 @@ lable2:
937
XVSHUF4IV $0, X1, X2 // 22009c77
938
XVSHUF4IV $8, X1, X2 // 22209c77
939
XVSHUF4IV $15, X1, X2 // 223c9c77
940
+
941
+ // [X]VSETEQZ.V, [X]VSETNEZ.V
942
+ VSETEQV V1, FCC0 // 20989c72
943
+ VSETNEV V1, FCC0 // 209c9c72
944
+ XVSETEQV X1, FCC0 // 20989c76
945
+ XVSETNEV X1, FCC0 // 209c9c76
946
+ // [X]VSETANYEQZ.{B/H/W/D} instructions
947
+ VSETANYEQB V1, FCC0 // 20a09c72
948
+ VSETANYEQH V1, FCC0 // 20a49c72
949
+ VSETANYEQW V1, FCC0 // 20a89c72
950
+ VSETANYEQV V1, FCC0 // 20ac9c72
951
+ VSETALLNEB V1, FCC0 // 20b09c72
952
+ VSETALLNEH V1, FCC0 // 20b49c72
953
+ VSETALLNEW V1, FCC0 // 20b89c72
954
+ VSETALLNEV V1, FCC0 // 20bc9c72
955
+ XVSETANYEQB X1, FCC0 // 20a09c76
956
+ XVSETANYEQH X1, FCC0 // 20a49c76
957
+ XVSETANYEQW X1, FCC0 // 20a89c76
958
+ XVSETANYEQV X1, FCC0 // 20ac9c76
959
+ XVSETALLNEB X1, FCC0 // 20b09c76
960
+ XVSETALLNEH X1, FCC0 // 20b49c76
961
+ XVSETALLNEW X1, FCC0 // 20b89c76
962
+ XVSETALLNEV X1, FCC0 // 20bc9c76
src/cmd/compile/internal/importer/gcimporter_test.go
@@ -164,7 +164,7 @@ func TestVersionHandling(t *testing.T) {
164
_, err := Import(make(map[string]*types2.Package), pkgpath, dir, nil)
165
if err != nil {
166
// ok to fail if it fails with a 'not the start of an archive file' error for select files
167
- if strings.Contains(err.Error(), "no longer supported") {
+ if strings.Contains(err.Error(), "not the start of an archive file") {
168
switch name {
169
case "test_go1.8_4.a",
170
"test_go1.8_5.a":
src/cmd/go/internal/imports/scan_test.go
@@ -17,40 +17,40 @@ import (
17
func TestScan(t *testing.T) {
18
testenv.MustHaveGoBuild(t)
19
20
- imports, testImports, err := ScanDir(filepath.Join(testenv.GOROOT(t), "src/encoding/json"), Tags())
+ imports, testImports, err := ScanDir(filepath.Join(testenv.GOROOT(t), "src/cmd/go/internal/imports/testdata/test"), Tags())
21
22
t.Fatal(err)
23
}
24
- foundBase64 := false
+ foundFmt := false
25
for _, p := range imports {
26
- if p == "encoding/base64" {
27
- foundBase64 = true
+ if p == "fmt" {
+ foundFmt = true // test package imports fmt directly
28
29
if p == "encoding/binary" {
30
// A dependency but not an import
31
- t.Errorf("json reported as importing encoding/binary but does not")
+ t.Errorf("testdata/test reported as importing encoding/binary but does not")
32
33
if p == "net/http" {
34
// A test import but not an import
35
- t.Errorf("json reported as importing net/http but does not")
+ t.Errorf("testdata/test reported as importing net/http but does not")
36
37
38
- if !foundBase64 {
39
- t.Errorf("json missing import encoding/base64 (%q)", imports)
+ if !foundFmt {
+ t.Errorf("testdata/test missing import fmt (%q)", imports)
40
41
42
foundHTTP := false
43
for _, p := range testImports {
44
45
foundHTTP = true
46
47
- if p == "unicode/utf16" {
48
// A package import but not a test import
49
- t.Errorf("json reported as test-importing unicode/utf16 but does not")
+ t.Errorf("testdata/test reported as test-importing fmt but does not")
50
51
52
if !foundHTTP {
53
- t.Errorf("json missing test import net/http (%q)", testImports)
+ t.Errorf("testdata/test missing test import net/http (%q)", testImports)
54
55
56
func TestScanDir(t *testing.T) {
src/cmd/go/internal/imports/testdata/test/child/child.go
@@ -0,0 +1,5 @@
1
+package child
2
3
+import "encoding/binary"
4
5
+var V = binary.MaxVarintLen16
src/cmd/go/internal/imports/testdata/test/tags.txt
src/cmd/go/internal/imports/testdata/test/test.go
@@ -0,0 +1,10 @@
+package test
+import (
+ "cmd/go/internal/imports/testdata/test/child"
+ "fmt"
6
+)
7
8
+func F() {
9
+ fmt.Println(child.V)
10
+}
src/cmd/go/internal/imports/testdata/test/test_test.go
@@ -0,0 +1,9 @@
+package test_test
+ _ "net/http"
+ "testing"
+func Test(t *testing.T) {
src/cmd/go/internal/imports/testdata/test/want.txt
@@ -0,0 +1,2 @@
+cmd/go/internal/imports/testdata/test/child
+fmt
src/cmd/internal/obj/loong64/a.out.go
@@ -1019,6 +1019,27 @@ const (
1019
AXVSHUF4IW
1020
AXVSHUF4IV
1021
1022
+ AVSETEQV
1023
+ AVSETNEV
1024
+ AVSETANYEQB
1025
+ AVSETANYEQH
1026
+ AVSETANYEQW
1027
+ AVSETANYEQV
1028
+ AVSETALLNEB
1029
+ AVSETALLNEH
1030
+ AVSETALLNEW
1031
+ AVSETALLNEV
1032
+ AXVSETEQV
1033
+ AXVSETNEV
1034
+ AXVSETANYEQB
1035
+ AXVSETANYEQH
1036
+ AXVSETANYEQW
1037
+ AXVSETANYEQV
1038
+ AXVSETALLNEB
1039
+ AXVSETALLNEH
1040
+ AXVSETALLNEW
1041
+ AXVSETALLNEV
1042
1043
ALAST
1044
1045
// aliases
src/cmd/internal/obj/loong64/anames.go
0 commit comments