diff options
author | Tanner Gooding <tagoo@outlook.com> | 2018-08-06 08:08:06 -0700 |
---|---|---|
committer | Tanner Gooding <tagoo@outlook.com> | 2018-08-06 11:00:33 -0700 |
commit | 3b9b7b6edf77819f6b9670b0857d8757e95e9fb0 (patch) | |
tree | 08471bbf838d6027ca85126bcaba7a4ed0ade2cc /tests/src/JIT/HardwareIntrinsics/X86/Fma_Vector256/MultiplySubtractNegated.Double.cs | |
parent | 588de48d8cf16f03654037a4638eae93a3baaccc (diff) | |
download | coreclr-3b9b7b6edf77819f6b9670b0857d8757e95e9fb0.tar.gz coreclr-3b9b7b6edf77819f6b9670b0857d8757e95e9fb0.tar.bz2 coreclr-3b9b7b6edf77819f6b9670b0857d8757e95e9fb0.zip |
Regenerating the templated x86 HWIntrinsic tests.
Diffstat (limited to 'tests/src/JIT/HardwareIntrinsics/X86/Fma_Vector256/MultiplySubtractNegated.Double.cs')
-rw-r--r-- | tests/src/JIT/HardwareIntrinsics/X86/Fma_Vector256/MultiplySubtractNegated.Double.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/src/JIT/HardwareIntrinsics/X86/Fma_Vector256/MultiplySubtractNegated.Double.cs b/tests/src/JIT/HardwareIntrinsics/X86/Fma_Vector256/MultiplySubtractNegated.Double.cs index c88c066b92..17b5381ea6 100644 --- a/tests/src/JIT/HardwareIntrinsics/X86/Fma_Vector256/MultiplySubtractNegated.Double.cs +++ b/tests/src/JIT/HardwareIntrinsics/X86/Fma_Vector256/MultiplySubtractNegated.Double.cs @@ -174,6 +174,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunBasicScenario_UnsafeRead() { + TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); + var result = Fma.MultiplySubtractNegated( Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr), @@ -186,6 +188,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunBasicScenario_Load() { + TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); + var result = Fma.MultiplySubtractNegated( Avx.LoadVector256((Double*)(_dataTable.inArray1Ptr)), Avx.LoadVector256((Double*)(_dataTable.inArray2Ptr)), @@ -198,6 +202,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunBasicScenario_LoadAligned() { + TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned)); + var result = Fma.MultiplySubtractNegated( Avx.LoadAlignedVector256((Double*)(_dataTable.inArray1Ptr)), Avx.LoadAlignedVector256((Double*)(_dataTable.inArray2Ptr)), @@ -210,6 +216,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunReflectionScenario_UnsafeRead() { + TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); + var result = typeof(Fma).GetMethod(nameof(Fma.MultiplySubtractNegated), new Type[] { typeof(Vector256<Double>), typeof(Vector256<Double>), typeof(Vector256<Double>) }) .Invoke(null, new object[] { Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr), @@ -223,6 +231,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunReflectionScenario_Load() { + TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); + var result = typeof(Fma).GetMethod(nameof(Fma.MultiplySubtractNegated), new Type[] { typeof(Vector256<Double>), typeof(Vector256<Double>), typeof(Vector256<Double>) }) .Invoke(null, new object[] { Avx.LoadVector256((Double*)(_dataTable.inArray1Ptr)), @@ -236,6 +246,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunReflectionScenario_LoadAligned() { + TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); + var result = typeof(Fma).GetMethod(nameof(Fma.MultiplySubtractNegated), new Type[] { typeof(Vector256<Double>), typeof(Vector256<Double>), typeof(Vector256<Double>) }) .Invoke(null, new object[] { Avx.LoadAlignedVector256((Double*)(_dataTable.inArray1Ptr)), @@ -249,6 +261,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunClsVarScenario() { + TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); + var result = Fma.MultiplySubtractNegated( _clsVar1, _clsVar2, @@ -261,6 +275,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclVarScenario_UnsafeRead() { + TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); + var firstOp = Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr); var secondOp = Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr); var thirdOp = Unsafe.Read<Vector256<Double>>(_dataTable.inArray3Ptr); @@ -272,6 +288,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclVarScenario_Load() { + TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); + var firstOp = Avx.LoadVector256((Double*)(_dataTable.inArray1Ptr)); var secondOp = Avx.LoadVector256((Double*)(_dataTable.inArray2Ptr)); var thirdOp = Avx.LoadVector256((Double*)(_dataTable.inArray3Ptr)); @@ -283,6 +301,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunLclVarScenario_LoadAligned() { + TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); + var firstOp = Avx.LoadAlignedVector256((Double*)(_dataTable.inArray1Ptr)); var secondOp = Avx.LoadAlignedVector256((Double*)(_dataTable.inArray2Ptr)); var thirdOp = Avx.LoadAlignedVector256((Double*)(_dataTable.inArray3Ptr)); @@ -294,6 +314,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunClassLclFldScenario() { + TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); + var test = new SimpleTernaryOpTest__MultiplySubtractNegatedDouble(); var result = Fma.MultiplySubtractNegated(test._fld1, test._fld2, test._fld3); @@ -303,6 +325,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunClassFldScenario() { + TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); + var result = Fma.MultiplySubtractNegated(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); @@ -311,6 +335,8 @@ namespace JIT.HardwareIntrinsics.X86 public void RunStructLclFldScenario() { + TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); + var test = TestStruct.Create(); var result = Fma.MultiplySubtractNegated(test._fld1, test._fld2, test._fld3); @@ -320,12 +346,16 @@ namespace JIT.HardwareIntrinsics.X86 public void RunStructFldScenario() { + TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); + var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunUnsupportedScenario() { + TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); + Succeeded = false; try |