]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: run TestLogOpt for riscv64 on amd64
authorJoel Sing <joel@sing.id.au>
Sun, 12 Apr 2020 16:47:11 +0000 (02:47 +1000)
committerJoel Sing <joel@sing.id.au>
Mon, 13 Apr 2020 04:05:32 +0000 (04:05 +0000)
Run TestLogOpt for riscv64 on amd64, as is done for other architectures.
This would have caught the test failure on riscv64 introduced in
47ade08141b23cfeafed92943e16012d5dc5eb8b.

Change-Id: If29dea2ef383b087154d046728f6d1c96811f5a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/227806
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/logopt/logopt_test.go

index 800ac619035040dbbe452c8be84c7374870bbbad..df3e70a614f71fcf812a09388130a997a584fa0b 100644 (file)
@@ -127,7 +127,7 @@ func s15a8(x *[15]int64) [15]int64 {
                arches := []string{runtime.GOARCH}
                goos0 := runtime.GOOS
                if runtime.GOARCH == "amd64" { // Test many things with "linux" (wasm will get "js")
-                       arches = []string{"arm", "arm64", "386", "amd64", "mips", "mips64", "ppc64le", "s390x", "wasm"}
+                       arches = []string{"arm", "arm64", "386", "amd64", "mips", "mips64", "ppc64le", "riscv64", "s390x", "wasm"}
                        goos0 = "linux"
                }