aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2025-12-12 13:31:45 -0500
committerCherry Mui <cherryyz@google.com>2025-12-12 17:25:36 -0800
commitd30884ba1f798b9604fa6586c6d50ca5de8655d5 (patch)
tree5ae2867a4a947bc4001e3c4c1fff25817e4671fa
parentee0275d15b4407038d30e27c9cc313c4ef339026 (diff)
downloadgo-d30884ba1f798b9604fa6586c6d50ca5de8655d5.tar.xz
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>
-rw-r--r--src/cmd/dist/test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go
index aae16c1637..6d3742525c 100644
--- a/src/cmd/dist/test.go
+++ b/src/cmd/dist/test.go
@@ -762,6 +762,15 @@ func (t *tester) registerTests() {
})
}
+ // Test GOEXPERIMENT=simd on amd64.
+ if goarch == "amd64" && !strings.Contains(goexperiment, "simd") {
+ t.registerTest("GOEXPERIMENT=simd go test simd/archsimd/...", &goTest{
+ variant: "simd",
+ env: []string{"GOEXPERIMENT=simd"},
+ pkg: "simd/archsimd/...",
+ })
+ }
+
// Test ios/amd64 for the iOS simulator.
if goos == "darwin" && goarch == "amd64" && t.cgoEnabled {
t.registerTest("GOOS=ios on darwin/amd64",