]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.simd] cmd/compile, simd: fix Int64x2 Greater output type to mask
authorJunyang Shao <shaojunyang@google.com>
Wed, 9 Jul 2025 21:16:03 +0000 (21:16 +0000)
committerJunyang Shao <shaojunyang@google.com>
Wed, 9 Jul 2025 21:42:09 +0000 (14:42 -0700)
This CL is generated by CL 686821.

Change-Id: I4bc4fa717ff858299b13955a40e750709a796fba
Reviewed-on: https://go-review.googlesource.com/c/go/+/686998
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Junyang Shao <shaojunyang@google.com>

src/simd/ops_amd64.go
src/simd/simd_wrapped_test.go

index 55c4b32db00bf5b58b406a9da98552df6a09d752..6f1c1a1b23ae2f4e639c5f7c7c1ea8075acf362f 100644 (file)
@@ -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.
 //
index 181a937d7ebc244ba997ada71b279d8d7768285b..bdbb25bfce4e6a01a6c5b68a271ef6ed266d0656 100644 (file)
@@ -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":