From a6f31e0c252eb87c5d8d033d20d8c5b213f6e7b7 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Wed, 4 Jul 2018 07:55:28 -0700 Subject: [PATCH] Renaming ScalarUnOpTest to ScalarSimdUnOpTest Commit migrated from https://github.com/dotnet/coreclr/commit/7bec88e95e9836e37cc62fb7797e2addf507fc23 --- .../HardwareIntrinsics/X86/Shared/GenerateTests.csx | 18 +++++++++--------- ...arUnOpTest.template => ScalarSimdUnOpTest.template} | 14 +++++++------- ...st_DataTable.cs => ScalarSimdUnOpTest_DataTable.cs} | 4 ++-- .../X86/Sse2/SetAllVector128.Byte.cs | 14 +++++++------- .../X86/Sse2/SetAllVector128.Double.cs | 14 +++++++------- .../X86/Sse2/SetAllVector128.Int16.cs | 14 +++++++------- .../X86/Sse2/SetAllVector128.Int32.cs | 14 +++++++------- .../X86/Sse2/SetAllVector128.Int64.cs | 14 +++++++------- .../X86/Sse2/SetAllVector128.SByte.cs | 14 +++++++------- .../X86/Sse2/SetAllVector128.UInt16.cs | 14 +++++++------- .../X86/Sse2/SetAllVector128.UInt32.cs | 14 +++++++------- .../X86/Sse2/SetAllVector128.UInt64.cs | 14 +++++++------- .../src/JIT/HardwareIntrinsics/X86/Sse2/Sse2_r.csproj | 2 +- .../src/JIT/HardwareIntrinsics/X86/Sse2/Sse2_ro.csproj | 2 +- 14 files changed, 83 insertions(+), 83 deletions(-) rename src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/{ScalarUnOpTest.template => ScalarSimdUnOpTest.template} (91%) rename src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/{ScalarUnOpTest_DataTable.cs => ScalarSimdUnOpTest_DataTable.cs} (89%) diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/GenerateTests.csx b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/GenerateTests.csx index 039e4d4..47c5f5f 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/GenerateTests.csx +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/GenerateTests.csx @@ -162,15 +162,15 @@ private static readonly (string templateFileName, Dictionary tem ("SimpleBinOpTest.template", new Dictionary { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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 { ["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]"}), diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarUnOpTest.template b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarSimdUnOpTest.template similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarUnOpTest.template rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarSimdUnOpTest.template index 69e1d73..0c61993 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarUnOpTest.template +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarSimdUnOpTest.template @@ -29,7 +29,7 @@ namespace JIT.HardwareIntrinsics.X86 return; } - var test = new SimpleScalarUnaryOpTest__{Method}{RetBaseType}(); + var test = new ScalarSimdUnaryOpTest__{Method}{RetBaseType}(); if (test.IsSupported) { @@ -64,7 +64,7 @@ namespace JIT.HardwareIntrinsics.X86 } } - public sealed unsafe class SimpleScalarUnaryOpTest__{Method}{RetBaseType} + public sealed unsafe class ScalarSimdUnaryOpTest__{Method}{RetBaseType} { private static readonly int LargestVectorSize = {LargestVectorSize}; @@ -76,19 +76,19 @@ namespace JIT.HardwareIntrinsics.X86 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; @@ -137,7 +137,7 @@ namespace JIT.HardwareIntrinsics.X86 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); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarUnOpTest_DataTable.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarSimdUnOpTest_DataTable.cs similarity index 89% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarUnOpTest_DataTable.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarSimdUnOpTest_DataTable.cs index 2d5532d..30467ae 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarUnOpTest_DataTable.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Shared/ScalarSimdUnOpTest_DataTable.cs @@ -11,7 +11,7 @@ using System.Runtime.Intrinsics.X86; namespace JIT.HardwareIntrinsics.X86 { - public unsafe struct SimpleScalarUnaryOpTest__DataTable : IDisposable + public unsafe struct ScalarSimdUnaryOpTest__DataTable : IDisposable where TResult : struct { public byte[] outArray; @@ -20,7 +20,7 @@ namespace JIT.HardwareIntrinsics.X86 private ulong alignment; - public SimpleScalarUnaryOpTest__DataTable(TResult[] outArray, int alignment) + public ScalarSimdUnaryOpTest__DataTable(TResult[] outArray, int alignment) { int sizeOfoutArray = outArray.Length * Unsafe.SizeOf(); if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfoutArray) diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Byte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Byte.cs index 010cd26..ccf6a8d 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Byte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Byte.cs @@ -29,7 +29,7 @@ namespace JIT.HardwareIntrinsics.X86 return; } - var test = new SimpleScalarUnaryOpTest__SetAllVector128Byte(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128Byte(); if (test.IsSupported) { @@ -64,7 +64,7 @@ namespace JIT.HardwareIntrinsics.X86 } } - public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128Byte + public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128Byte { private static readonly int LargestVectorSize = 16; @@ -76,19 +76,19 @@ namespace JIT.HardwareIntrinsics.X86 private Byte _fld; - private SimpleScalarUnaryOpTest__DataTable _dataTable; + private ScalarSimdUnaryOpTest__DataTable _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(new Byte[RetElementCount], LargestVectorSize); + _dataTable = new ScalarSimdUnaryOpTest__DataTable(new Byte[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; @@ -137,7 +137,7 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclFldScenario() { - var test = new SimpleScalarUnaryOpTest__SetAllVector128Byte(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128Byte(); var result = Sse2.SetAllVector128(test._fld); Unsafe.Write(_dataTable.outArrayPtr, result); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Double.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Double.cs index 190d306..661d1e1 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Double.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Double.cs @@ -29,7 +29,7 @@ namespace JIT.HardwareIntrinsics.X86 return; } - var test = new SimpleScalarUnaryOpTest__SetAllVector128Double(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128Double(); if (test.IsSupported) { @@ -64,7 +64,7 @@ namespace JIT.HardwareIntrinsics.X86 } } - public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128Double + public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128Double { private static readonly int LargestVectorSize = 16; @@ -76,19 +76,19 @@ namespace JIT.HardwareIntrinsics.X86 private Double _fld; - private SimpleScalarUnaryOpTest__DataTable _dataTable; + private ScalarSimdUnaryOpTest__DataTable _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(new Double[RetElementCount], LargestVectorSize); + _dataTable = new ScalarSimdUnaryOpTest__DataTable(new Double[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; @@ -137,7 +137,7 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclFldScenario() { - var test = new SimpleScalarUnaryOpTest__SetAllVector128Double(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128Double(); var result = Sse2.SetAllVector128(test._fld); Unsafe.Write(_dataTable.outArrayPtr, result); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int16.cs index 43d9a83..31f5cde 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int16.cs @@ -29,7 +29,7 @@ namespace JIT.HardwareIntrinsics.X86 return; } - var test = new SimpleScalarUnaryOpTest__SetAllVector128Int16(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128Int16(); if (test.IsSupported) { @@ -64,7 +64,7 @@ namespace JIT.HardwareIntrinsics.X86 } } - public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128Int16 + public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128Int16 { private static readonly int LargestVectorSize = 16; @@ -76,19 +76,19 @@ namespace JIT.HardwareIntrinsics.X86 private Int16 _fld; - private SimpleScalarUnaryOpTest__DataTable _dataTable; + private ScalarSimdUnaryOpTest__DataTable _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(new Int16[RetElementCount], LargestVectorSize); + _dataTable = new ScalarSimdUnaryOpTest__DataTable(new Int16[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; @@ -137,7 +137,7 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclFldScenario() { - var test = new SimpleScalarUnaryOpTest__SetAllVector128Int16(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128Int16(); var result = Sse2.SetAllVector128(test._fld); Unsafe.Write(_dataTable.outArrayPtr, result); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int32.cs index 9ebad56..91a86b9 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int32.cs @@ -29,7 +29,7 @@ namespace JIT.HardwareIntrinsics.X86 return; } - var test = new SimpleScalarUnaryOpTest__SetAllVector128Int32(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128Int32(); if (test.IsSupported) { @@ -64,7 +64,7 @@ namespace JIT.HardwareIntrinsics.X86 } } - public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128Int32 + public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128Int32 { private static readonly int LargestVectorSize = 16; @@ -76,19 +76,19 @@ namespace JIT.HardwareIntrinsics.X86 private Int32 _fld; - private SimpleScalarUnaryOpTest__DataTable _dataTable; + private ScalarSimdUnaryOpTest__DataTable _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(new Int32[RetElementCount], LargestVectorSize); + _dataTable = new ScalarSimdUnaryOpTest__DataTable(new Int32[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; @@ -137,7 +137,7 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclFldScenario() { - var test = new SimpleScalarUnaryOpTest__SetAllVector128Int32(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128Int32(); var result = Sse2.SetAllVector128(test._fld); Unsafe.Write(_dataTable.outArrayPtr, result); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int64.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int64.cs index c97deb5..c526dae 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int64.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.Int64.cs @@ -29,7 +29,7 @@ namespace JIT.HardwareIntrinsics.X86 return; } - var test = new SimpleScalarUnaryOpTest__SetAllVector128Int64(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128Int64(); if (test.IsSupported) { @@ -64,7 +64,7 @@ namespace JIT.HardwareIntrinsics.X86 } } - public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128Int64 + public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128Int64 { private static readonly int LargestVectorSize = 16; @@ -76,19 +76,19 @@ namespace JIT.HardwareIntrinsics.X86 private Int64 _fld; - private SimpleScalarUnaryOpTest__DataTable _dataTable; + private ScalarSimdUnaryOpTest__DataTable _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(new Int64[RetElementCount], LargestVectorSize); + _dataTable = new ScalarSimdUnaryOpTest__DataTable(new Int64[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; @@ -137,7 +137,7 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclFldScenario() { - var test = new SimpleScalarUnaryOpTest__SetAllVector128Int64(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128Int64(); var result = Sse2.SetAllVector128(test._fld); Unsafe.Write(_dataTable.outArrayPtr, result); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.SByte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.SByte.cs index 355d90b..151226b 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.SByte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.SByte.cs @@ -29,7 +29,7 @@ namespace JIT.HardwareIntrinsics.X86 return; } - var test = new SimpleScalarUnaryOpTest__SetAllVector128SByte(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128SByte(); if (test.IsSupported) { @@ -64,7 +64,7 @@ namespace JIT.HardwareIntrinsics.X86 } } - public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128SByte + public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128SByte { private static readonly int LargestVectorSize = 16; @@ -76,19 +76,19 @@ namespace JIT.HardwareIntrinsics.X86 private SByte _fld; - private SimpleScalarUnaryOpTest__DataTable _dataTable; + private ScalarSimdUnaryOpTest__DataTable _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(new SByte[RetElementCount], LargestVectorSize); + _dataTable = new ScalarSimdUnaryOpTest__DataTable(new SByte[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; @@ -137,7 +137,7 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclFldScenario() { - var test = new SimpleScalarUnaryOpTest__SetAllVector128SByte(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128SByte(); var result = Sse2.SetAllVector128(test._fld); Unsafe.Write(_dataTable.outArrayPtr, result); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt16.cs index b11e336..a13a8dc 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt16.cs @@ -29,7 +29,7 @@ namespace JIT.HardwareIntrinsics.X86 return; } - var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt16(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt16(); if (test.IsSupported) { @@ -64,7 +64,7 @@ namespace JIT.HardwareIntrinsics.X86 } } - public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128UInt16 + public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128UInt16 { private static readonly int LargestVectorSize = 16; @@ -76,19 +76,19 @@ namespace JIT.HardwareIntrinsics.X86 private UInt16 _fld; - private SimpleScalarUnaryOpTest__DataTable _dataTable; + private ScalarSimdUnaryOpTest__DataTable _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(new UInt16[RetElementCount], LargestVectorSize); + _dataTable = new ScalarSimdUnaryOpTest__DataTable(new UInt16[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; @@ -137,7 +137,7 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclFldScenario() { - var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt16(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt16(); var result = Sse2.SetAllVector128(test._fld); Unsafe.Write(_dataTable.outArrayPtr, result); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt32.cs index 548cf6e..5c0f76b 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt32.cs @@ -29,7 +29,7 @@ namespace JIT.HardwareIntrinsics.X86 return; } - var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt32(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt32(); if (test.IsSupported) { @@ -64,7 +64,7 @@ namespace JIT.HardwareIntrinsics.X86 } } - public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128UInt32 + public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128UInt32 { private static readonly int LargestVectorSize = 16; @@ -76,19 +76,19 @@ namespace JIT.HardwareIntrinsics.X86 private UInt32 _fld; - private SimpleScalarUnaryOpTest__DataTable _dataTable; + private ScalarSimdUnaryOpTest__DataTable _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(new UInt32[RetElementCount], LargestVectorSize); + _dataTable = new ScalarSimdUnaryOpTest__DataTable(new UInt32[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; @@ -137,7 +137,7 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclFldScenario() { - var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt32(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt32(); var result = Sse2.SetAllVector128(test._fld); Unsafe.Write(_dataTable.outArrayPtr, result); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt64.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt64.cs index 3881ae6..42eef9b 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt64.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/SetAllVector128.UInt64.cs @@ -29,7 +29,7 @@ namespace JIT.HardwareIntrinsics.X86 return; } - var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt64(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt64(); if (test.IsSupported) { @@ -64,7 +64,7 @@ namespace JIT.HardwareIntrinsics.X86 } } - public sealed unsafe class SimpleScalarUnaryOpTest__SetAllVector128UInt64 + public sealed unsafe class ScalarSimdUnaryOpTest__SetAllVector128UInt64 { private static readonly int LargestVectorSize = 16; @@ -76,19 +76,19 @@ namespace JIT.HardwareIntrinsics.X86 private UInt64 _fld; - private SimpleScalarUnaryOpTest__DataTable _dataTable; + private ScalarSimdUnaryOpTest__DataTable _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(new UInt64[RetElementCount], LargestVectorSize); + _dataTable = new ScalarSimdUnaryOpTest__DataTable(new UInt64[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; @@ -137,7 +137,7 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclFldScenario() { - var test = new SimpleScalarUnaryOpTest__SetAllVector128UInt64(); + var test = new ScalarSimdUnaryOpTest__SetAllVector128UInt64(); var result = Sse2.SetAllVector128(test._fld); Unsafe.Write(_dataTable.outArrayPtr, result); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/Sse2_r.csproj b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/Sse2_r.csproj index 0769a9d..6099893 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/Sse2_r.csproj +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/Sse2_r.csproj @@ -192,7 +192,7 @@ - + diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/Sse2_ro.csproj b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/Sse2_ro.csproj index cdf3e71..75357dd 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/Sse2_ro.csproj +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/Sse2_ro.csproj @@ -192,7 +192,7 @@ - + -- 2.7.4