Skip to content

Commit 371f824

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents f9b5735 + 30aca06 commit 371f824

File tree

27 files changed

+612
-133
lines changed

27 files changed

+612
-133
lines changed

src/cmd/asm/internal/asm/testdata/loong64enc1.s

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,3 +937,26 @@ lable2:
937937
XVSHUF4IV $0, X1, X2 // 22009c77
938938
XVSHUF4IV $8, X1, X2 // 22209c77
939939
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func TestVersionHandling(t *testing.T) {
164164
_, err := Import(make(map[string]*types2.Package), pkgpath, dir, nil)
165165
if err != nil {
166166
// 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") {
167+
if strings.Contains(err.Error(), "not the start of an archive file") {
168168
switch name {
169169
case "test_go1.8_4.a",
170170
"test_go1.8_5.a":

src/cmd/go/internal/imports/scan_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,40 +17,40 @@ import (
1717
func TestScan(t *testing.T) {
1818
testenv.MustHaveGoBuild(t)
1919

20-
imports, testImports, err := ScanDir(filepath.Join(testenv.GOROOT(t), "src/encoding/json"), Tags())
20+
imports, testImports, err := ScanDir(filepath.Join(testenv.GOROOT(t), "src/cmd/go/internal/imports/testdata/test"), Tags())
2121
if err != nil {
2222
t.Fatal(err)
2323
}
24-
foundBase64 := false
24+
foundFmt := false
2525
for _, p := range imports {
26-
if p == "encoding/base64" {
27-
foundBase64 = true
26+
if p == "fmt" {
27+
foundFmt = true // test package imports fmt directly
2828
}
2929
if p == "encoding/binary" {
3030
// A dependency but not an import
31-
t.Errorf("json reported as importing encoding/binary but does not")
31+
t.Errorf("testdata/test reported as importing encoding/binary but does not")
3232
}
3333
if p == "net/http" {
3434
// A test import but not an import
35-
t.Errorf("json reported as importing net/http but does not")
35+
t.Errorf("testdata/test reported as importing net/http but does not")
3636
}
3737
}
38-
if !foundBase64 {
39-
t.Errorf("json missing import encoding/base64 (%q)", imports)
38+
if !foundFmt {
39+
t.Errorf("testdata/test missing import fmt (%q)", imports)
4040
}
4141

4242
foundHTTP := false
4343
for _, p := range testImports {
4444
if p == "net/http" {
4545
foundHTTP = true
4646
}
47-
if p == "unicode/utf16" {
47+
if p == "fmt" {
4848
// A package import but not a test import
49-
t.Errorf("json reported as test-importing unicode/utf16 but does not")
49+
t.Errorf("testdata/test reported as test-importing fmt but does not")
5050
}
5151
}
5252
if !foundHTTP {
53-
t.Errorf("json missing test import net/http (%q)", testImports)
53+
t.Errorf("testdata/test missing test import net/http (%q)", testImports)
5454
}
5555
}
5656
func TestScanDir(t *testing.T) {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Whitespace-only changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package test
2+
3+
import (
4+
"cmd/go/internal/imports/testdata/test/child"
5+
"fmt"
6+
)
7+
8+
func F() {
9+
fmt.Println(child.V)
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package test_test
2+
3+
import (
4+
_ "net/http"
5+
"testing"
6+
)
7+
8+
func Test(t *testing.T) {
9+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cmd/go/internal/imports/testdata/test/child
2+
fmt

src/cmd/internal/obj/loong64/a.out.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,27 @@ const (
10191019
AXVSHUF4IW
10201020
AXVSHUF4IV
10211021

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+
10221043
ALAST
10231044

10241045
// aliases

src/cmd/internal/obj/loong64/anames.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)