From 47b07a87a65584f7b1c1efa26cf94e551e72dc2c Mon Sep 17 00:00:00 2001 From: Junyang Shao Date: Wed, 9 Jul 2025 21:16:03 +0000 Subject: [PATCH] [dev.simd] cmd/compile, simd: fix Int64x2 Greater output type to mask This CL is generated by CL 686821. Change-Id: I4bc4fa717ff858299b13955a40e750709a796fba Reviewed-on: https://go-review.googlesource.com/c/go/+/686998 Reviewed-by: David Chase LUCI-TryBot-Result: Go LUCI Auto-Submit: Junyang Shao --- src/simd/ops_amd64.go | 2 +- src/simd/simd_wrapped_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simd/ops_amd64.go b/src/simd/ops_amd64.go index 55c4b32db00..6f1c1a1b23a 100644 --- a/src/simd/ops_amd64.go +++ b/src/simd/ops_amd64.go @@ -2248,7 +2248,7 @@ func (x Int32x8) Greater(y Int32x8) Mask32x8 // Greater compares for greater than. // // Asm: VPCMPGTQ, CPU Feature: AVX -func (x Int64x2) Greater(y Int64x2) Int64x2 +func (x Int64x2) Greater(y Int64x2) Mask64x2 // Greater compares for greater than. // diff --git a/src/simd/simd_wrapped_test.go b/src/simd/simd_wrapped_test.go index 181a937d7eb..bdbb25bfce4 100644 --- a/src/simd/simd_wrapped_test.go +++ b/src/simd/simd_wrapped_test.go @@ -4018,8 +4018,6 @@ func testInt64x2Binary(t *testing.T, v0 []int64, v1 []int64, want []int64, which gotv = vec0.And(vec1) case "AndNot": gotv = vec0.AndNot(vec1) - case "Greater": - gotv = vec0.Greater(vec1) case "Max": gotv = vec0.Max(vec1) case "Min": @@ -4115,6 +4113,8 @@ func testInt64x2Compare(t *testing.T, v0 []int64, v1 []int64, want []int64, whic switch which { case "Equal": gotv = vec0.Equal(vec1).AsInt64x2() + case "Greater": + gotv = vec0.Greater(vec1).AsInt64x2() case "GreaterEqual": gotv = vec0.GreaterEqual(vec1).AsInt64x2() case "Less":