// Code generated by 'tmplgen'; DO NOT EDIT. //go:build goexperiment.simdstable // This file contains tests of == and != on simd vectors and masks. package simd_test import ( "simd" "simd/internal/test_helpers" "testing" ) func TestEqualInt8s(t *testing.T) { test_helpers.CheckVectorEqual(t, simd.LoadInt8s, func(x, y simd.Int8s) bool { return x == y }, func(x, y simd.Int8s) bool { return x != y }, test_helpers.Int8s()) } func TestEqualMask8s(t *testing.T) { test_helpers.CheckMaskEqual(t, simd.LoadInt8s, func(x, y simd.Mask8s) bool { return x == y }, func(x, y simd.Mask8s) bool { return x != y }) } func TestEqualInt16s(t *testing.T) { test_helpers.CheckVectorEqual(t, simd.LoadInt16s, func(x, y simd.Int16s) bool { return x == y }, func(x, y simd.Int16s) bool { return x != y }, test_helpers.Int16s()) } func TestEqualMask16s(t *testing.T) { test_helpers.CheckMaskEqual(t, simd.LoadInt16s, func(x, y simd.Mask16s) bool { return x == y }, func(x, y simd.Mask16s) bool { return x != y }) } func TestEqualInt32s(t *testing.T) { test_helpers.CheckVectorEqual(t, simd.LoadInt32s, func(x, y simd.Int32s) bool { return x == y }, func(x, y simd.Int32s) bool { return x != y }, test_helpers.Int32s()) } func TestEqualMask32s(t *testing.T) { test_helpers.CheckMaskEqual(t, simd.LoadInt32s, func(x, y simd.Mask32s) bool { return x == y }, func(x, y simd.Mask32s) bool { return x != y }) } func TestEqualInt64s(t *testing.T) { test_helpers.CheckVectorEqual(t, simd.LoadInt64s, func(x, y simd.Int64s) bool { return x == y }, func(x, y simd.Int64s) bool { return x != y }, test_helpers.Int64s()) } func TestEqualMask64s(t *testing.T) { test_helpers.CheckMaskEqual(t, simd.LoadInt64s, func(x, y simd.Mask64s) bool { return x == y }, func(x, y simd.Mask64s) bool { return x != y }) } func TestEqualUint8s(t *testing.T) { test_helpers.CheckVectorEqual(t, simd.LoadUint8s, func(x, y simd.Uint8s) bool { return x == y }, func(x, y simd.Uint8s) bool { return x != y }, test_helpers.Uint8s()) } func TestEqualUint16s(t *testing.T) { test_helpers.CheckVectorEqual(t, simd.LoadUint16s, func(x, y simd.Uint16s) bool { return x == y }, func(x, y simd.Uint16s) bool { return x != y }, test_helpers.Uint16s()) } func TestEqualUint32s(t *testing.T) { test_helpers.CheckVectorEqual(t, simd.LoadUint32s, func(x, y simd.Uint32s) bool { return x == y }, func(x, y simd.Uint32s) bool { return x != y }, test_helpers.Uint32s()) } func TestEqualUint64s(t *testing.T) { test_helpers.CheckVectorEqual(t, simd.LoadUint64s, func(x, y simd.Uint64s) bool { return x == y }, func(x, y simd.Uint64s) bool { return x != y }, test_helpers.Uint64s()) } func TestEqualFloat32s(t *testing.T) { test_helpers.CheckVectorEqual(t, simd.LoadFloat32s, func(x, y simd.Float32s) bool { return x == y }, func(x, y simd.Float32s) bool { return x != y }, test_helpers.Float32s()) } func TestEqualFloat64s(t *testing.T) { test_helpers.CheckVectorEqual(t, simd.LoadFloat64s, func(x, y simd.Float64s) bool { return x == y }, func(x, y simd.Float64s) bool { return x != y }, test_helpers.Float64s()) }