]> Cypherpunks repositories - gostls13.git/commitdiff
simd/archsimd: guard test helpers with amd64 tag
authorCherry Mui <cherryyz@google.com>
Tue, 23 Dec 2025 18:25:36 +0000 (13:25 -0500)
committerDavid Chase <drchase@google.com>
Wed, 24 Dec 2025 13:26:28 +0000 (05:26 -0800)
The test helpers load vectors. Currently the load functions are
only available on AMD64, so guard them with the tag. Now

GOEXPERIMENT=simd go test simd/...

doesn't fail on a non-AMD64 machine.

Change-Id: Ie75f1fbb3b91629bc477b3140630bc47a4ef5b63
Reviewed-on: https://go-review.googlesource.com/c/go/+/732380
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/simd/archsimd/_gen/tmplgen/main.go
src/simd/archsimd/internal/simd_test/binary_helpers_test.go
src/simd/archsimd/internal/simd_test/compare_helpers_test.go
src/simd/archsimd/internal/simd_test/comparemasked_helpers_test.go
src/simd/archsimd/internal/simd_test/ternary_helpers_test.go
src/simd/archsimd/internal/simd_test/unary_helpers_test.go

index 473e4f14c087d14bac00d40133b3a9f9a93e6c9e..46bd3cf8fcbdfc016680e0948b2b261381f1e4d9 100644 (file)
@@ -278,7 +278,7 @@ func testPrologue(t, s string, out io.Writer) {
        fmt.Fprintf(out,
                `// Code generated by '%s'; DO NOT EDIT.
 
-//go:build goexperiment.simd
+//go:build goexperiment.simd && amd64
 
 // This file contains functions testing %s.
 // Each function in this file is specialized for a
index 9c361dbeb9888bb3696d23d9c0c87e78ad1feceb..a834398a5368fc9a55a330da7c839f88c058cf0c 100644 (file)
@@ -1,6 +1,6 @@
 // Code generated by 'go run genfiles.go'; DO NOT EDIT.
 
-//go:build goexperiment.simd
+//go:build goexperiment.simd && amd64
 
 // This file contains functions testing binary simd methods.
 // Each function in this file is specialized for a
index 279fdc7155802588bdf67819ac9fa511ba2960b2..a191605b0beda0bc3075127dce566965b50bc7bf 100644 (file)
@@ -1,6 +1,6 @@
 // Code generated by 'go run genfiles.go'; DO NOT EDIT.
 
-//go:build goexperiment.simd
+//go:build goexperiment.simd && amd64
 
 // This file contains functions testing simd methods that compare two operands.
 // Each function in this file is specialized for a
index 7ceee652a9a8a7bc5ad87cf9874df9beb166141b..24790e5d262414b19288f7f2a8c8720c7d46198d 100644 (file)
@@ -1,6 +1,6 @@
 // Code generated by 'go run genfiles.go'; DO NOT EDIT.
 
-//go:build goexperiment.simd
+//go:build goexperiment.simd && amd64
 
 // This file contains functions testing simd methods that compare two operands under a mask.
 // Each function in this file is specialized for a
index c37f9ef0ca78ad51ffcde28981e16dd2b2f6cb31..f31e7a32a07a260b0f891f40a72c781a73d959f2 100644 (file)
@@ -1,6 +1,6 @@
 // Code generated by 'go run genfiles.go'; DO NOT EDIT.
 
-//go:build goexperiment.simd
+//go:build goexperiment.simd && amd64
 
 // This file contains functions testing ternary simd methods.
 // Each function in this file is specialized for a
index e2610ad98b1e5ef8204cce062d44d98bbdff98d2..64e538bda6867a2e11d91db3f1092719aa969b52 100644 (file)
@@ -1,6 +1,6 @@
 // Code generated by 'go run genfiles.go'; DO NOT EDIT.
 
-//go:build goexperiment.simd
+//go:build goexperiment.simd && amd64
 
 // This file contains functions testing unary simd methods.
 // Each function in this file is specialized for a