// Code generated by 'tmplgen'; DO NOT EDIT. //go:build goexperiment.simdstable && (amd64 || wasm || arm64) // This file contains tests of == and != on simd vectors and masks. package simd_test import ( "simd/archsimd" "simd/internal/test_helpers" "testing" ) func TestEqualInt8x16(t *testing.T) { test_helpers.CheckVectorEqual(t, archsimd.LoadInt8x16, func(x, y archsimd.Int8x16) bool { return x == y }, func(x, y archsimd.Int8x16) bool { return x != y }, int8s) } func TestEqualMask8x16(t *testing.T) { test_helpers.CheckMaskEqual(t, archsimd.LoadInt8x16, func(x, y archsimd.Mask8x16) bool { return x == y }, func(x, y archsimd.Mask8x16) bool { return x != y }) } func TestEqualInt16x8(t *testing.T) { test_helpers.CheckVectorEqual(t, archsimd.LoadInt16x8, func(x, y archsimd.Int16x8) bool { return x == y }, func(x, y archsimd.Int16x8) bool { return x != y }, int16s) } func TestEqualMask16x8(t *testing.T) { test_helpers.CheckMaskEqual(t, archsimd.LoadInt16x8, func(x, y archsimd.Mask16x8) bool { return x == y }, func(x, y archsimd.Mask16x8) bool { return x != y }) } func TestEqualInt32x4(t *testing.T) { test_helpers.CheckVectorEqual(t, archsimd.LoadInt32x4, func(x, y archsimd.Int32x4) bool { return x == y }, func(x, y archsimd.Int32x4) bool { return x != y }, int32s) } func TestEqualMask32x4(t *testing.T) { test_helpers.CheckMaskEqual(t, archsimd.LoadInt32x4, func(x, y archsimd.Mask32x4) bool { return x == y }, func(x, y archsimd.Mask32x4) bool { return x != y }) } func TestEqualInt64x2(t *testing.T) { test_helpers.CheckVectorEqual(t, archsimd.LoadInt64x2, func(x, y archsimd.Int64x2) bool { return x == y }, func(x, y archsimd.Int64x2) bool { return x != y }, int64s) } func TestEqualMask64x2(t *testing.T) { test_helpers.CheckMaskEqual(t, archsimd.LoadInt64x2, func(x, y archsimd.Mask64x2) bool { return x == y }, func(x, y archsimd.Mask64x2) bool { return x != y }) } func TestEqualUint8x16(t *testing.T) { test_helpers.CheckVectorEqual(t, archsimd.LoadUint8x16, func(x, y archsimd.Uint8x16) bool { return x == y }, func(x, y archsimd.Uint8x16) bool { return x != y }, uint8s) } func TestEqualUint16x8(t *testing.T) { test_helpers.CheckVectorEqual(t, archsimd.LoadUint16x8, func(x, y archsimd.Uint16x8) bool { return x == y }, func(x, y archsimd.Uint16x8) bool { return x != y }, uint16s) } func TestEqualUint32x4(t *testing.T) { test_helpers.CheckVectorEqual(t, archsimd.LoadUint32x4, func(x, y archsimd.Uint32x4) bool { return x == y }, func(x, y archsimd.Uint32x4) bool { return x != y }, uint32s) } func TestEqualUint64x2(t *testing.T) { test_helpers.CheckVectorEqual(t, archsimd.LoadUint64x2, func(x, y archsimd.Uint64x2) bool { return x == y }, func(x, y archsimd.Uint64x2) bool { return x != y }, uint64s) } func TestEqualFloat32x4(t *testing.T) { test_helpers.CheckVectorEqual(t, archsimd.LoadFloat32x4, func(x, y archsimd.Float32x4) bool { return x == y }, func(x, y archsimd.Float32x4) bool { return x != y }, float32s) } func TestEqualFloat64x2(t *testing.T) { test_helpers.CheckVectorEqual(t, archsimd.LoadFloat64x2, func(x, y archsimd.Float64x2) bool { return x == y }, func(x, y archsimd.Float64x2) bool { return x != y }, float64s) }