("SimpleBinOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "Or", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(ushort)(random.Next(0, ushort.MaxValue))", ["NextValueOp2"] = "(ushort)(random.Next(0, ushort.MaxValue))", ["ValidateFirstResult"] = "(ushort)(left[0] | right[0]) != result[0]", ["ValidateRemainingResults"] = "(ushort)(left[i] | right[i]) != result[i]"}),
("SimpleBinOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "Or", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(uint)(random.Next(0, int.MaxValue))", ["NextValueOp2"] = "(uint)(random.Next(0, int.MaxValue))", ["ValidateFirstResult"] = "(uint)(left[0] | right[0]) != result[0]", ["ValidateRemainingResults"] = "(uint)(left[i] | right[i]) != result[i]"}),
("SimpleBinOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "Or", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt64", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(ulong)(random.Next(0, int.MaxValue))", ["NextValueOp2"] = "(ulong)(random.Next(0, int.MaxValue))", ["ValidateFirstResult"] = "(ulong)(left[0] | right[0]) != result[0]", ["ValidateRemainingResults"] = "(ulong)(left[i] | right[i]) != result[i]"}),
- ("ScalarUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Byte", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(byte)(Random.Next(byte.MinValue, byte.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
- ("ScalarUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "SByte", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(sbyte)(Random.Next(sbyte.MinValue, sbyte.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
- ("ScalarUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(short)(Random.Next(short.MinValue, short.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
- ("ScalarUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(ushort)(Random.Next(ushort.MinValue, ushort.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
- ("ScalarUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(int)(Random.Next(int.MinValue, int.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
- ("ScalarUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(uint)(Random.Next(0, int.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
- ("ScalarUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int64", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(long)(Random.Next(int.MinValue, int.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
- ("ScalarUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt64", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(ulong)(Random.Next(0, int.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
- ("ScalarUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Double", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Double", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "Random.NextDouble()", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
+ ("ScalarSimdUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Byte", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(byte)(Random.Next(byte.MinValue, byte.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
+ ("ScalarSimdUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "SByte", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(sbyte)(Random.Next(sbyte.MinValue, sbyte.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
+ ("ScalarSimdUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(short)(Random.Next(short.MinValue, short.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
+ ("ScalarSimdUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(ushort)(Random.Next(ushort.MinValue, ushort.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
+ ("ScalarSimdUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(int)(Random.Next(int.MinValue, int.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
+ ("ScalarSimdUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(uint)(Random.Next(0, int.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
+ ("ScalarSimdUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int64", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(long)(Random.Next(int.MinValue, int.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
+ ("ScalarSimdUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt64", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(ulong)(Random.Next(0, int.MaxValue))", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
+ ("ScalarSimdUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "SetAllVector128", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Double", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Double", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "Random.NextDouble()", ["ValidateFirstResult"] = "result[0] != firstOp", ["ValidateRemainingResults"] = "result[i] != firstOp"}),
("ImmUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "ShiftLeftLogical", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int16", ["Imm"] = "1", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(short)(random.Next(0, short.MaxValue))", ["ValidateFirstResult"] = "(short)(firstOp[0] << 1) != result[0]", ["ValidateRemainingResults"] = "(short)(firstOp[i] << 1) != result[i]"}),
("ImmUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "ShiftLeftLogical", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Imm"] = "1", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(ushort)(random.Next(0, ushort.MaxValue))", ["ValidateFirstResult"] = "(ushort)(firstOp[0] << 1) != result[0]", ["ValidateRemainingResults"] = "(ushort)(firstOp[i] << 1) != result[i]"}),
("ImmUnOpTest.template", new Dictionary<string, string> { ["Isa"] = "Sse2", ["LoadIsa"] = "Sse2", ["Method"] = "ShiftLeftLogical", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int32", ["Imm"] = "1", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "(int)(random.Next(0, int.MaxValue))", ["ValidateFirstResult"] = "(int)(firstOp[0] << 1) != result[0]", ["ValidateRemainingResults"] = "(int)(firstOp[i] << 1) != result[i]"}),
return;
}
- var test = new SimpleScalarUnaryOpTest__{Method}{RetBaseType}();
+ var test = new ScalarSimdUnaryOpTest__{Method}{RetBaseType}();
if (test.IsSupported)
{
}
}
- public sealed unsafe class SimpleScalarUnaryOpTest__{Method}{RetBaseType}
+ public sealed unsafe class ScalarSimdUnaryOpTest__{Method}{RetBaseType}
{
private static readonly int LargestVectorSize = {LargestVectorSize};
private {Op1BaseType} _fld;
- private SimpleScalarUnaryOpTest__DataTable<{RetBaseType}> _dataTable;
+ private ScalarSimdUnaryOpTest__DataTable<{RetBaseType}> _dataTable;
- static SimpleScalarUnaryOpTest__{Method}{RetBaseType}()
+ static ScalarSimdUnaryOpTest__{Method}{RetBaseType}()
{
_clsVar = {NextValueOp1};
}
- public SimpleScalarUnaryOpTest__{Method}{RetBaseType}()
+ public ScalarSimdUnaryOpTest__{Method}{RetBaseType}()
{
Succeeded = true;
_fld = {NextValueOp1};
- _dataTable = new SimpleScalarUnaryOpTest__DataTable<{RetBaseType}>(new {RetBaseType}[RetElementCount], LargestVectorSize);
+ _dataTable = new ScalarSimdUnaryOpTest__DataTable<{RetBaseType}>(new {RetBaseType}[RetElementCount], LargestVectorSize);
}
public bool IsSupported => {Isa}.IsSupported;
public void RunLclFldScenario()
{
- var test = new SimpleScalarUnaryOpTest__{Method}{RetBaseType}();
+ var test = new ScalarSimdUnaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
namespace JIT.HardwareIntrinsics.X86
{
- public unsafe struct SimpleScalarUnaryOpTest__DataTable<TResult> : IDisposable
+ public unsafe struct ScalarSimdUnaryOpTest__DataTable<TResult> : IDisposable
where TResult : struct
{
public byte[] outArray;
private ulong alignment;
- public SimpleScalarUnaryOpTest__DataTable(TResult[] outArray, int alignment)
+ public ScalarSimdUnaryOpTest__DataTable(TResult[] outArray, int alignment)
{
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<TResult>();
if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfoutArray)
return;
}
- var test = new SimpleScalarUnaryOpTest__SetAllVector128Byte();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128Byte();
if (test.IsSupported)
{
}
}
- public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128Byte
+ public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128Byte
{
private static readonly int LargestVectorSize = 16;
private Byte _fld;
- private SimpleScalarUnaryOpTest__DataTable<Byte> _dataTable;
+ private ScalarSimdUnaryOpTest__DataTable<Byte> _dataTable;
- static SimpleScalarUnaryOpTest__SetAllVector128Byte()
+ static ScalarSimdUnaryOpTest__SetAllVector128Byte()
{
_clsVar = (byte)(Random.Next(byte.MinValue, byte.MaxValue));
}
- public SimpleScalarUnaryOpTest__SetAllVector128Byte()
+ public ScalarSimdUnaryOpTest__SetAllVector128Byte()
{
Succeeded = true;
_fld = (byte)(Random.Next(byte.MinValue, byte.MaxValue));
- _dataTable = new SimpleScalarUnaryOpTest__DataTable<Byte>(new Byte[RetElementCount], LargestVectorSize);
+ _dataTable = new ScalarSimdUnaryOpTest__DataTable<Byte>(new Byte[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Sse2.IsSupported;
public void RunLclFldScenario()
{
- var test = new SimpleScalarUnaryOpTest__SetAllVector128Byte();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128Byte();
var result = Sse2.SetAllVector128(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
return;
}
- var test = new SimpleScalarUnaryOpTest__SetAllVector128Double();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128Double();
if (test.IsSupported)
{
}
}
- public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128Double
+ public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128Double
{
private static readonly int LargestVectorSize = 16;
private Double _fld;
- private SimpleScalarUnaryOpTest__DataTable<Double> _dataTable;
+ private ScalarSimdUnaryOpTest__DataTable<Double> _dataTable;
- static SimpleScalarUnaryOpTest__SetAllVector128Double()
+ static ScalarSimdUnaryOpTest__SetAllVector128Double()
{
_clsVar = Random.NextDouble();
}
- public SimpleScalarUnaryOpTest__SetAllVector128Double()
+ public ScalarSimdUnaryOpTest__SetAllVector128Double()
{
Succeeded = true;
_fld = Random.NextDouble();
- _dataTable = new SimpleScalarUnaryOpTest__DataTable<Double>(new Double[RetElementCount], LargestVectorSize);
+ _dataTable = new ScalarSimdUnaryOpTest__DataTable<Double>(new Double[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Sse2.IsSupported;
public void RunLclFldScenario()
{
- var test = new SimpleScalarUnaryOpTest__SetAllVector128Double();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128Double();
var result = Sse2.SetAllVector128(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
return;
}
- var test = new SimpleScalarUnaryOpTest__SetAllVector128Int16();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128Int16();
if (test.IsSupported)
{
}
}
- public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128Int16
+ public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128Int16
{
private static readonly int LargestVectorSize = 16;
private Int16 _fld;
- private SimpleScalarUnaryOpTest__DataTable<Int16> _dataTable;
+ private ScalarSimdUnaryOpTest__DataTable<Int16> _dataTable;
- static SimpleScalarUnaryOpTest__SetAllVector128Int16()
+ static ScalarSimdUnaryOpTest__SetAllVector128Int16()
{
_clsVar = (short)(Random.Next(short.MinValue, short.MaxValue));
}
- public SimpleScalarUnaryOpTest__SetAllVector128Int16()
+ public ScalarSimdUnaryOpTest__SetAllVector128Int16()
{
Succeeded = true;
_fld = (short)(Random.Next(short.MinValue, short.MaxValue));
- _dataTable = new SimpleScalarUnaryOpTest__DataTable<Int16>(new Int16[RetElementCount], LargestVectorSize);
+ _dataTable = new ScalarSimdUnaryOpTest__DataTable<Int16>(new Int16[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Sse2.IsSupported;
public void RunLclFldScenario()
{
- var test = new SimpleScalarUnaryOpTest__SetAllVector128Int16();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128Int16();
var result = Sse2.SetAllVector128(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
return;
}
- var test = new SimpleScalarUnaryOpTest__SetAllVector128Int32();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128Int32();
if (test.IsSupported)
{
}
}
- public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128Int32
+ public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128Int32
{
private static readonly int LargestVectorSize = 16;
private Int32 _fld;
- private SimpleScalarUnaryOpTest__DataTable<Int32> _dataTable;
+ private ScalarSimdUnaryOpTest__DataTable<Int32> _dataTable;
- static SimpleScalarUnaryOpTest__SetAllVector128Int32()
+ static ScalarSimdUnaryOpTest__SetAllVector128Int32()
{
_clsVar = (int)(Random.Next(int.MinValue, int.MaxValue));
}
- public SimpleScalarUnaryOpTest__SetAllVector128Int32()
+ public ScalarSimdUnaryOpTest__SetAllVector128Int32()
{
Succeeded = true;
_fld = (int)(Random.Next(int.MinValue, int.MaxValue));
- _dataTable = new SimpleScalarUnaryOpTest__DataTable<Int32>(new Int32[RetElementCount], LargestVectorSize);
+ _dataTable = new ScalarSimdUnaryOpTest__DataTable<Int32>(new Int32[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Sse2.IsSupported;
public void RunLclFldScenario()
{
- var test = new SimpleScalarUnaryOpTest__SetAllVector128Int32();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128Int32();
var result = Sse2.SetAllVector128(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
return;
}
- var test = new SimpleScalarUnaryOpTest__SetAllVector128Int64();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128Int64();
if (test.IsSupported)
{
}
}
- public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128Int64
+ public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128Int64
{
private static readonly int LargestVectorSize = 16;
private Int64 _fld;
- private SimpleScalarUnaryOpTest__DataTable<Int64> _dataTable;
+ private ScalarSimdUnaryOpTest__DataTable<Int64> _dataTable;
- static SimpleScalarUnaryOpTest__SetAllVector128Int64()
+ static ScalarSimdUnaryOpTest__SetAllVector128Int64()
{
_clsVar = (long)(Random.Next(int.MinValue, int.MaxValue));
}
- public SimpleScalarUnaryOpTest__SetAllVector128Int64()
+ public ScalarSimdUnaryOpTest__SetAllVector128Int64()
{
Succeeded = true;
_fld = (long)(Random.Next(int.MinValue, int.MaxValue));
- _dataTable = new SimpleScalarUnaryOpTest__DataTable<Int64>(new Int64[RetElementCount], LargestVectorSize);
+ _dataTable = new ScalarSimdUnaryOpTest__DataTable<Int64>(new Int64[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Sse2.IsSupported;
public void RunLclFldScenario()
{
- var test = new SimpleScalarUnaryOpTest__SetAllVector128Int64();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128Int64();
var result = Sse2.SetAllVector128(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
return;
}
- var test = new SimpleScalarUnaryOpTest__SetAllVector128SByte();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128SByte();
if (test.IsSupported)
{
}
}
- public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128SByte
+ public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128SByte
{
private static readonly int LargestVectorSize = 16;
private SByte _fld;
- private SimpleScalarUnaryOpTest__DataTable<SByte> _dataTable;
+ private ScalarSimdUnaryOpTest__DataTable<SByte> _dataTable;
- static SimpleScalarUnaryOpTest__SetAllVector128SByte()
+ static ScalarSimdUnaryOpTest__SetAllVector128SByte()
{
_clsVar = (sbyte)(Random.Next(sbyte.MinValue, sbyte.MaxValue));
}
- public SimpleScalarUnaryOpTest__SetAllVector128SByte()
+ public ScalarSimdUnaryOpTest__SetAllVector128SByte()
{
Succeeded = true;
_fld = (sbyte)(Random.Next(sbyte.MinValue, sbyte.MaxValue));
- _dataTable = new SimpleScalarUnaryOpTest__DataTable<SByte>(new SByte[RetElementCount], LargestVectorSize);
+ _dataTable = new ScalarSimdUnaryOpTest__DataTable<SByte>(new SByte[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Sse2.IsSupported;
public void RunLclFldScenario()
{
- var test = new SimpleScalarUnaryOpTest__SetAllVector128SByte();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128SByte();
var result = Sse2.SetAllVector128(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
return;
}
- var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt16();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt16();
if (test.IsSupported)
{
}
}
- public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128UInt16
+ public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128UInt16
{
private static readonly int LargestVectorSize = 16;
private UInt16 _fld;
- private SimpleScalarUnaryOpTest__DataTable<UInt16> _dataTable;
+ private ScalarSimdUnaryOpTest__DataTable<UInt16> _dataTable;
- static SimpleScalarUnaryOpTest__SetAllVector128UInt16()
+ static ScalarSimdUnaryOpTest__SetAllVector128UInt16()
{
_clsVar = (ushort)(Random.Next(ushort.MinValue, ushort.MaxValue));
}
- public SimpleScalarUnaryOpTest__SetAllVector128UInt16()
+ public ScalarSimdUnaryOpTest__SetAllVector128UInt16()
{
Succeeded = true;
_fld = (ushort)(Random.Next(ushort.MinValue, ushort.MaxValue));
- _dataTable = new SimpleScalarUnaryOpTest__DataTable<UInt16>(new UInt16[RetElementCount], LargestVectorSize);
+ _dataTable = new ScalarSimdUnaryOpTest__DataTable<UInt16>(new UInt16[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Sse2.IsSupported;
public void RunLclFldScenario()
{
- var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt16();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt16();
var result = Sse2.SetAllVector128(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
return;
}
- var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt32();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt32();
if (test.IsSupported)
{
}
}
- public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128UInt32
+ public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128UInt32
{
private static readonly int LargestVectorSize = 16;
private UInt32 _fld;
- private SimpleScalarUnaryOpTest__DataTable<UInt32> _dataTable;
+ private ScalarSimdUnaryOpTest__DataTable<UInt32> _dataTable;
- static SimpleScalarUnaryOpTest__SetAllVector128UInt32()
+ static ScalarSimdUnaryOpTest__SetAllVector128UInt32()
{
_clsVar = (uint)(Random.Next(0, int.MaxValue));
}
- public SimpleScalarUnaryOpTest__SetAllVector128UInt32()
+ public ScalarSimdUnaryOpTest__SetAllVector128UInt32()
{
Succeeded = true;
_fld = (uint)(Random.Next(0, int.MaxValue));
- _dataTable = new SimpleScalarUnaryOpTest__DataTable<UInt32>(new UInt32[RetElementCount], LargestVectorSize);
+ _dataTable = new ScalarSimdUnaryOpTest__DataTable<UInt32>(new UInt32[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Sse2.IsSupported;
public void RunLclFldScenario()
{
- var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt32();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt32();
var result = Sse2.SetAllVector128(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
return;
}
- var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt64();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt64();
if (test.IsSupported)
{
}
}
- public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128UInt64
+ public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128UInt64
{
private static readonly int LargestVectorSize = 16;
private UInt64 _fld;
- private SimpleScalarUnaryOpTest__DataTable<UInt64> _dataTable;
+ private ScalarSimdUnaryOpTest__DataTable<UInt64> _dataTable;
- static SimpleScalarUnaryOpTest__SetAllVector128UInt64()
+ static ScalarSimdUnaryOpTest__SetAllVector128UInt64()
{
_clsVar = (ulong)(Random.Next(0, int.MaxValue));
}
- public SimpleScalarUnaryOpTest__SetAllVector128UInt64()
+ public ScalarSimdUnaryOpTest__SetAllVector128UInt64()
{
Succeeded = true;
_fld = (ulong)(Random.Next(0, int.MaxValue));
- _dataTable = new SimpleScalarUnaryOpTest__DataTable<UInt64>(new UInt64[RetElementCount], LargestVectorSize);
+ _dataTable = new ScalarSimdUnaryOpTest__DataTable<UInt64>(new UInt64[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Sse2.IsSupported;
public void RunLclFldScenario()
{
- var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt64();
+ var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt64();
var result = Sse2.SetAllVector128(test._fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
<Compile Include="..\Shared\Program.cs" />
<Compile Include="..\Shared\SimpleBinOpTest_DataTable.cs" />
<Compile Include="..\Shared\SimpleUnOpTest_DataTable.cs" />
- <Compile Include="..\Shared\ScalarUnOpTest_DataTable.cs" />
+ <Compile Include="..\Shared\ScalarSimdUnOpTest_DataTable.cs" />
<Compile Include="Sse2Verify.cs" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
<Compile Include="..\Shared\Program.cs" />
<Compile Include="..\Shared\SimpleBinOpTest_DataTable.cs" />
<Compile Include="..\Shared\SimpleUnOpTest_DataTable.cs" />
- <Compile Include="..\Shared\ScalarUnOpTest_DataTable.cs" />
+ <Compile Include="..\Shared\ScalarSimdUnOpTest_DataTable.cs" />
<Compile Include="Sse2Verify.cs" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />