Skip to content

Commit d30884b

Browse files
committed
cmd/dist: test GOEXPERIMENT=simd on AMD64
Change-Id: Iaf8bb811cd8c674c801d8e068fcc753e889ac672 Reviewed-on: https://go-review.googlesource.com/c/go/+/729721 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
1 parent ee0275d commit d30884b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/cmd/dist/test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,15 @@ func (t *tester) registerTests() {
762762
})
763763
}
764764

765+
// Test GOEXPERIMENT=simd on amd64.
766+
if goarch == "amd64" && !strings.Contains(goexperiment, "simd") {
767+
t.registerTest("GOEXPERIMENT=simd go test simd/archsimd/...", &goTest{
768+
variant: "simd",
769+
env: []string{"GOEXPERIMENT=simd"},
770+
pkg: "simd/archsimd/...",
771+
})
772+
}
773+
765774
// Test ios/amd64 for the iOS simulator.
766775
if goos == "darwin" && goarch == "amd64" && t.cgoEnabled {
767776
t.registerTest("GOOS=ios on darwin/amd64",

0 commit comments

Comments
 (0)