]> git.feebdaed.xyz Git - 0xmirror/go.git/commitdiff
cmd/dist: test GOEXPERIMENT=simd on AMD64
authorCherry Mui <cherryyz@google.com>
Fri, 12 Dec 2025 18:31:45 +0000 (13:31 -0500)
committerCherry Mui <cherryyz@google.com>
Sat, 13 Dec 2025 01:25:36 +0000 (17:25 -0800)
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>
src/cmd/dist/test.go

index aae16c1637f1ff027f7fc710b1267eb1ff1b7cc1..6d3742525c68080885cdeaa0c222b6a977163ea3 100644 (file)
@@ -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",