diff --git a/src/coreclr/src/jit/hwintrinsiclistarm64.h b/src/coreclr/src/jit/hwintrinsiclistarm64.h index bd192bd217bfb..ec39efddb4441 100644 --- a/src/coreclr/src/jit/hwintrinsiclistarm64.h +++ b/src/coreclr/src/jit/hwintrinsiclistarm64.h @@ -69,15 +69,15 @@ HARDWARE_INTRINSIC(AdvSimd, AbsoluteDifferenceWideningLowerAndAdd, HARDWARE_INTRINSIC(AdvSimd, AbsoluteDifferenceWideningUpper, 16, 2, {INS_sabdl2, INS_uabdl2, INS_sabdl2, INS_uabdl2, INS_sabdl2, INS_uabdl2, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_Commutative|HW_Flag_BaseTypeFromFirstArg) HARDWARE_INTRINSIC(AdvSimd, AbsoluteDifferenceWideningUpperAndAdd, 16, 3, {INS_sabal2, INS_uabal2, INS_sabal2, INS_uabal2, INS_sabal2, INS_uabal2, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_HasRMWSemantics|HW_Flag_BaseTypeFromSecondArg) HARDWARE_INTRINSIC(AdvSimd, Add, -1, 2, {INS_add, INS_add, INS_add, INS_add, INS_add, INS_add, INS_add, INS_add, INS_fadd, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_Commutative) +HARDWARE_INTRINSIC(AdvSimd, AddHighNarrowLower, 8, 2, {INS_addhn, INS_addhn, INS_addhn, INS_addhn, INS_addhn, INS_addhn, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_Commutative) +HARDWARE_INTRINSIC(AdvSimd, AddHighNarrowUpper, 16, 3, {INS_addhn2, INS_addhn2, INS_addhn2, INS_addhn2, INS_addhn2, INS_addhn2, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_HasRMWSemantics) HARDWARE_INTRINSIC(AdvSimd, AddPairwise, 8, 2, {INS_addp, INS_addp, INS_addp, INS_addp, INS_addp, INS_addp, INS_invalid, INS_invalid, INS_faddp, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_NoFlag) HARDWARE_INTRINSIC(AdvSimd, AddPairwiseWidening, -1, 1, {INS_saddlp, INS_uaddlp, INS_saddlp, INS_uaddlp, INS_saddlp, INS_uaddlp, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_BaseTypeFromFirstArg) HARDWARE_INTRINSIC(AdvSimd, AddPairwiseWideningAndAdd, -1, 2, {INS_sadalp, INS_uadalp, INS_sadalp, INS_uadalp, INS_sadalp, INS_uadalp, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_HasRMWSemantics|HW_Flag_BaseTypeFromSecondArg) HARDWARE_INTRINSIC(AdvSimd, AddPairwiseWideningAndAddScalar, 8, 2, {INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_sadalp, INS_uadalp, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_HasRMWSemantics|HW_Flag_BaseTypeFromSecondArg) HARDWARE_INTRINSIC(AdvSimd, AddPairwiseWideningScalar, 8, 1, {INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_saddlp, INS_uaddlp, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_BaseTypeFromFirstArg) -HARDWARE_INTRINSIC(AdvSimd, AddReturningHighNarrowLower, 8, 2, {INS_addhn, INS_addhn, INS_addhn, INS_addhn, INS_addhn, INS_addhn, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_Commutative) -HARDWARE_INTRINSIC(AdvSimd, AddReturningHighNarrowUpper, 16, 3, {INS_addhn2, INS_addhn2, INS_addhn2, INS_addhn2, INS_addhn2, INS_addhn2, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_HasRMWSemantics) -HARDWARE_INTRINSIC(AdvSimd, AddReturningRoundedHighNarrowLower, 8, 2, {INS_raddhn, INS_raddhn, INS_raddhn, INS_raddhn, INS_raddhn, INS_raddhn, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_Commutative) -HARDWARE_INTRINSIC(AdvSimd, AddReturningRoundedHighNarrowUpper, 16, 3, {INS_raddhn2, INS_raddhn2, INS_raddhn2, INS_raddhn2, INS_raddhn2, INS_raddhn2, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_HasRMWSemantics) +HARDWARE_INTRINSIC(AdvSimd, AddRoundedHighNarrowLower, 8, 2, {INS_raddhn, INS_raddhn, INS_raddhn, INS_raddhn, INS_raddhn, INS_raddhn, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_Commutative) +HARDWARE_INTRINSIC(AdvSimd, AddRoundedHighNarrowUpper, 16, 3, {INS_raddhn2, INS_raddhn2, INS_raddhn2, INS_raddhn2, INS_raddhn2, INS_raddhn2, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_HasRMWSemantics) HARDWARE_INTRINSIC(AdvSimd, AddSaturate, -1, 2, {INS_sqadd, INS_uqadd, INS_sqadd, INS_uqadd, INS_sqadd, INS_uqadd, INS_sqadd, INS_uqadd, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_Commutative) HARDWARE_INTRINSIC(AdvSimd, AddSaturateScalar, 8, 2, {INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_sqadd, INS_uqadd, INS_invalid, INS_invalid}, HW_Category_SIMDScalar, HW_Flag_Commutative) HARDWARE_INTRINSIC(AdvSimd, AddScalar, 8, 2, {INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_add, INS_add, INS_fadd, INS_fadd}, HW_Category_SIMDScalar, HW_Flag_Commutative) @@ -144,10 +144,10 @@ HARDWARE_INTRINSIC(AdvSimd, ReciprocalStep, - HARDWARE_INTRINSIC(AdvSimd, SqrtScalar, 8, 1, {INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_fsqrt, INS_fsqrt}, HW_Category_SIMDScalar, HW_Flag_NoFlag) HARDWARE_INTRINSIC(AdvSimd, Store, -1, 2, {INS_st1, INS_st1, INS_st1, INS_st1, INS_st1, INS_st1, INS_st1, INS_st1, INS_st1, INS_st1}, HW_Category_MemoryStore, HW_Flag_SpecialCodeGen|HW_Flag_BaseTypeFromSecondArg) HARDWARE_INTRINSIC(AdvSimd, Subtract, -1, 2, {INS_sub, INS_sub, INS_sub, INS_sub, INS_sub, INS_sub, INS_sub, INS_sub, INS_fsub, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_NoFlag) -HARDWARE_INTRINSIC(AdvSimd, SubtractReturningHighNarrowLower, 8, 2, {INS_subhn, INS_subhn, INS_subhn, INS_subhn, INS_subhn, INS_subhn, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_NoFlag) -HARDWARE_INTRINSIC(AdvSimd, SubtractReturningHighNarrowUpper, 16, 3, {INS_subhn2, INS_subhn2, INS_subhn2, INS_subhn2, INS_subhn2, INS_subhn2, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_HasRMWSemantics) -HARDWARE_INTRINSIC(AdvSimd, SubtractReturningRoundedHighNarrowLower, 8, 2, {INS_rsubhn, INS_rsubhn, INS_rsubhn, INS_rsubhn, INS_rsubhn, INS_rsubhn, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_NoFlag) -HARDWARE_INTRINSIC(AdvSimd, SubtractReturningRoundedHighNarrowUpper, 16, 3, {INS_rsubhn2, INS_rsubhn2, INS_rsubhn2, INS_rsubhn2, INS_rsubhn2, INS_rsubhn2, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_HasRMWSemantics) +HARDWARE_INTRINSIC(AdvSimd, SubtractHighNarrowLower, 8, 2, {INS_subhn, INS_subhn, INS_subhn, INS_subhn, INS_subhn, INS_subhn, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_NoFlag) +HARDWARE_INTRINSIC(AdvSimd, SubtractHighNarrowUpper, 16, 3, {INS_subhn2, INS_subhn2, INS_subhn2, INS_subhn2, INS_subhn2, INS_subhn2, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_HasRMWSemantics) +HARDWARE_INTRINSIC(AdvSimd, SubtractRoundedHighNarrowLower, 8, 2, {INS_rsubhn, INS_rsubhn, INS_rsubhn, INS_rsubhn, INS_rsubhn, INS_rsubhn, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_NoFlag) +HARDWARE_INTRINSIC(AdvSimd, SubtractRoundedHighNarrowUpper, 16, 3, {INS_rsubhn2, INS_rsubhn2, INS_rsubhn2, INS_rsubhn2, INS_rsubhn2, INS_rsubhn2, INS_invalid, INS_invalid, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_HasRMWSemantics) HARDWARE_INTRINSIC(AdvSimd, SubtractSaturate, -1, 2, {INS_sqsub, INS_uqsub, INS_sqsub, INS_uqsub, INS_sqsub, INS_uqsub, INS_sqsub, INS_uqsub, INS_invalid, INS_invalid}, HW_Category_SimpleSIMD, HW_Flag_NoFlag) HARDWARE_INTRINSIC(AdvSimd, SubtractSaturateScalar, 8, 2, {INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_sqsub, INS_uqsub, INS_invalid, INS_invalid}, HW_Category_SIMDScalar, HW_Flag_NoFlag) HARDWARE_INTRINSIC(AdvSimd, SubtractScalar, 8, 2, {INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_invalid, INS_sub, INS_sub, INS_fsub, INS_fsub}, HW_Category_SIMDScalar, HW_Flag_NoFlag) diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.Byte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.Byte.cs similarity index 89% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.Byte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.Byte.cs index 5d8bd3f85dc95..3afd373050037 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.Byte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.Byte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowLower_Vector64_Byte() + private static void AddHighNarrowLower_Vector64_Byte() { - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Byte(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Byte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowLower_Vector64_Byte() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Byte + public sealed unsafe class SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Byte { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Byte testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Byte testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Byte testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Byte testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRound private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Byte() + static SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Byte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Byte Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Byte() + public SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Byte() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pClsVar1)), AdvSimd.LoadVector128((UInt16*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Byte(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Byte(); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Byte(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Byte(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(&test._fld1)), AdvSimd.LoadVector128((UInt16*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt16[] left, UInt16[] right, Byte[] result, [Calle for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt16[] left, UInt16[] right, Byte[] result, [Calle if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.Int16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.Int16.cs similarity index 89% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.Int16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.Int16.cs index 461a9e67c239c..5b7b69db8a75f 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.Int16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.Int16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowLower_Vector64_Int16() + private static void AddHighNarrowLower_Vector64_Int16() { - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int16(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowLower_Vector64_Int16() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int16 + public sealed unsafe class SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int16 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int16 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int16 testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int16 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int16 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRound private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int16() + static SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int1 Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int16() + public SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int16() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int16(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int16(); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int16(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int16(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int32[] left, Int32[] right, Int16[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int32[] left, Int32[] right, Int16[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.Int32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.Int32.cs similarity index 89% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.Int32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.Int32.cs index 620812e188efc..dd832dd534564 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.Int32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.Int32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowLower_Vector64_Int32() + private static void AddHighNarrowLower_Vector64_Int32() { - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int32(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowLower_Vector64_Int32() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int32 + public sealed unsafe class SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int32 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int32 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int32 testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int32 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int32 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRound private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int32() + static SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int3 Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int32() + public SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int32() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pClsVar1)), AdvSimd.LoadVector128((Int64*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int32(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int32(); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_Int32(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_Int32(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int64*)(&test._fld1)), AdvSimd.LoadVector128((Int64*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int64[] left, Int64[] right, Int32[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int64[] left, Int64[] right, Int32[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.SByte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.SByte.cs similarity index 89% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.SByte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.SByte.cs index 910c8781999c7..89fe1b5029ecb 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.SByte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.SByte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowLower_Vector64_SByte() + private static void AddHighNarrowLower_Vector64_SByte() { - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_SByte(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_SByte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowLower_Vector64_SByte() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_SByte + public sealed unsafe class SimpleBinaryOpTest__AddHighNarrowLower_Vector64_SByte { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_SByte testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_SByte testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_SByte testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_SByte testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRound private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_SByte() + static SimpleBinaryOpTest__AddHighNarrowLower_Vector64_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_SByt Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_SByte() + public SimpleBinaryOpTest__AddHighNarrowLower_Vector64_SByte() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pClsVar1)), AdvSimd.LoadVector128((Int16*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_SByte(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_SByte(); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_SByte(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_SByte(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((Int16*)(&test._fld1)), AdvSimd.LoadVector128((Int16*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int16[] left, Int16[] right, SByte[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int16[] left, Int16[] right, SByte[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.UInt16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.UInt16.cs similarity index 89% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.UInt16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.UInt16.cs index a94328c85d3f6..b61ff798ed8cf 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.UInt16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.UInt16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowLower_Vector64_UInt16() + private static void AddHighNarrowLower_Vector64_UInt16() { - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt16(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowLower_Vector64_UInt16() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt16 + public sealed unsafe class SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt16 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt16 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt16 testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt16 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt16 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRound private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt16() + static SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt16() + public SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt16() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pClsVar1)), AdvSimd.LoadVector128((UInt32*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt16(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt16(); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt16(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt16(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(&test._fld1)), AdvSimd.LoadVector128((UInt32*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt32[] left, UInt32[] right, UInt16[] result, [Cal for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt32[] left, UInt32[] right, UInt16[] result, [Cal if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.UInt32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.UInt32.cs similarity index 89% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.UInt32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.UInt32.cs index 6f720f8dc5da8..9d3c0769354f9 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowLower.Vector64.UInt32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowLower.Vector64.UInt32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowLower_Vector64_UInt32() + private static void AddHighNarrowLower_Vector64_UInt32() { - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt32(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowLower_Vector64_UInt32() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt32 + public sealed unsafe class SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt32 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt32 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt32 testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt32 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt32 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningRound private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt32() + static SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt32() + public SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt32() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pClsVar1)), AdvSimd.LoadVector128((UInt64*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.AddHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt32(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt32(); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningRoundedHighNarrowLower_Vector64_UInt32(); + var test = new SimpleBinaryOpTest__AddHighNarrowLower_Vector64_UInt32(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowLower( + var result = AdvSimd.AddHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(&test._fld1)), AdvSimd.LoadVector128((UInt64*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt64[] left, UInt64[] right, UInt32[] result, [Cal for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt64[] left, UInt64[] right, UInt32[] result, [Cal if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.Byte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.Byte.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.Byte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.Byte.cs index 062f43f5629bb..7a070b8a17920 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.Byte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.Byte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowUpper_Vector128_Byte() + private static void AddHighNarrowUpper_Vector128_Byte() { - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Byte(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Byte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowUpper_Vector128_Byte() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Byte + public sealed unsafe class SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Byte { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Byte testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Byte testClass) { - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Byte testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Byte testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHigh private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Byte() + static SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Byte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Byte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Byte() + public SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Byte() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pClsVar1)), AdvSimd.LoadVector128((UInt16*)(pClsVar2)), AdvSimd.LoadVector128((UInt16*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Byte(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Byte(); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Byte(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Byte(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(&test._fld1)), AdvSimd.LoadVector128((UInt16*)(&test._fld2)), AdvSimd.LoadVector128((UInt16*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Byte[] firstOp, UInt16[] secondOp, UInt16[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Byte[] firstOp, UInt16[] secondOp, UInt16[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.Int16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.Int16.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.Int16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.Int16.cs index d9c07e12e15c6..a3897efe7c132 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.Int16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.Int16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowUpper_Vector128_Int16() + private static void AddHighNarrowUpper_Vector128_Int16() { - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int16(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowUpper_Vector128_Int16() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int16 + public sealed unsafe class SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int16 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int16 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int16 testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int16 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int16 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHi private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int16() + static SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int16() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int16() + public SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int16() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(pClsVar2)), AdvSimd.LoadVector128((Int32*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int16(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int16(); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int16(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int16(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&test._fld2)), AdvSimd.LoadVector128((Int32*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Int16[] firstOp, Int32[] secondOp, Int32[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Int16[] firstOp, Int32[] secondOp, Int32[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.Int32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.Int32.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.Int32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.Int32.cs index a16ee2d136605..45740dbbcee63 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.Int32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.Int32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowUpper_Vector128_Int32() + private static void AddHighNarrowUpper_Vector128_Int32() { - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int32(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowUpper_Vector128_Int32() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int32 + public sealed unsafe class SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int32 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int32 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int32 testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int32 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int32 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHi private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int32() + static SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int32() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int32() + public SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int32() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int64*)(pClsVar2)), AdvSimd.LoadVector128((Int64*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int32(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int32(); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Int32(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_Int32(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int64*)(&test._fld2)), AdvSimd.LoadVector128((Int64*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Int32[] firstOp, Int64[] secondOp, Int64[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Int32[] firstOp, Int64[] secondOp, Int64[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.SByte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.SByte.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.SByte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.SByte.cs index cf1a0a0d823d3..23d291db07c17 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.SByte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.SByte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowUpper_Vector128_SByte() + private static void AddHighNarrowUpper_Vector128_SByte() { - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_SByte(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_SByte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowUpper_Vector128_SByte() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_SByte + public sealed unsafe class SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_SByte { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_SByte testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_SByte testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_SByte testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_SByte testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHi private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_SByte() + static SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_SByte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_SByte() + public SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_SByte() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pClsVar1)), AdvSimd.LoadVector128((Int16*)(pClsVar2)), AdvSimd.LoadVector128((Int16*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_SByte(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_SByte(); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_SByte(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_SByte(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(&test._fld1)), AdvSimd.LoadVector128((Int16*)(&test._fld2)), AdvSimd.LoadVector128((Int16*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(SByte[] firstOp, Int16[] secondOp, Int16[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(SByte[] firstOp, Int16[] secondOp, Int16[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.UInt16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.UInt16.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.UInt16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.UInt16.cs index 8d2aeb28ff964..aab766401538c 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.UInt16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.UInt16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowUpper_Vector128_UInt16() + private static void AddHighNarrowUpper_Vector128_UInt16() { - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt16(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowUpper_Vector128_UInt16() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt16 + public sealed unsafe class SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt16 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt16 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt16 testClass) { - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt16 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt16 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHigh private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt16() + static SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt16() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt16() + public SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt16() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pClsVar1)), AdvSimd.LoadVector128((UInt32*)(pClsVar2)), AdvSimd.LoadVector128((UInt32*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt16(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt16(); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt16(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt16(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(&test._fld1)), AdvSimd.LoadVector128((UInt32*)(&test._fld2)), AdvSimd.LoadVector128((UInt32*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(UInt16[] firstOp, UInt32[] secondOp, UInt32[] thirdO for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(UInt16[] firstOp, UInt32[] secondOp, UInt32[] thirdO if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.UInt32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.UInt32.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.UInt32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.UInt32.cs index 858e3db611b20..dd881a90a4467 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.UInt32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddHighNarrowUpper.Vector128.UInt32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowUpper_Vector128_UInt32() + private static void AddHighNarrowUpper_Vector128_UInt32() { - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt32(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowUpper_Vector128_UInt32() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt32 + public sealed unsafe class SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt32 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt32 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt32 testClass) { - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt32 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt32 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHigh private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt32() + static SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt32() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt32() + public SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt32() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pClsVar1)), AdvSimd.LoadVector128((UInt64*)(pClsVar2)), AdvSimd.LoadVector128((UInt64*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt32(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt32(); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_UInt32(); + var test = new SimpleTernaryOpTest__AddHighNarrowUpper_Vector128_UInt32(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.AddHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(&test._fld1)), AdvSimd.LoadVector128((UInt64*)(&test._fld2)), AdvSimd.LoadVector128((UInt64*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(UInt32[] firstOp, UInt64[] secondOp, UInt64[] thirdO for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(UInt32[] firstOp, UInt64[] secondOp, UInt64[] thirdO if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.Byte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.Byte.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.Byte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.Byte.cs index dd37156add5ab..b05d6361fbd20 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.Byte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.Byte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowLower_Vector64_Byte() + private static void AddRoundedHighNarrowLower_Vector64_Byte() { - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Byte(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Byte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowLower_Vector64_Byte() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Byte + public sealed unsafe class SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Byte { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Byte testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Byte testClass) { - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Byte testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Byte testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighN private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Byte() + static SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Byte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Byte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Byte() + public SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Byte() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pClsVar1)), AdvSimd.LoadVector128((UInt16*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Byte(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Byte(); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Byte(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Byte(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(&test._fld1)), AdvSimd.LoadVector128((UInt16*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt16[] left, UInt16[] right, Byte[] result, [Calle for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt16[] left, UInt16[] right, Byte[] result, [Calle if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.Int16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.Int16.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.Int16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.Int16.cs index c5e972fa4694b..07985b071e27c 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.Int16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.Int16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowLower_Vector64_Int16() + private static void AddRoundedHighNarrowLower_Vector64_Int16() { - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int16(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowLower_Vector64_Int16() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int16 + public sealed unsafe class SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int16 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int16 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int16 testClass) { - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int16 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int16 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighN private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int16() + static SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int16() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int16() + public SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int16() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int16(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int16(); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int16(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int16(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int32[] left, Int32[] right, Int16[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int32[] left, Int32[] right, Int16[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.Int32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.Int32.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.Int32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.Int32.cs index 3595251d62901..70291f629f7be 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.Int32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.Int32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowLower_Vector64_Int32() + private static void AddRoundedHighNarrowLower_Vector64_Int32() { - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int32(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowLower_Vector64_Int32() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int32 + public sealed unsafe class SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int32 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int32 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int32 testClass) { - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int32 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int32 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighN private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int32() + static SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int32() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int32() + public SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int32() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pClsVar1)), AdvSimd.LoadVector128((Int64*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int32(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int32(); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_Int32(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_Int32(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(&test._fld1)), AdvSimd.LoadVector128((Int64*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int64[] left, Int64[] right, Int32[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int64[] left, Int64[] right, Int32[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.SByte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.SByte.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.SByte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.SByte.cs index f0a908558b14a..3ff7bbe113b0c 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.SByte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.SByte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowLower_Vector64_SByte() + private static void AddRoundedHighNarrowLower_Vector64_SByte() { - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_SByte(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_SByte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowLower_Vector64_SByte() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_SByte + public sealed unsafe class SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_SByte { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_SByte testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_SByte testClass) { - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_SByte testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_SByte testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighN private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_SByte() + static SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_SByte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_SByte() + public SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_SByte() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pClsVar1)), AdvSimd.LoadVector128((Int16*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_SByte(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_SByte(); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_SByte(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_SByte(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(&test._fld1)), AdvSimd.LoadVector128((Int16*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int16[] left, Int16[] right, SByte[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int16[] left, Int16[] right, SByte[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.UInt16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.UInt16.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.UInt16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.UInt16.cs index eca511d7675be..d8c3191bcf669 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.UInt16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.UInt16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowLower_Vector64_UInt16() + private static void AddRoundedHighNarrowLower_Vector64_UInt16() { - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt16(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowLower_Vector64_UInt16() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt16 + public sealed unsafe class SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt16 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt16 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt16 testClass) { - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt16 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt16 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighN private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt16() + static SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt16() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt16() + public SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt16() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pClsVar1)), AdvSimd.LoadVector128((UInt32*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt16(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt16(); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt16(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt16(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(&test._fld1)), AdvSimd.LoadVector128((UInt32*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt32[] left, UInt32[] right, UInt16[] result, [Cal for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt32[] left, UInt32[] right, UInt16[] result, [Cal if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.UInt32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.UInt32.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.UInt32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.UInt32.cs index 84e08fc67ec36..baab52fe7dae7 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowLower.Vector64.UInt32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowLower.Vector64.UInt32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowLower_Vector64_UInt32() + private static void AddRoundedHighNarrowLower_Vector64_UInt32() { - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt32(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowLower_Vector64_UInt32() } } - public sealed unsafe class SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt32 + public sealed unsafe class SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt32 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt32 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt32 testClass) { - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt32 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt32 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractReturningHighN private DataTable _dataTable; - static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt32() + static SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt32() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt32() + public SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt32() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pClsVar1)), AdvSimd.LoadVector128((UInt64*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowLower(op1, op2); + var result = AdvSimd.AddRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt32(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt32(); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__SubtractReturningHighNarrowLower_Vector64_UInt32(); + var test = new SimpleBinaryOpTest__AddRoundedHighNarrowLower_Vector64_UInt32(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.AddRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowLower( + var result = AdvSimd.AddRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(&test._fld1)), AdvSimd.LoadVector128((UInt64*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt64[] left, UInt64[] right, UInt32[] result, [Cal for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt64[] left, UInt64[] right, UInt32[] result, [Cal if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.Byte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.Byte.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.Byte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.Byte.cs index 562d71f9d67d0..e6abcafcc588b 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.Byte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.Byte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowUpper_Vector128_Byte() + private static void AddRoundedHighNarrowUpper_Vector128_Byte() { - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Byte(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Byte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowUpper_Vector128_Byte() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Byte + public sealed unsafe class SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Byte { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Byte testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Byte testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Byte testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Byte testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoun private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Byte() + static SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Byte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_By Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Byte() + public SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Byte() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pClsVar1)), AdvSimd.LoadVector128((UInt16*)(pClsVar2)), AdvSimd.LoadVector128((UInt16*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Byte(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Byte(); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Byte(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Byte(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(&test._fld1)), AdvSimd.LoadVector128((UInt16*)(&test._fld2)), AdvSimd.LoadVector128((UInt16*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Byte[] firstOp, UInt16[] secondOp, UInt16[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Byte[] firstOp, UInt16[] secondOp, UInt16[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.Int16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.Int16.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.Int16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.Int16.cs index ce3bb0f3705f8..bbfae2866920e 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.Int16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.Int16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowUpper_Vector128_Int16() + private static void AddRoundedHighNarrowUpper_Vector128_Int16() { - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int16(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowUpper_Vector128_Int16() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int16 + public sealed unsafe class SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int16 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int16 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int16 testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int16 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int16 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoun private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int16() + static SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_In Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int16() + public SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int16() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(pClsVar2)), AdvSimd.LoadVector128((Int32*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int16(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int16(); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int16(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int16(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&test._fld2)), AdvSimd.LoadVector128((Int32*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Int16[] firstOp, Int32[] secondOp, Int32[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Int16[] firstOp, Int32[] secondOp, Int32[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.Int32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.Int32.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.Int32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.Int32.cs index 773665aeb6d1e..9dc5d969279b1 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.Int32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.Int32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowUpper_Vector128_Int32() + private static void AddRoundedHighNarrowUpper_Vector128_Int32() { - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int32(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowUpper_Vector128_Int32() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int32 + public sealed unsafe class SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int32 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int32 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int32 testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int32 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int32 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoun private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int32() + static SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_In Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int32() + public SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int32() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int64*)(pClsVar2)), AdvSimd.LoadVector128((Int64*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int32(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int32(); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_Int32(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_Int32(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int64*)(&test._fld2)), AdvSimd.LoadVector128((Int64*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Int32[] firstOp, Int64[] secondOp, Int64[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Int32[] firstOp, Int64[] secondOp, Int64[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.SByte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.SByte.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.SByte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.SByte.cs index bdc097d7fb5f9..5ac9c441385ec 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.SByte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.SByte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowUpper_Vector128_SByte() + private static void AddRoundedHighNarrowUpper_Vector128_SByte() { - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_SByte(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_SByte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowUpper_Vector128_SByte() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_SByte + public sealed unsafe class SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_SByte { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_SByte testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_SByte testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_SByte testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_SByte testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoun private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_SByte() + static SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_SB Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_SByte() + public SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_SByte() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pClsVar1)), AdvSimd.LoadVector128((Int16*)(pClsVar2)), AdvSimd.LoadVector128((Int16*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_SByte(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_SByte(); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_SByte(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_SByte(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(&test._fld1)), AdvSimd.LoadVector128((Int16*)(&test._fld2)), AdvSimd.LoadVector128((Int16*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(SByte[] firstOp, Int16[] secondOp, Int16[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(SByte[] firstOp, Int16[] secondOp, Int16[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.UInt16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.UInt16.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.UInt16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.UInt16.cs index 03f61e4b9e4d5..7eddbc5f6d780 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.UInt16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.UInt16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16() + private static void AddRoundedHighNarrowUpper_Vector128_UInt16() { - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16 + public sealed unsafe class SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt16 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt16 testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt16 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoun private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16() + static SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UI Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16() + public SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt16() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pClsVar1)), AdvSimd.LoadVector128((UInt32*)(pClsVar2)), AdvSimd.LoadVector128((UInt32*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt16(); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt16(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(&test._fld1)), AdvSimd.LoadVector128((UInt32*)(&test._fld2)), AdvSimd.LoadVector128((UInt32*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(UInt16[] firstOp, UInt32[] secondOp, UInt32[] thirdO for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(UInt16[] firstOp, UInt32[] secondOp, UInt32[] thirdO if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.UInt32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.UInt32.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.UInt32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.UInt32.cs index 2e1e1af8a603e..fb7e068bd16de 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningRoundedHighNarrowUpper.Vector128.UInt32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddRoundedHighNarrowUpper.Vector128.UInt32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32() + private static void AddRoundedHighNarrowUpper_Vector128_UInt32() { - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32 + public sealed unsafe class SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt32 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt32 testClass) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt32 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningRoun private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32() + static SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UI Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32() + public SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt32() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pClsVar1)), AdvSimd.LoadVector128((UInt64*)(pClsVar2)), AdvSimd.LoadVector128((UInt64*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.AddRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt32(); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32(); + var test = new SimpleTernaryOpTest__AddRoundedHighNarrowUpper_Vector128_UInt32(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.AddRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningRoundedHighNarrowUpper( + var result = AdvSimd.AddRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(&test._fld1)), AdvSimd.LoadVector128((UInt64*)(&test._fld2)), AdvSimd.LoadVector128((UInt64*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(UInt32[] firstOp, UInt64[] secondOp, UInt64[] thirdO for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(UInt32[] firstOp, UInt64[] secondOp, UInt64[] thirdO if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AdvSimd_r.csproj b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AdvSimd_r.csproj index 1d218c9af69eb..e31d1407a1671 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AdvSimd_r.csproj +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AdvSimd_r.csproj @@ -92,6 +92,18 @@ + + + + + + + + + + + + @@ -123,30 +135,18 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + @@ -740,30 +740,30 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AdvSimd_ro.csproj b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AdvSimd_ro.csproj index 67094c63b5267..22e73f0c0be11 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AdvSimd_ro.csproj +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AdvSimd_ro.csproj @@ -92,6 +92,18 @@ + + + + + + + + + + + + @@ -123,30 +135,18 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + @@ -740,30 +740,30 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/Program.AdvSimd.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/Program.AdvSimd.cs index 47caf74ea0e22..246f31429980b 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/Program.AdvSimd.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/Program.AdvSimd.cs @@ -96,6 +96,18 @@ static Program() ["Add.Vector128.UInt16"] = Add_Vector128_UInt16, ["Add.Vector128.UInt32"] = Add_Vector128_UInt32, ["Add.Vector128.UInt64"] = Add_Vector128_UInt64, + ["AddHighNarrowLower.Vector64.Byte"] = AddHighNarrowLower_Vector64_Byte, + ["AddHighNarrowLower.Vector64.Int16"] = AddHighNarrowLower_Vector64_Int16, + ["AddHighNarrowLower.Vector64.Int32"] = AddHighNarrowLower_Vector64_Int32, + ["AddHighNarrowLower.Vector64.SByte"] = AddHighNarrowLower_Vector64_SByte, + ["AddHighNarrowLower.Vector64.UInt16"] = AddHighNarrowLower_Vector64_UInt16, + ["AddHighNarrowLower.Vector64.UInt32"] = AddHighNarrowLower_Vector64_UInt32, + ["AddHighNarrowUpper.Vector128.Byte"] = AddHighNarrowUpper_Vector128_Byte, + ["AddHighNarrowUpper.Vector128.Int16"] = AddHighNarrowUpper_Vector128_Int16, + ["AddHighNarrowUpper.Vector128.Int32"] = AddHighNarrowUpper_Vector128_Int32, + ["AddHighNarrowUpper.Vector128.SByte"] = AddHighNarrowUpper_Vector128_SByte, + ["AddHighNarrowUpper.Vector128.UInt16"] = AddHighNarrowUpper_Vector128_UInt16, + ["AddHighNarrowUpper.Vector128.UInt32"] = AddHighNarrowUpper_Vector128_UInt32, ["AddPairwise.Vector64.Byte"] = AddPairwise_Vector64_Byte, ["AddPairwise.Vector64.Int16"] = AddPairwise_Vector64_Int16, ["AddPairwise.Vector64.Int32"] = AddPairwise_Vector64_Int32, @@ -127,30 +139,18 @@ static Program() ["AddPairwiseWideningAndAddScalar.Vector64.UInt32"] = AddPairwiseWideningAndAddScalar_Vector64_UInt32, ["AddPairwiseWideningScalar.Vector64.Int32"] = AddPairwiseWideningScalar_Vector64_Int32, ["AddPairwiseWideningScalar.Vector64.UInt32"] = AddPairwiseWideningScalar_Vector64_UInt32, - ["AddReturningHighNarrowLower.Vector64.Byte"] = AddReturningHighNarrowLower_Vector64_Byte, - ["AddReturningHighNarrowLower.Vector64.Int16"] = AddReturningHighNarrowLower_Vector64_Int16, - ["AddReturningHighNarrowLower.Vector64.Int32"] = AddReturningHighNarrowLower_Vector64_Int32, - ["AddReturningHighNarrowLower.Vector64.SByte"] = AddReturningHighNarrowLower_Vector64_SByte, - ["AddReturningHighNarrowLower.Vector64.UInt16"] = AddReturningHighNarrowLower_Vector64_UInt16, - ["AddReturningHighNarrowLower.Vector64.UInt32"] = AddReturningHighNarrowLower_Vector64_UInt32, - ["AddReturningHighNarrowUpper.Vector128.Byte"] = AddReturningHighNarrowUpper_Vector128_Byte, - ["AddReturningHighNarrowUpper.Vector128.Int16"] = AddReturningHighNarrowUpper_Vector128_Int16, - ["AddReturningHighNarrowUpper.Vector128.Int32"] = AddReturningHighNarrowUpper_Vector128_Int32, - ["AddReturningHighNarrowUpper.Vector128.SByte"] = AddReturningHighNarrowUpper_Vector128_SByte, - ["AddReturningHighNarrowUpper.Vector128.UInt16"] = AddReturningHighNarrowUpper_Vector128_UInt16, - ["AddReturningHighNarrowUpper.Vector128.UInt32"] = AddReturningHighNarrowUpper_Vector128_UInt32, - ["AddReturningRoundedHighNarrowLower.Vector64.Byte"] = AddReturningRoundedHighNarrowLower_Vector64_Byte, - ["AddReturningRoundedHighNarrowLower.Vector64.Int16"] = AddReturningRoundedHighNarrowLower_Vector64_Int16, - ["AddReturningRoundedHighNarrowLower.Vector64.Int32"] = AddReturningRoundedHighNarrowLower_Vector64_Int32, - ["AddReturningRoundedHighNarrowLower.Vector64.SByte"] = AddReturningRoundedHighNarrowLower_Vector64_SByte, - ["AddReturningRoundedHighNarrowLower.Vector64.UInt16"] = AddReturningRoundedHighNarrowLower_Vector64_UInt16, - ["AddReturningRoundedHighNarrowLower.Vector64.UInt32"] = AddReturningRoundedHighNarrowLower_Vector64_UInt32, - ["AddReturningRoundedHighNarrowUpper.Vector128.Byte"] = AddReturningRoundedHighNarrowUpper_Vector128_Byte, - ["AddReturningRoundedHighNarrowUpper.Vector128.Int16"] = AddReturningRoundedHighNarrowUpper_Vector128_Int16, - ["AddReturningRoundedHighNarrowUpper.Vector128.Int32"] = AddReturningRoundedHighNarrowUpper_Vector128_Int32, - ["AddReturningRoundedHighNarrowUpper.Vector128.SByte"] = AddReturningRoundedHighNarrowUpper_Vector128_SByte, - ["AddReturningRoundedHighNarrowUpper.Vector128.UInt16"] = AddReturningRoundedHighNarrowUpper_Vector128_UInt16, - ["AddReturningRoundedHighNarrowUpper.Vector128.UInt32"] = AddReturningRoundedHighNarrowUpper_Vector128_UInt32, + ["AddRoundedHighNarrowLower.Vector64.Byte"] = AddRoundedHighNarrowLower_Vector64_Byte, + ["AddRoundedHighNarrowLower.Vector64.Int16"] = AddRoundedHighNarrowLower_Vector64_Int16, + ["AddRoundedHighNarrowLower.Vector64.Int32"] = AddRoundedHighNarrowLower_Vector64_Int32, + ["AddRoundedHighNarrowLower.Vector64.SByte"] = AddRoundedHighNarrowLower_Vector64_SByte, + ["AddRoundedHighNarrowLower.Vector64.UInt16"] = AddRoundedHighNarrowLower_Vector64_UInt16, + ["AddRoundedHighNarrowLower.Vector64.UInt32"] = AddRoundedHighNarrowLower_Vector64_UInt32, + ["AddRoundedHighNarrowUpper.Vector128.Byte"] = AddRoundedHighNarrowUpper_Vector128_Byte, + ["AddRoundedHighNarrowUpper.Vector128.Int16"] = AddRoundedHighNarrowUpper_Vector128_Int16, + ["AddRoundedHighNarrowUpper.Vector128.Int32"] = AddRoundedHighNarrowUpper_Vector128_Int32, + ["AddRoundedHighNarrowUpper.Vector128.SByte"] = AddRoundedHighNarrowUpper_Vector128_SByte, + ["AddRoundedHighNarrowUpper.Vector128.UInt16"] = AddRoundedHighNarrowUpper_Vector128_UInt16, + ["AddRoundedHighNarrowUpper.Vector128.UInt32"] = AddRoundedHighNarrowUpper_Vector128_UInt32, ["AddSaturate.Vector64.Byte"] = AddSaturate_Vector64_Byte, ["AddSaturate.Vector64.Int16"] = AddSaturate_Vector64_Int16, ["AddSaturate.Vector64.Int32"] = AddSaturate_Vector64_Int32, @@ -744,30 +744,30 @@ static Program() ["Subtract.Vector128.UInt16"] = Subtract_Vector128_UInt16, ["Subtract.Vector128.UInt32"] = Subtract_Vector128_UInt32, ["Subtract.Vector128.UInt64"] = Subtract_Vector128_UInt64, - ["SubtractReturningHighNarrowLower.Vector64.Byte"] = SubtractReturningHighNarrowLower_Vector64_Byte, - ["SubtractReturningHighNarrowLower.Vector64.Int16"] = SubtractReturningHighNarrowLower_Vector64_Int16, - ["SubtractReturningHighNarrowLower.Vector64.Int32"] = SubtractReturningHighNarrowLower_Vector64_Int32, - ["SubtractReturningHighNarrowLower.Vector64.SByte"] = SubtractReturningHighNarrowLower_Vector64_SByte, - ["SubtractReturningHighNarrowLower.Vector64.UInt16"] = SubtractReturningHighNarrowLower_Vector64_UInt16, - ["SubtractReturningHighNarrowLower.Vector64.UInt32"] = SubtractReturningHighNarrowLower_Vector64_UInt32, - ["SubtractReturningHighNarrowUpper.Vector128.Byte"] = SubtractReturningHighNarrowUpper_Vector128_Byte, - ["SubtractReturningHighNarrowUpper.Vector128.Int16"] = SubtractReturningHighNarrowUpper_Vector128_Int16, - ["SubtractReturningHighNarrowUpper.Vector128.Int32"] = SubtractReturningHighNarrowUpper_Vector128_Int32, - ["SubtractReturningHighNarrowUpper.Vector128.SByte"] = SubtractReturningHighNarrowUpper_Vector128_SByte, - ["SubtractReturningHighNarrowUpper.Vector128.UInt16"] = SubtractReturningHighNarrowUpper_Vector128_UInt16, - ["SubtractReturningHighNarrowUpper.Vector128.UInt32"] = SubtractReturningHighNarrowUpper_Vector128_UInt32, - ["SubtractReturningRoundedHighNarrowLower.Vector64.Byte"] = SubtractReturningRoundedHighNarrowLower_Vector64_Byte, - ["SubtractReturningRoundedHighNarrowLower.Vector64.Int16"] = SubtractReturningRoundedHighNarrowLower_Vector64_Int16, - ["SubtractReturningRoundedHighNarrowLower.Vector64.Int32"] = SubtractReturningRoundedHighNarrowLower_Vector64_Int32, - ["SubtractReturningRoundedHighNarrowLower.Vector64.SByte"] = SubtractReturningRoundedHighNarrowLower_Vector64_SByte, - ["SubtractReturningRoundedHighNarrowLower.Vector64.UInt16"] = SubtractReturningRoundedHighNarrowLower_Vector64_UInt16, - ["SubtractReturningRoundedHighNarrowLower.Vector64.UInt32"] = SubtractReturningRoundedHighNarrowLower_Vector64_UInt32, - ["SubtractReturningRoundedHighNarrowUpper.Vector128.Byte"] = SubtractReturningRoundedHighNarrowUpper_Vector128_Byte, - ["SubtractReturningRoundedHighNarrowUpper.Vector128.Int16"] = SubtractReturningRoundedHighNarrowUpper_Vector128_Int16, - ["SubtractReturningRoundedHighNarrowUpper.Vector128.Int32"] = SubtractReturningRoundedHighNarrowUpper_Vector128_Int32, - ["SubtractReturningRoundedHighNarrowUpper.Vector128.SByte"] = SubtractReturningRoundedHighNarrowUpper_Vector128_SByte, - ["SubtractReturningRoundedHighNarrowUpper.Vector128.UInt16"] = SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16, - ["SubtractReturningRoundedHighNarrowUpper.Vector128.UInt32"] = SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32, + ["SubtractHighNarrowLower.Vector64.Byte"] = SubtractHighNarrowLower_Vector64_Byte, + ["SubtractHighNarrowLower.Vector64.Int16"] = SubtractHighNarrowLower_Vector64_Int16, + ["SubtractHighNarrowLower.Vector64.Int32"] = SubtractHighNarrowLower_Vector64_Int32, + ["SubtractHighNarrowLower.Vector64.SByte"] = SubtractHighNarrowLower_Vector64_SByte, + ["SubtractHighNarrowLower.Vector64.UInt16"] = SubtractHighNarrowLower_Vector64_UInt16, + ["SubtractHighNarrowLower.Vector64.UInt32"] = SubtractHighNarrowLower_Vector64_UInt32, + ["SubtractHighNarrowUpper.Vector128.Byte"] = SubtractHighNarrowUpper_Vector128_Byte, + ["SubtractHighNarrowUpper.Vector128.Int16"] = SubtractHighNarrowUpper_Vector128_Int16, + ["SubtractHighNarrowUpper.Vector128.Int32"] = SubtractHighNarrowUpper_Vector128_Int32, + ["SubtractHighNarrowUpper.Vector128.SByte"] = SubtractHighNarrowUpper_Vector128_SByte, + ["SubtractHighNarrowUpper.Vector128.UInt16"] = SubtractHighNarrowUpper_Vector128_UInt16, + ["SubtractHighNarrowUpper.Vector128.UInt32"] = SubtractHighNarrowUpper_Vector128_UInt32, + ["SubtractRoundedHighNarrowLower.Vector64.Byte"] = SubtractRoundedHighNarrowLower_Vector64_Byte, + ["SubtractRoundedHighNarrowLower.Vector64.Int16"] = SubtractRoundedHighNarrowLower_Vector64_Int16, + ["SubtractRoundedHighNarrowLower.Vector64.Int32"] = SubtractRoundedHighNarrowLower_Vector64_Int32, + ["SubtractRoundedHighNarrowLower.Vector64.SByte"] = SubtractRoundedHighNarrowLower_Vector64_SByte, + ["SubtractRoundedHighNarrowLower.Vector64.UInt16"] = SubtractRoundedHighNarrowLower_Vector64_UInt16, + ["SubtractRoundedHighNarrowLower.Vector64.UInt32"] = SubtractRoundedHighNarrowLower_Vector64_UInt32, + ["SubtractRoundedHighNarrowUpper.Vector128.Byte"] = SubtractRoundedHighNarrowUpper_Vector128_Byte, + ["SubtractRoundedHighNarrowUpper.Vector128.Int16"] = SubtractRoundedHighNarrowUpper_Vector128_Int16, + ["SubtractRoundedHighNarrowUpper.Vector128.Int32"] = SubtractRoundedHighNarrowUpper_Vector128_Int32, + ["SubtractRoundedHighNarrowUpper.Vector128.SByte"] = SubtractRoundedHighNarrowUpper_Vector128_SByte, + ["SubtractRoundedHighNarrowUpper.Vector128.UInt16"] = SubtractRoundedHighNarrowUpper_Vector128_UInt16, + ["SubtractRoundedHighNarrowUpper.Vector128.UInt32"] = SubtractRoundedHighNarrowUpper_Vector128_UInt32, ["SubtractSaturate.Vector64.Byte"] = SubtractSaturate_Vector64_Byte, ["SubtractSaturate.Vector64.Int16"] = SubtractSaturate_Vector64_Int16, ["SubtractSaturate.Vector64.Int32"] = SubtractSaturate_Vector64_Int32, diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.Byte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.Byte.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.Byte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.Byte.cs index 2e8bf9f87d7ec..e4eca0b5ec0c3 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.Byte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.Byte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowLower_Vector64_Byte() + private static void SubtractHighNarrowLower_Vector64_Byte() { - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Byte(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Byte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowLower_Vector64_Byte() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Byte + public sealed unsafe class SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Byte { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Byte testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Byte testClass) { - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Byte testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Byte testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrow private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Byte() + static SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Byte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Byte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Byte() + public SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Byte() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pClsVar1)), AdvSimd.LoadVector128((UInt16*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Byte(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Byte(); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Byte(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Byte(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(&test._fld1)), AdvSimd.LoadVector128((UInt16*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt16[] left, UInt16[] right, Byte[] result, [Calle for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt16[] left, UInt16[] right, Byte[] result, [Calle if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.Int16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.Int16.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.Int16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.Int16.cs index 491b2bb6b8c6d..6232f7360d1d3 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.Int16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.Int16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowLower_Vector64_Int16() + private static void SubtractHighNarrowLower_Vector64_Int16() { - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int16(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowLower_Vector64_Int16() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int16 + public sealed unsafe class SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int16 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int16 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int16 testClass) { - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int16 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int16 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrow private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int16() + static SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int16() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int16() + public SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int16() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int16(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int16(); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int16(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int16(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int32[] left, Int32[] right, Int16[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int32[] left, Int32[] right, Int16[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.Int32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.Int32.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.Int32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.Int32.cs index af0e0e56953ac..5fd57683f17da 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.Int32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.Int32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowLower_Vector64_Int32() + private static void SubtractHighNarrowLower_Vector64_Int32() { - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int32(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowLower_Vector64_Int32() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int32 + public sealed unsafe class SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int32 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int32 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int32 testClass) { - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int32 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int32 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrow private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int32() + static SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int32() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int32() + public SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int32() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pClsVar1)), AdvSimd.LoadVector128((Int64*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int32(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int32(); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_Int32(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_Int32(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int64*)(&test._fld1)), AdvSimd.LoadVector128((Int64*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int64[] left, Int64[] right, Int32[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int64[] left, Int64[] right, Int32[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.SByte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.SByte.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.SByte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.SByte.cs index b0774c25a3f8e..4156595e1a54a 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.SByte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.SByte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowLower_Vector64_SByte() + private static void SubtractHighNarrowLower_Vector64_SByte() { - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_SByte(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_SByte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowLower_Vector64_SByte() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_SByte + public sealed unsafe class SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_SByte { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_SByte testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_SByte testClass) { - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_SByte testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_SByte testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrow private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_SByte() + static SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_SByte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_SByte() + public SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_SByte() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pClsVar1)), AdvSimd.LoadVector128((Int16*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_SByte(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_SByte(); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_SByte(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_SByte(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((Int16*)(&test._fld1)), AdvSimd.LoadVector128((Int16*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int16[] left, Int16[] right, SByte[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int16[] left, Int16[] right, SByte[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.UInt16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.UInt16.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.UInt16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.UInt16.cs index c6d49f3fdd5de..652291a79460d 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.UInt16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.UInt16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowLower_Vector64_UInt16() + private static void SubtractHighNarrowLower_Vector64_UInt16() { - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt16(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowLower_Vector64_UInt16() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt16 + public sealed unsafe class SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt16 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt16 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt16 testClass) { - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt16 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt16 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrow private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt16() + static SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt16() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt16() + public SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt16() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pClsVar1)), AdvSimd.LoadVector128((UInt32*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt16(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt16(); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt16(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt16(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(&test._fld1)), AdvSimd.LoadVector128((UInt32*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt32[] left, UInt32[] right, UInt16[] result, [Cal for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt32[] left, UInt32[] right, UInt16[] result, [Cal if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.UInt32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.UInt32.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.UInt32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.UInt32.cs index b2171fbb91d30..a0db7ab73cc49 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowLower.Vector64.UInt32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowLower.Vector64.UInt32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowLower_Vector64_UInt32() + private static void SubtractHighNarrowLower_Vector64_UInt32() { - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt32(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowLower_Vector64_UInt32() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt32 + public sealed unsafe class SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt32 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt32 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt32 testClass) { - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt32 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt32 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningHighNarrow private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt32() + static SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt32() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt32() + public SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt32() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pClsVar1)), AdvSimd.LoadVector128((UInt64*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt32(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt32(); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningHighNarrowLower_Vector64_UInt32(); + var test = new SimpleBinaryOpTest__SubtractHighNarrowLower_Vector64_UInt32(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowLower( + var result = AdvSimd.SubtractHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(&test._fld1)), AdvSimd.LoadVector128((UInt64*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt64[] left, UInt64[] right, UInt32[] result, [Cal for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt64[] left, UInt64[] right, UInt32[] result, [Cal if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.Byte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.Byte.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.Byte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.Byte.cs index 1415f01db140c..a12435926fe8c 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.Byte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.Byte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowUpper_Vector128_Byte() + private static void SubtractHighNarrowUpper_Vector128_Byte() { - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Byte(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Byte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowUpper_Vector128_Byte() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Byte + public sealed unsafe class SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Byte { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Byte testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Byte testClass) { - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Byte testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Byte testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarro private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Byte() + static SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Byte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Byte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Byte() + public SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Byte() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pClsVar1)), AdvSimd.LoadVector128((UInt16*)(pClsVar2)), AdvSimd.LoadVector128((UInt16*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Byte(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Byte(); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Byte(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Byte(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(&test._fld1)), AdvSimd.LoadVector128((UInt16*)(&test._fld2)), AdvSimd.LoadVector128((UInt16*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Byte[] firstOp, UInt16[] secondOp, UInt16[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Byte[] firstOp, UInt16[] secondOp, UInt16[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.Int16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.Int16.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.Int16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.Int16.cs index dadff1b0f9c60..f2942febe2343 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.Int16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.Int16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowUpper_Vector128_Int16() + private static void SubtractHighNarrowUpper_Vector128_Int16() { - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int16(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowUpper_Vector128_Int16() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int16 + public sealed unsafe class SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int16 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int16 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int16 testClass) { - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int16 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int16 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarro private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int16() + static SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int16() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int16() + public SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int16() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(pClsVar2)), AdvSimd.LoadVector128((Int32*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int16(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int16(); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int16(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int16(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&test._fld2)), AdvSimd.LoadVector128((Int32*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Int16[] firstOp, Int32[] secondOp, Int32[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Int16[] firstOp, Int32[] secondOp, Int32[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.Int32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.Int32.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.Int32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.Int32.cs index 20f1ac3dd78b0..3b33e723b49b3 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.Int32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.Int32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowUpper_Vector128_Int32() + private static void SubtractHighNarrowUpper_Vector128_Int32() { - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int32(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowUpper_Vector128_Int32() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int32 + public sealed unsafe class SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int32 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int32 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int32 testClass) { - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int32 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int32 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarro private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int32() + static SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int32() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int32() + public SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int32() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int64*)(pClsVar2)), AdvSimd.LoadVector128((Int64*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int32(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int32(); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_Int32(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_Int32(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int64*)(&test._fld2)), AdvSimd.LoadVector128((Int64*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Int32[] firstOp, Int64[] secondOp, Int64[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Int32[] firstOp, Int64[] secondOp, Int64[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.SByte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.SByte.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.SByte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.SByte.cs index c4c9e278bfe8e..7ba09a938529d 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.SByte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.SByte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowUpper_Vector128_SByte() + private static void SubtractHighNarrowUpper_Vector128_SByte() { - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_SByte(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_SByte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowUpper_Vector128_SByte() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_SByte + public sealed unsafe class SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_SByte { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_SByte testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_SByte testClass) { - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_SByte testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_SByte testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarro private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_SByte() + static SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_SByte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_SByte() + public SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_SByte() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pClsVar1)), AdvSimd.LoadVector128((Int16*)(pClsVar2)), AdvSimd.LoadVector128((Int16*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_SByte(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_SByte(); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_SByte(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_SByte(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(&test._fld1)), AdvSimd.LoadVector128((Int16*)(&test._fld2)), AdvSimd.LoadVector128((Int16*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(SByte[] firstOp, Int16[] secondOp, Int16[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(SByte[] firstOp, Int16[] secondOp, Int16[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.UInt16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.UInt16.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.UInt16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.UInt16.cs index 54bf48bb0e2b5..374f10f1119d0 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.UInt16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.UInt16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowUpper_Vector128_UInt16() + private static void SubtractHighNarrowUpper_Vector128_UInt16() { - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt16(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowUpper_Vector128_UInt16() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt16 + public sealed unsafe class SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt16 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt16 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt16 testClass) { - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt16 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt16 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarro private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt16() + static SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt16() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt16() + public SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt16() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pClsVar1)), AdvSimd.LoadVector128((UInt32*)(pClsVar2)), AdvSimd.LoadVector128((UInt32*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt16(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt16(); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt16(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt16(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(&test._fld1)), AdvSimd.LoadVector128((UInt32*)(&test._fld2)), AdvSimd.LoadVector128((UInt32*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(UInt16[] firstOp, UInt32[] secondOp, UInt32[] thirdO for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(UInt16[] firstOp, UInt32[] secondOp, UInt32[] thirdO if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.UInt32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.UInt32.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.UInt32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.UInt32.cs index 602ac9643592e..4111c8ef3c8ec 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningHighNarrowUpper.Vector128.UInt32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractHighNarrowUpper.Vector128.UInt32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningHighNarrowUpper_Vector128_UInt32() + private static void SubtractHighNarrowUpper_Vector128_UInt32() { - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt32(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningHighNarrowUpper_Vector128_UInt32() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt32 + public sealed unsafe class SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt32 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt32 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt32 testClass) { - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt32 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt32 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningHighNarro private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt32() + static SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt32() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt32() + public SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt32() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pClsVar1)), AdvSimd.LoadVector128((UInt64*)(pClsVar2)), AdvSimd.LoadVector128((UInt64*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt32(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt32(); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningHighNarrowUpper_Vector128_UInt32(); + var test = new SimpleTernaryOpTest__SubtractHighNarrowUpper_Vector128_UInt32(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningHighNarrowUpper( + var result = AdvSimd.SubtractHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(&test._fld1)), AdvSimd.LoadVector128((UInt64*)(&test._fld2)), AdvSimd.LoadVector128((UInt64*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(UInt32[] firstOp, UInt64[] secondOp, UInt64[] thirdO for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(UInt32[] firstOp, UInt64[] secondOp, UInt64[] thirdO if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.Byte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.Byte.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.Byte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.Byte.cs index 964bdb8fb0bf0..710e688d27d42 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.Byte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.Byte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowLower_Vector64_Byte() + private static void SubtractRoundedHighNarrowLower_Vector64_Byte() { - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Byte(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Byte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowLower_Vector64_Byte() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Byte + public sealed unsafe class SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Byte { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Byte testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Byte testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Byte testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Byte testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHig private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Byte() + static SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Byte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Byte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Byte() + public SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Byte() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pClsVar1)), AdvSimd.LoadVector128((UInt16*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Byte(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Byte(); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Byte(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Byte(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt16*)(&test._fld1)), AdvSimd.LoadVector128((UInt16*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt16[] left, UInt16[] right, Byte[] result, [Calle for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt16[] left, UInt16[] right, Byte[] result, [Calle if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.Int16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.Int16.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.Int16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.Int16.cs index e39162ea8e3ff..b8af6dd6714ec 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.Int16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.Int16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowLower_Vector64_Int16() + private static void SubtractRoundedHighNarrowLower_Vector64_Int16() { - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int16(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowLower_Vector64_Int16() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int16 + public sealed unsafe class SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int16 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int16 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int16 testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int16 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int16 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHig private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int16() + static SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int16() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int16() + public SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int16() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int16(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int16(); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int16(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int16(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int32[] left, Int32[] right, Int16[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int32[] left, Int32[] right, Int16[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.Int32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.Int32.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.Int32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.Int32.cs index 4ca831f705a8b..65c74cb30dc0e 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.Int32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.Int32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowLower_Vector64_Int32() + private static void SubtractRoundedHighNarrowLower_Vector64_Int32() { - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int32(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowLower_Vector64_Int32() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int32 + public sealed unsafe class SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int32 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int32 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int32 testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int32 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int32 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHig private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int32() + static SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int32() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int32() + public SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int32() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pClsVar1)), AdvSimd.LoadVector128((Int64*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int32(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int32(); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_Int32(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_Int32(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int64*)(&test._fld1)), AdvSimd.LoadVector128((Int64*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int64[] left, Int64[] right, Int32[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int64[] left, Int64[] right, Int32[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.SByte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.SByte.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.SByte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.SByte.cs index 831ecd0cf389f..b3dff057ddcf3 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.SByte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.SByte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowLower_Vector64_SByte() + private static void SubtractRoundedHighNarrowLower_Vector64_SByte() { - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_SByte(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_SByte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowLower_Vector64_SByte() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_SByte + public sealed unsafe class SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_SByte { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_SByte testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_SByte testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_SByte testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_SByte testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHig private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_SByte() + static SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_SByte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_SByte() + public SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_SByte() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pClsVar1)), AdvSimd.LoadVector128((Int16*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_SByte(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_SByte(); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_SByte(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_SByte(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((Int16*)(&test._fld1)), AdvSimd.LoadVector128((Int16*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(Int16[] left, Int16[] right, SByte[] result, [Caller for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(Int16[] left, Int16[] right, SByte[] result, [Caller if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.UInt16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.UInt16.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.UInt16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.UInt16.cs index c69e2c8bd6eb9..0678507a1eb1e 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.UInt16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.UInt16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowLower_Vector64_UInt16() + private static void SubtractRoundedHighNarrowLower_Vector64_UInt16() { - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt16(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowLower_Vector64_UInt16() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt16 + public sealed unsafe class SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt16 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt16 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt16 testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt16 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt16 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHig private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt16() + static SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt16() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt16() + public SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt16() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pClsVar1)), AdvSimd.LoadVector128((UInt32*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt16(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt16(); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt16(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt16(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt32*)(&test._fld1)), AdvSimd.LoadVector128((UInt32*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt32[] left, UInt32[] right, UInt16[] result, [Cal for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt32[] left, UInt32[] right, UInt16[] result, [Cal if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.UInt32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.UInt32.cs similarity index 90% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.UInt32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.UInt32.cs index 1c9c3025bc7cd..abdaa0b05c407 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowLower.Vector64.UInt32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowLower.Vector64.UInt32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowLower_Vector64_UInt32() + private static void SubtractRoundedHighNarrowLower_Vector64_UInt32() { - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt32(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowLower_Vector64_UInt32() } } - public sealed unsafe class SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt32 + public sealed unsafe class SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt32 { private struct DataTable { @@ -182,20 +182,20 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt32 testClass) + public void RunStructFldScenario(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt32 testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt32 testClass) + public void RunStructFldScenario_Load(SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt32 testClass) { fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -223,7 +223,7 @@ public void RunStructFldScenario_Load(SimpleBinaryOpTest__AddReturningRoundedHig private DataTable _dataTable; - static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt32() + static SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -231,7 +231,7 @@ static SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt32() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>()); } - public SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt32() + public SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt32() { Succeeded = true; @@ -253,7 +253,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) ); @@ -266,7 +266,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)) ); @@ -279,7 +279,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr) @@ -293,7 +293,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowLower), new Type[] { typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)) @@ -307,7 +307,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( _clsVar1, _clsVar2 ); @@ -323,7 +323,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar1 = &_clsVar1) fixed (Vector128* pClsVar2 = &_clsVar2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pClsVar1)), AdvSimd.LoadVector128((UInt64*)(pClsVar2)) ); @@ -339,7 +339,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -351,7 +351,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(op1, op2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); @@ -361,8 +361,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt32(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt32(); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -372,12 +372,12 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleBinaryOpTest__AddReturningRoundedHighNarrowLower_Vector64_UInt32(); + var test = new SimpleBinaryOpTest__SubtractRoundedHighNarrowLower_Vector64_UInt32(); fixed (Vector128* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -391,7 +391,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(_fld1, _fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); @@ -404,7 +404,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) { - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)) ); @@ -419,7 +419,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower(test._fld1, test._fld2); + var result = AdvSimd.SubtractRoundedHighNarrowLower(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); @@ -430,7 +430,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowLower( + var result = AdvSimd.SubtractRoundedHighNarrowLower( AdvSimd.LoadVector128((UInt64*)(&test._fld1)), AdvSimd.LoadVector128((UInt64*)(&test._fld2)) ); @@ -508,7 +508,7 @@ private void ValidateResult(UInt64[] left, UInt64[] right, UInt32[] result, [Cal for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]) + if (Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]) { succeeded = false; break; @@ -517,7 +517,7 @@ private void ValidateResult(UInt64[] left, UInt64[] right, UInt32[] result, [Cal if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowLower)}(Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.Byte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.Byte.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.Byte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.Byte.cs index 1e2a7cb14bfbe..5a91e9841e399 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.Byte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.Byte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowUpper_Vector128_Byte() + private static void SubtractRoundedHighNarrowUpper_Vector128_Byte() { - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Byte(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Byte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowUpper_Vector128_Byte() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Byte + public sealed unsafe class SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Byte { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Byte testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Byte testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Byte testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Byte testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHi private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Byte() + static SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Byte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Byte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Byte() + public SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Byte() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pClsVar1)), AdvSimd.LoadVector128((UInt16*)(pClsVar2)), AdvSimd.LoadVector128((UInt16*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Byte*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Byte(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Byte(); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_Byte(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Byte(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)), AdvSimd.LoadVector128((UInt16*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Byte*)(&test._fld1)), AdvSimd.LoadVector128((UInt16*)(&test._fld2)), AdvSimd.LoadVector128((UInt16*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Byte[] firstOp, UInt16[] secondOp, UInt16[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Byte[] firstOp, UInt16[] secondOp, UInt16[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.Int16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.Int16.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.Int16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.Int16.cs index 0edd0a17b47e8..f2766313b1f5d 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.Int16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.Int16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowUpper_Vector128_Int16() + private static void SubtractRoundedHighNarrowUpper_Vector128_Int16() { - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int16(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowUpper_Vector128_Int16() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int16 + public sealed unsafe class SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int16 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int16 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int16 testClass) { - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int16 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int16 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHigh private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int16() + static SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int16() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int16() + public SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int16() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(pClsVar2)), AdvSimd.LoadVector128((Int32*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int16(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int16(); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int16(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int16(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), AdvSimd.LoadVector128((Int32*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int16*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&test._fld2)), AdvSimd.LoadVector128((Int32*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Int16[] firstOp, Int32[] secondOp, Int32[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Int16[] firstOp, Int32[] secondOp, Int32[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.Int32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.Int32.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.Int32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.Int32.cs index 3d342d4bfb5b4..29090eaed32a8 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.Int32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.Int32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowUpper_Vector128_Int32() + private static void SubtractRoundedHighNarrowUpper_Vector128_Int32() { - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int32(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowUpper_Vector128_Int32() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int32 + public sealed unsafe class SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int32 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int32 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int32 testClass) { - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int32 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int32 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHigh private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int32() + static SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int32() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int32() + public SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int32() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int64*)(pClsVar2)), AdvSimd.LoadVector128((Int64*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int64*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int32(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int32(); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_Int32(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_Int32(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int64*)(pFld2)), AdvSimd.LoadVector128((Int64*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int64*)(&test._fld2)), AdvSimd.LoadVector128((Int64*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(Int32[] firstOp, Int64[] secondOp, Int64[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(Int32[] firstOp, Int64[] secondOp, Int64[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.SByte.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.SByte.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.SByte.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.SByte.cs index 5cbea75ba11c5..4158cf834c4b8 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractReturningHighNarrowUpper.Vector128.SByte.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.SByte.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void SubtractReturningHighNarrowUpper_Vector128_SByte() + private static void SubtractRoundedHighNarrowUpper_Vector128_SByte() { - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_SByte(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_SByte(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void SubtractReturningHighNarrowUpper_Vector128_SByte() } } - public sealed unsafe class SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_SByte + public sealed unsafe class SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_SByte { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_SByte testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_SByte testClass) { - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_SByte testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_SByte testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractReturningHigh private DataTable _dataTable; - static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_SByte() + static SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_SByte() Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_SByte() + public SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_SByte() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractReturningHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pClsVar1)), AdvSimd.LoadVector128((Int16*)(pClsVar2)), AdvSimd.LoadVector128((Int16*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((Int16*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_SByte(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_SByte(); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__SubtractReturningHighNarrowUpper_Vector128_SByte(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_SByte(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.SubtractReturningHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector128((Int16*)(pFld2)), AdvSimd.LoadVector128((Int16*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.SubtractReturningHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((SByte*)(&test._fld1)), AdvSimd.LoadVector128((Int16*)(&test._fld2)), AdvSimd.LoadVector128((Int16*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(SByte[] firstOp, Int16[] secondOp, Int16[] thirdOp, for (var i = 0; i < RetElementCount; i++) { - if (Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(SByte[] firstOp, Int16[] secondOp, Int16[] thirdOp, if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractReturningHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.UInt16.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.UInt16.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.UInt16.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.UInt16.cs index 70e20fec0f4f0..af38718e5770a 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.UInt16.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.UInt16.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowUpper_Vector128_UInt16() + private static void SubtractRoundedHighNarrowUpper_Vector128_UInt16() { - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt16(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt16(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowUpper_Vector128_UInt16() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt16 + public sealed unsafe class SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt16 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt16 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt16 testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt16 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt16 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHi private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt16() + static SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt16( Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt16() + public SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt16() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pClsVar1)), AdvSimd.LoadVector128((UInt32*)(pClsVar2)), AdvSimd.LoadVector128((UInt32*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((UInt16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt16(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt16(); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt16(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt16(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector128((UInt32*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt16*)(&test._fld1)), AdvSimd.LoadVector128((UInt32*)(&test._fld2)), AdvSimd.LoadVector128((UInt32*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(UInt16[] firstOp, UInt32[] secondOp, UInt32[] thirdO for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(UInt16[] firstOp, UInt32[] secondOp, UInt32[] thirdO if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.UInt32.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.UInt32.cs similarity index 91% rename from src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.UInt32.cs rename to src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.UInt32.cs index 91f4bd718438b..12d1186105614 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/AddReturningRoundedHighNarrowUpper.Vector128.UInt32.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/SubtractRoundedHighNarrowUpper.Vector128.UInt32.cs @@ -19,9 +19,9 @@ namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { - private static void AddReturningRoundedHighNarrowUpper_Vector128_UInt32() + private static void SubtractRoundedHighNarrowUpper_Vector128_UInt32() { - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt32(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt32(); if (test.IsSupported) { @@ -110,7 +110,7 @@ private static void AddReturningRoundedHighNarrowUpper_Vector128_UInt32() } } - public sealed unsafe class SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt32 + public sealed unsafe class SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt32 { private struct DataTable { @@ -193,21 +193,21 @@ public static TestStruct Create() return testStruct; } - public void RunStructFldScenario(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt32 testClass) + public void RunStructFldScenario(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt32 testClass) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } - public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt32 testClass) + public void RunStructFldScenario_Load(SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt32 testClass) { fixed (Vector64* pFld1 = &_fld1) fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -240,7 +240,7 @@ public void RunStructFldScenario_Load(SimpleTernaryOpTest__AddReturningRoundedHi private DataTable _dataTable; - static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt32() + static SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>()); @@ -250,7 +250,7 @@ static SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt32( Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar3), ref Unsafe.As(ref _data3[0]), (uint)Unsafe.SizeOf>()); } - public SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt32() + public SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt32() { Succeeded = true; @@ -275,7 +275,7 @@ public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), Unsafe.Read>(_dataTable.inArray3Ptr) @@ -289,7 +289,7 @@ public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray3Ptr)) @@ -303,7 +303,7 @@ public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { Unsafe.Read>(_dataTable.inArray1Ptr), Unsafe.Read>(_dataTable.inArray2Ptr), @@ -318,7 +318,7 @@ public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); - var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.AddReturningRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) + var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.SubtractRoundedHighNarrowUpper), new Type[] { typeof(Vector64), typeof(Vector128), typeof(Vector128) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)), @@ -333,7 +333,7 @@ public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( _clsVar1, _clsVar2, _clsVar3 @@ -351,7 +351,7 @@ public void RunClsVarScenario_Load() fixed (Vector128* pClsVar2 = &_clsVar2) fixed (Vector128* pClsVar3 = &_clsVar3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pClsVar1)), AdvSimd.LoadVector128((UInt64*)(pClsVar2)), AdvSimd.LoadVector128((UInt64*)(pClsVar3)) @@ -369,7 +369,7 @@ public void RunLclVarScenario_UnsafeRead() var op1 = Unsafe.Read>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read>(_dataTable.inArray3Ptr); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -382,7 +382,7 @@ public void RunLclVarScenario_Load() var op1 = AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector128((UInt64*)(_dataTable.inArray3Ptr)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(op1, op2, op3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); @@ -392,8 +392,8 @@ public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt32(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt32(); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -403,13 +403,13 @@ public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); - var test = new SimpleTernaryOpTest__AddReturningRoundedHighNarrowUpper_Vector128_UInt32(); + var test = new SimpleTernaryOpTest__SubtractRoundedHighNarrowUpper_Vector128_UInt32(); fixed (Vector64* pFld1 = &test._fld1) fixed (Vector128* pFld2 = &test._fld2) fixed (Vector128* pFld3 = &test._fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -424,7 +424,7 @@ public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(_fld1, _fld2, _fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); @@ -438,7 +438,7 @@ public void RunClassFldScenario_Load() fixed (Vector128* pFld2 = &_fld2) fixed (Vector128* pFld3 = &_fld3) { - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt64*)(pFld2)), AdvSimd.LoadVector128((UInt64*)(pFld3)) @@ -454,7 +454,7 @@ public void RunStructLclFldScenario() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); + var result = AdvSimd.SubtractRoundedHighNarrowUpper(test._fld1, test._fld2, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); @@ -465,7 +465,7 @@ public void RunStructLclFldScenario_Load() TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); - var result = AdvSimd.AddReturningRoundedHighNarrowUpper( + var result = AdvSimd.SubtractRoundedHighNarrowUpper( AdvSimd.LoadVector64((UInt32*)(&test._fld1)), AdvSimd.LoadVector128((UInt64*)(&test._fld2)), AdvSimd.LoadVector128((UInt64*)(&test._fld3)) @@ -548,7 +548,7 @@ private void ValidateResult(UInt32[] firstOp, UInt64[] secondOp, UInt64[] thirdO for (var i = 0; i < RetElementCount; i++) { - if (Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) + if (Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]) { succeeded = false; break; @@ -557,7 +557,7 @@ private void ValidateResult(UInt32[] firstOp, UInt64[] secondOp, UInt64[] thirdO if (!succeeded) { - TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.AddReturningRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); + TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.SubtractRoundedHighNarrowUpper)}(Vector64, Vector128, Vector128): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/GenerateTests.csx b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/GenerateTests.csx index c7bea91cb434a..9130ef1424b3d 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/GenerateTests.csx +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/GenerateTests.csx @@ -186,6 +186,18 @@ private static readonly (string templateFileName, Dictionary tem ("VecBinOpTest.template", new Dictionary { ["TestName"] = "Add_Vector128_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "Add", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.Add(left[i], right[i]) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "Add_Vector128_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "Add", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.Add(left[i], right[i]) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "Add_Vector128_UInt64", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "Add", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt64", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.Add(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowLower_Vector64_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.AddHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowLower_Vector64_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.AddHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowLower_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.AddHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowLower_Vector64_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.AddHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowLower_Vector64_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.AddHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowLower_Vector64_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.AddHighNarrow(left[i], right[i]) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowUpper_Vector128_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Byte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowUpper_Vector128_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowUpper_Vector128_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowUpper_Vector128_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "SByte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetSByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowUpper_Vector128_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddHighNarrowUpper_Vector128_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.AddHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddPairwise_Vector64_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddPairwise", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Byte", ["Op2VectorType"] = "Vector64", ["Op2BaseType"] = "Byte", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetByte()", ["ValidateIterResult"] = "Helpers.AddPairwise(left, right, i) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddPairwise_Vector64_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddPairwise", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector64", ["Op2BaseType"] = "Int16", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.AddPairwise(left, right, i) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddPairwise_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddPairwise", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector64", ["Op2BaseType"] = "Int32", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.AddPairwise(left, right, i) != result[i]"}), @@ -217,30 +229,18 @@ private static readonly (string templateFileName, Dictionary tem ("SimpleBinOpTest.template", new Dictionary { ["TestName"] = "AddPairwiseWideningAndAddScalar_Vector64_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddPairwiseWideningAndAddScalar", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt64", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector64", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["ValidateFirstResult"] = "Helpers.AddPairwiseWideningAndAdd(left, right, 0) != result[0]", ["ValidateRemainingResults"] = "result[i] != 0"}), ("SimpleUnOpTest.template", new Dictionary { ["TestName"] = "AddPairwiseWideningScalar_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddPairwiseWideningScalar", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int64", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["ValidateFirstResult"] = "Helpers.AddPairwiseWidening(firstOp, 0) != result[0]", ["ValidateRemainingResults"] = "result[i] != 0"}), ("SimpleUnOpTest.template", new Dictionary { ["TestName"] = "AddPairwiseWideningScalar_Vector64_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddPairwiseWideningScalar", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt64", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt32", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["ValidateFirstResult"] = "Helpers.AddPairwiseWidening(firstOp, 0) != result[0]", ["ValidateRemainingResults"] = "result[i] != 0"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowLower_Vector64_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowLower_Vector64_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowLower_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowLower_Vector64_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowLower_Vector64_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowLower_Vector64_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowUpper_Vector128_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Byte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowUpper_Vector128_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowUpper_Vector128_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowUpper_Vector128_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "SByte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetSByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowUpper_Vector128_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningHighNarrowUpper_Vector128_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.AddReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowLower_Vector64_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowLower_Vector64_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowLower_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowLower_Vector64_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowLower_Vector64_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowLower_Vector64_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowUpper_Vector128_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Byte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowUpper_Vector128_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowUpper_Vector128_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowUpper_Vector128_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "SByte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetSByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowUpper_Vector128_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddReturningRoundedHighNarrowUpper_Vector128_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.AddReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowLower_Vector64_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowLower_Vector64_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowLower_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowLower_Vector64_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowLower_Vector64_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowLower_Vector64_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowUpper_Vector128_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Byte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowUpper_Vector128_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowUpper_Vector128_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowUpper_Vector128_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "SByte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetSByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowUpper_Vector128_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "AddRoundedHighNarrowUpper_Vector128_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.AddRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddSaturate_Vector64_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddSaturate", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Byte", ["Op2VectorType"] = "Vector64", ["Op2BaseType"] = "Byte", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetByte()", ["ValidateIterResult"] = "Helpers.AddSaturate(left[i], right[i]) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddSaturate_Vector64_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddSaturate", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector64", ["Op2BaseType"] = "Int16", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.AddSaturate(left[i], right[i]) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "AddSaturate_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "AddSaturate", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector64", ["Op2BaseType"] = "Int32", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.AddSaturate(left[i], right[i]) != result[i]"}), @@ -834,30 +834,30 @@ private static readonly (string templateFileName, Dictionary tem ("VecBinOpTest.template", new Dictionary { ["TestName"] = "Subtract_Vector128_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "Subtract", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.Subtract(left[i], right[i]) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "Subtract_Vector128_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "Subtract", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.Subtract(left[i], right[i]) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "Subtract_Vector128_UInt64", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "Subtract", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt64", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.Subtract(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowLower_Vector64_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowLower_Vector64_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowLower_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowLower_Vector64_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowLower_Vector64_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowLower_Vector64_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrow(left[i], right[i]) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowUpper_Vector128_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Byte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowUpper_Vector128_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowUpper_Vector128_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowUpper_Vector128_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "SByte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetSByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowUpper_Vector128_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningHighNarrowUpper_Vector128_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.SubtractReturningHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowLower_Vector64_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowLower_Vector64_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowLower_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowLower_Vector64_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowLower_Vector64_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowLower_Vector64_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrow(left[i], right[i]) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowUpper_Vector128_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Byte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowUpper_Vector128_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowUpper_Vector128_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowUpper_Vector128_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "SByte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetSByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowUpper_Vector128_UInt16",["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), - ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractReturningRoundedHighNarrowUpper_Vector128_UInt32",["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractReturningRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.SubtractReturningRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowLower_Vector64_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowLower_Vector64_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowLower_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowLower_Vector64_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowLower_Vector64_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowLower_Vector64_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrow(left[i], right[i]) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowUpper_Vector128_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Byte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowUpper_Vector128_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowUpper_Vector128_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowUpper_Vector128_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "SByte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetSByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowUpper_Vector128_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractHighNarrowUpper_Vector128_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.SubtractHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowLower_Vector64_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowLower_Vector64_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowLower_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowLower_Vector64_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowLower_Vector64_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowLower_Vector64_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowLower", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector128", ["Op1BaseType"] = "UInt64", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrow(left[i], right[i]) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowUpper_Vector128_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Byte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt16()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowUpper_Vector128_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowUpper_Vector128_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt64()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowUpper_Vector128_SByte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "SByte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "SByte", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "Int16", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "Int16", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetSByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp3"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowUpper_Vector128_UInt16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt16", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt32", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt32", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt32()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), + ("VecTernOpTest.template", new Dictionary { ["TestName"] = "SubtractRoundedHighNarrowUpper_Vector128_UInt32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractRoundedHighNarrowUpper", ["RetVectorType"] = "Vector128", ["RetBaseType"] = "UInt32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "UInt32", ["Op2VectorType"] = "Vector128", ["Op2BaseType"] = "UInt64", ["Op3VectorType"] = "Vector128", ["Op3BaseType"] = "UInt64", ["LargestVectorSize"] = "16", ["NextValueOp1"] = "TestLibrary.Generator.GetUInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetUInt64()", ["NextValueOp3"] = "TestLibrary.Generator.GetUInt64()", ["ValidateIterResult"] = "Helpers.SubtractRoundedHighNarrowUpper(firstOp, secondOp, thirdOp, i) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractSaturate_Vector64_Byte", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractSaturate", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Byte", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Byte", ["Op2VectorType"] = "Vector64", ["Op2BaseType"] = "Byte", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetByte()", ["NextValueOp2"] = "TestLibrary.Generator.GetByte()", ["ValidateIterResult"] = "Helpers.SubtractSaturate(left[i], right[i]) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractSaturate_Vector64_Int16", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractSaturate", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int16", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int16", ["Op2VectorType"] = "Vector64", ["Op2BaseType"] = "Int16", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetInt16()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt16()", ["ValidateIterResult"] = "Helpers.SubtractSaturate(left[i], right[i]) != result[i]"}), ("VecBinOpTest.template", new Dictionary { ["TestName"] = "SubtractSaturate_Vector64_Int32", ["Isa"] = "AdvSimd", ["LoadIsa"] = "AdvSimd", ["Method"] = "SubtractSaturate", ["RetVectorType"] = "Vector64", ["RetBaseType"] = "Int32", ["Op1VectorType"] = "Vector64", ["Op1BaseType"] = "Int32", ["Op2VectorType"] = "Vector64", ["Op2BaseType"] = "Int32", ["LargestVectorSize"] = "8", ["NextValueOp1"] = "TestLibrary.Generator.GetInt32()", ["NextValueOp2"] = "TestLibrary.Generator.GetInt32()", ["ValidateIterResult"] = "Helpers.SubtractSaturate(left[i], right[i]) != result[i]"}), diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/Helpers.cs b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/Helpers.cs index 7ece1a765ccb9..3b766823195b4 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/Helpers.cs +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/Helpers.cs @@ -1457,13 +1457,13 @@ private static sbyte HighNarrow(short op1, bool round) return (sbyte)(((ushort)op1 + roundConst) >> (8 * sizeof(sbyte))); } - public static sbyte AddReturningHighNarrow(short op1, short op2) => HighNarrow((short)(op1 + op2), round: false); + public static sbyte AddHighNarrow(short op1, short op2) => HighNarrow((short)(op1 + op2), round: false); - public static sbyte AddReturningHighNarrowUpper(sbyte[] op1, short[] op2, short[] op3, int i) => i < op1.Length ? op1[i] : AddReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static sbyte AddHighNarrowUpper(sbyte[] op1, short[] op2, short[] op3, int i) => i < op1.Length ? op1[i] : AddHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static sbyte AddReturningRoundedHighNarrow(short op1, short op2) => HighNarrow((short)(op1 + op2), round: true); + public static sbyte AddRoundedHighNarrow(short op1, short op2) => HighNarrow((short)(op1 + op2), round: true); - public static short AddReturningRoundedHighNarrowUpper(sbyte[] op1, short[] op2, short[] op3, int i) => i < op1.Length ? op1[i] : AddReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static short AddRoundedHighNarrowUpper(sbyte[] op1, short[] op2, short[] op3, int i) => i < op1.Length ? op1[i] : AddRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static short AddWidening(sbyte op1, sbyte op2) => (short)((short)op1 + (short)op2); @@ -1491,13 +1491,13 @@ private static sbyte HighNarrow(short op1, bool round) public static short MultiplyWideningUpperAndSubtract(short[] op1, sbyte[] op2, sbyte[] op3, int i) => MultiplyWideningAndSubtract(op1[i], op2[i + op2.Length / 2], op3[i + op3.Length / 2]); - public static sbyte SubtractReturningHighNarrow(short op1, short op2) => HighNarrow((short)(op1 - op2), round: false); + public static sbyte SubtractHighNarrow(short op1, short op2) => HighNarrow((short)(op1 - op2), round: false); - public static short SubtractReturningHighNarrowUpper(sbyte[] op1, short[] op2, short[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static short SubtractHighNarrowUpper(sbyte[] op1, short[] op2, short[] op3, int i) => i < op1.Length ? op1[i] : SubtractHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static sbyte SubtractReturningRoundedHighNarrow(short op1, short op2) => HighNarrow((short)(op1 - op2), round: true); + public static sbyte SubtractRoundedHighNarrow(short op1, short op2) => HighNarrow((short)(op1 - op2), round: true); - public static short SubtractReturningRoundedHighNarrowUpper(sbyte[] op1, short[] op2, short[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static short SubtractRoundedHighNarrowUpper(sbyte[] op1, short[] op2, short[] op3, int i) => i < op1.Length ? op1[i] : SubtractRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static short SubtractWidening(sbyte op1, sbyte op2) => (short)((short)op1 - (short)op2); @@ -1529,13 +1529,13 @@ private static short HighNarrow(int op1, bool round) return (short)(((uint)op1 + roundConst) >> (8 * sizeof(short))); } - public static short AddReturningHighNarrow(int op1, int op2) => HighNarrow((int)(op1 + op2), round: false); + public static short AddHighNarrow(int op1, int op2) => HighNarrow((int)(op1 + op2), round: false); - public static short AddReturningHighNarrowUpper(short[] op1, int[] op2, int[] op3, int i) => i < op1.Length ? op1[i] : AddReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static short AddHighNarrowUpper(short[] op1, int[] op2, int[] op3, int i) => i < op1.Length ? op1[i] : AddHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static short AddReturningRoundedHighNarrow(int op1, int op2) => HighNarrow((int)(op1 + op2), round: true); + public static short AddRoundedHighNarrow(int op1, int op2) => HighNarrow((int)(op1 + op2), round: true); - public static int AddReturningRoundedHighNarrowUpper(short[] op1, int[] op2, int[] op3, int i) => i < op1.Length ? op1[i] : AddReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static int AddRoundedHighNarrowUpper(short[] op1, int[] op2, int[] op3, int i) => i < op1.Length ? op1[i] : AddRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static int AddWidening(short op1, short op2) => (int)((int)op1 + (int)op2); @@ -1563,13 +1563,13 @@ private static short HighNarrow(int op1, bool round) public static int MultiplyWideningUpperAndSubtract(int[] op1, short[] op2, short[] op3, int i) => MultiplyWideningAndSubtract(op1[i], op2[i + op2.Length / 2], op3[i + op3.Length / 2]); - public static short SubtractReturningHighNarrow(int op1, int op2) => HighNarrow((int)(op1 - op2), round: false); + public static short SubtractHighNarrow(int op1, int op2) => HighNarrow((int)(op1 - op2), round: false); - public static int SubtractReturningHighNarrowUpper(short[] op1, int[] op2, int[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static int SubtractHighNarrowUpper(short[] op1, int[] op2, int[] op3, int i) => i < op1.Length ? op1[i] : SubtractHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static short SubtractReturningRoundedHighNarrow(int op1, int op2) => HighNarrow((int)(op1 - op2), round: true); + public static short SubtractRoundedHighNarrow(int op1, int op2) => HighNarrow((int)(op1 - op2), round: true); - public static int SubtractReturningRoundedHighNarrowUpper(short[] op1, int[] op2, int[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static int SubtractRoundedHighNarrowUpper(short[] op1, int[] op2, int[] op3, int i) => i < op1.Length ? op1[i] : SubtractRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static int SubtractWidening(short op1, short op2) => (int)((int)op1 - (int)op2); @@ -1601,13 +1601,13 @@ private static int HighNarrow(long op1, bool round) return (int)(((ulong)op1 + roundConst) >> (8 * sizeof(int))); } - public static int AddReturningHighNarrow(long op1, long op2) => HighNarrow((long)(op1 + op2), round: false); + public static int AddHighNarrow(long op1, long op2) => HighNarrow((long)(op1 + op2), round: false); - public static int AddReturningHighNarrowUpper(int[] op1, long[] op2, long[] op3, int i) => i < op1.Length ? op1[i] : AddReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static int AddHighNarrowUpper(int[] op1, long[] op2, long[] op3, int i) => i < op1.Length ? op1[i] : AddHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static int AddReturningRoundedHighNarrow(long op1, long op2) => HighNarrow((long)(op1 + op2), round: true); + public static int AddRoundedHighNarrow(long op1, long op2) => HighNarrow((long)(op1 + op2), round: true); - public static long AddReturningRoundedHighNarrowUpper(int[] op1, long[] op2, long[] op3, int i) => i < op1.Length ? op1[i] : AddReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static long AddRoundedHighNarrowUpper(int[] op1, long[] op2, long[] op3, int i) => i < op1.Length ? op1[i] : AddRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static long AddWidening(int op1, int op2) => (long)((long)op1 + (long)op2); @@ -1635,13 +1635,13 @@ private static int HighNarrow(long op1, bool round) public static long MultiplyWideningUpperAndSubtract(long[] op1, int[] op2, int[] op3, int i) => MultiplyWideningAndSubtract(op1[i], op2[i + op2.Length / 2], op3[i + op3.Length / 2]); - public static int SubtractReturningHighNarrow(long op1, long op2) => HighNarrow((long)(op1 - op2), round: false); + public static int SubtractHighNarrow(long op1, long op2) => HighNarrow((long)(op1 - op2), round: false); - public static long SubtractReturningHighNarrowUpper(int[] op1, long[] op2, long[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static long SubtractHighNarrowUpper(int[] op1, long[] op2, long[] op3, int i) => i < op1.Length ? op1[i] : SubtractHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static int SubtractReturningRoundedHighNarrow(long op1, long op2) => HighNarrow((long)(op1 - op2), round: true); + public static int SubtractRoundedHighNarrow(long op1, long op2) => HighNarrow((long)(op1 - op2), round: true); - public static long SubtractReturningRoundedHighNarrowUpper(int[] op1, long[] op2, long[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static long SubtractRoundedHighNarrowUpper(int[] op1, long[] op2, long[] op3, int i) => i < op1.Length ? op1[i] : SubtractRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static long SubtractWidening(int op1, int op2) => (long)((long)op1 - (long)op2); @@ -1673,13 +1673,13 @@ private static byte HighNarrow(ushort op1, bool round) return (byte)(((ushort)op1 + roundConst) >> (8 * sizeof(byte))); } - public static byte AddReturningHighNarrow(ushort op1, ushort op2) => HighNarrow((ushort)(op1 + op2), round: false); + public static byte AddHighNarrow(ushort op1, ushort op2) => HighNarrow((ushort)(op1 + op2), round: false); - public static byte AddReturningHighNarrowUpper(byte[] op1, ushort[] op2, ushort[] op3, int i) => i < op1.Length ? op1[i] : AddReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static byte AddHighNarrowUpper(byte[] op1, ushort[] op2, ushort[] op3, int i) => i < op1.Length ? op1[i] : AddHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static byte AddReturningRoundedHighNarrow(ushort op1, ushort op2) => HighNarrow((ushort)(op1 + op2), round: true); + public static byte AddRoundedHighNarrow(ushort op1, ushort op2) => HighNarrow((ushort)(op1 + op2), round: true); - public static ushort AddReturningRoundedHighNarrowUpper(byte[] op1, ushort[] op2, ushort[] op3, int i) => i < op1.Length ? op1[i] : AddReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static ushort AddRoundedHighNarrowUpper(byte[] op1, ushort[] op2, ushort[] op3, int i) => i < op1.Length ? op1[i] : AddRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static ushort AddWidening(byte op1, byte op2) => (ushort)((ushort)op1 + (ushort)op2); @@ -1707,13 +1707,13 @@ private static byte HighNarrow(ushort op1, bool round) public static ushort MultiplyWideningUpperAndSubtract(ushort[] op1, byte[] op2, byte[] op3, int i) => MultiplyWideningAndSubtract(op1[i], op2[i + op2.Length / 2], op3[i + op3.Length / 2]); - public static byte SubtractReturningHighNarrow(ushort op1, ushort op2) => HighNarrow((ushort)(op1 - op2), round: false); + public static byte SubtractHighNarrow(ushort op1, ushort op2) => HighNarrow((ushort)(op1 - op2), round: false); - public static ushort SubtractReturningHighNarrowUpper(byte[] op1, ushort[] op2, ushort[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static ushort SubtractHighNarrowUpper(byte[] op1, ushort[] op2, ushort[] op3, int i) => i < op1.Length ? op1[i] : SubtractHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static byte SubtractReturningRoundedHighNarrow(ushort op1, ushort op2) => HighNarrow((ushort)(op1 - op2), round: true); + public static byte SubtractRoundedHighNarrow(ushort op1, ushort op2) => HighNarrow((ushort)(op1 - op2), round: true); - public static ushort SubtractReturningRoundedHighNarrowUpper(byte[] op1, ushort[] op2, ushort[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static ushort SubtractRoundedHighNarrowUpper(byte[] op1, ushort[] op2, ushort[] op3, int i) => i < op1.Length ? op1[i] : SubtractRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static ushort SubtractWidening(byte op1, byte op2) => (ushort)((ushort)op1 - (ushort)op2); @@ -1745,13 +1745,13 @@ private static ushort HighNarrow(uint op1, bool round) return (ushort)(((uint)op1 + roundConst) >> (8 * sizeof(ushort))); } - public static ushort AddReturningHighNarrow(uint op1, uint op2) => HighNarrow((uint)(op1 + op2), round: false); + public static ushort AddHighNarrow(uint op1, uint op2) => HighNarrow((uint)(op1 + op2), round: false); - public static ushort AddReturningHighNarrowUpper(ushort[] op1, uint[] op2, uint[] op3, int i) => i < op1.Length ? op1[i] : AddReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static ushort AddHighNarrowUpper(ushort[] op1, uint[] op2, uint[] op3, int i) => i < op1.Length ? op1[i] : AddHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static ushort AddReturningRoundedHighNarrow(uint op1, uint op2) => HighNarrow((uint)(op1 + op2), round: true); + public static ushort AddRoundedHighNarrow(uint op1, uint op2) => HighNarrow((uint)(op1 + op2), round: true); - public static uint AddReturningRoundedHighNarrowUpper(ushort[] op1, uint[] op2, uint[] op3, int i) => i < op1.Length ? op1[i] : AddReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static uint AddRoundedHighNarrowUpper(ushort[] op1, uint[] op2, uint[] op3, int i) => i < op1.Length ? op1[i] : AddRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static uint AddWidening(ushort op1, ushort op2) => (uint)((uint)op1 + (uint)op2); @@ -1779,13 +1779,13 @@ private static ushort HighNarrow(uint op1, bool round) public static uint MultiplyWideningUpperAndSubtract(uint[] op1, ushort[] op2, ushort[] op3, int i) => MultiplyWideningAndSubtract(op1[i], op2[i + op2.Length / 2], op3[i + op3.Length / 2]); - public static ushort SubtractReturningHighNarrow(uint op1, uint op2) => HighNarrow((uint)(op1 - op2), round: false); + public static ushort SubtractHighNarrow(uint op1, uint op2) => HighNarrow((uint)(op1 - op2), round: false); - public static uint SubtractReturningHighNarrowUpper(ushort[] op1, uint[] op2, uint[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static uint SubtractHighNarrowUpper(ushort[] op1, uint[] op2, uint[] op3, int i) => i < op1.Length ? op1[i] : SubtractHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static ushort SubtractReturningRoundedHighNarrow(uint op1, uint op2) => HighNarrow((uint)(op1 - op2), round: true); + public static ushort SubtractRoundedHighNarrow(uint op1, uint op2) => HighNarrow((uint)(op1 - op2), round: true); - public static uint SubtractReturningRoundedHighNarrowUpper(ushort[] op1, uint[] op2, uint[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static uint SubtractRoundedHighNarrowUpper(ushort[] op1, uint[] op2, uint[] op3, int i) => i < op1.Length ? op1[i] : SubtractRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static uint SubtractWidening(ushort op1, ushort op2) => (uint)((uint)op1 - (uint)op2); @@ -1817,13 +1817,13 @@ private static uint HighNarrow(ulong op1, bool round) return (uint)(((ulong)op1 + roundConst) >> (8 * sizeof(uint))); } - public static uint AddReturningHighNarrow(ulong op1, ulong op2) => HighNarrow((ulong)(op1 + op2), round: false); + public static uint AddHighNarrow(ulong op1, ulong op2) => HighNarrow((ulong)(op1 + op2), round: false); - public static uint AddReturningHighNarrowUpper(uint[] op1, ulong[] op2, ulong[] op3, int i) => i < op1.Length ? op1[i] : AddReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static uint AddHighNarrowUpper(uint[] op1, ulong[] op2, ulong[] op3, int i) => i < op1.Length ? op1[i] : AddHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static uint AddReturningRoundedHighNarrow(ulong op1, ulong op2) => HighNarrow((ulong)(op1 + op2), round: true); + public static uint AddRoundedHighNarrow(ulong op1, ulong op2) => HighNarrow((ulong)(op1 + op2), round: true); - public static ulong AddReturningRoundedHighNarrowUpper(uint[] op1, ulong[] op2, ulong[] op3, int i) => i < op1.Length ? op1[i] : AddReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static ulong AddRoundedHighNarrowUpper(uint[] op1, ulong[] op2, ulong[] op3, int i) => i < op1.Length ? op1[i] : AddRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static ulong AddWidening(uint op1, uint op2) => (ulong)((ulong)op1 + (ulong)op2); @@ -1851,13 +1851,13 @@ private static uint HighNarrow(ulong op1, bool round) public static ulong MultiplyWideningUpperAndSubtract(ulong[] op1, uint[] op2, uint[] op3, int i) => MultiplyWideningAndSubtract(op1[i], op2[i + op2.Length / 2], op3[i + op3.Length / 2]); - public static uint SubtractReturningHighNarrow(ulong op1, ulong op2) => HighNarrow((ulong)(op1 - op2), round: false); + public static uint SubtractHighNarrow(ulong op1, ulong op2) => HighNarrow((ulong)(op1 - op2), round: false); - public static ulong SubtractReturningHighNarrowUpper(uint[] op1, ulong[] op2, ulong[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static ulong SubtractHighNarrowUpper(uint[] op1, ulong[] op2, ulong[] op3, int i) => i < op1.Length ? op1[i] : SubtractHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static uint SubtractReturningRoundedHighNarrow(ulong op1, ulong op2) => HighNarrow((ulong)(op1 - op2), round: true); + public static uint SubtractRoundedHighNarrow(ulong op1, ulong op2) => HighNarrow((ulong)(op1 - op2), round: true); - public static ulong SubtractReturningRoundedHighNarrowUpper(uint[] op1, ulong[] op2, ulong[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static ulong SubtractRoundedHighNarrowUpper(uint[] op1, ulong[] op2, ulong[] op3, int i) => i < op1.Length ? op1[i] : SubtractRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static ulong SubtractWidening(uint op1, uint op2) => (ulong)((ulong)op1 - (ulong)op2); diff --git a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/Helpers.tt b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/Helpers.tt index b10aa7fe23a29..a1086d6cef26d 100644 --- a/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/Helpers.tt +++ b/src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/Shared/Helpers.tt @@ -355,13 +355,13 @@ namespace JIT.HardwareIntrinsics.Arm return (<#= type.name #>)(((<#= type.wideUnsigned #>)op1 + roundConst) >> (8 * sizeof(<#= type.name #>))); } - public static <#= type.name #> AddReturningHighNarrow(<#= type.wide #> op1, <#= type.wide #> op2) => HighNarrow((<#= type.wide #>)(op1 + op2), round: false); + public static <#= type.name #> AddHighNarrow(<#= type.wide #> op1, <#= type.wide #> op2) => HighNarrow((<#= type.wide #>)(op1 + op2), round: false); - public static <#= type.name #> AddReturningHighNarrowUpper(<#= type.name #>[] op1, <#= type.wide #>[] op2, <#= type.wide #>[] op3, int i) => i < op1.Length ? op1[i] : AddReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static <#= type.name #> AddHighNarrowUpper(<#= type.name #>[] op1, <#= type.wide #>[] op2, <#= type.wide #>[] op3, int i) => i < op1.Length ? op1[i] : AddHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static <#= type.name #> AddReturningRoundedHighNarrow(<#= type.wide #> op1, <#= type.wide #> op2) => HighNarrow((<#= type.wide #>)(op1 + op2), round: true); + public static <#= type.name #> AddRoundedHighNarrow(<#= type.wide #> op1, <#= type.wide #> op2) => HighNarrow((<#= type.wide #>)(op1 + op2), round: true); - public static <#= type.wide #> AddReturningRoundedHighNarrowUpper(<#= type.name #>[] op1, <#= type.wide #>[] op2, <#= type.wide #>[] op3, int i) => i < op1.Length ? op1[i] : AddReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static <#= type.wide #> AddRoundedHighNarrowUpper(<#= type.name #>[] op1, <#= type.wide #>[] op2, <#= type.wide #>[] op3, int i) => i < op1.Length ? op1[i] : AddRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static <#= type.wide #> AddWidening(<#= type.name #> op1, <#= type.name #> op2) => (<#= type.wide #>)((<#= type.wide #>)op1 + (<#= type.wide #>)op2); @@ -389,13 +389,13 @@ namespace JIT.HardwareIntrinsics.Arm public static <#= type.wide #> MultiplyWideningUpperAndSubtract(<#= type.wide #>[] op1, <#= type.name #>[] op2, <#= type.name #>[] op3, int i) => MultiplyWideningAndSubtract(op1[i], op2[i + op2.Length / 2], op3[i + op3.Length / 2]); - public static <#= type.name #> SubtractReturningHighNarrow(<#= type.wide #> op1, <#= type.wide #> op2) => HighNarrow((<#= type.wide #>)(op1 - op2), round: false); + public static <#= type.name #> SubtractHighNarrow(<#= type.wide #> op1, <#= type.wide #> op2) => HighNarrow((<#= type.wide #>)(op1 - op2), round: false); - public static <#= type.wide #> SubtractReturningHighNarrowUpper(<#= type.name #>[] op1, <#= type.wide #>[] op2, <#= type.wide #>[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static <#= type.wide #> SubtractHighNarrowUpper(<#= type.name #>[] op1, <#= type.wide #>[] op2, <#= type.wide #>[] op3, int i) => i < op1.Length ? op1[i] : SubtractHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); - public static <#= type.name #> SubtractReturningRoundedHighNarrow(<#= type.wide #> op1, <#= type.wide #> op2) => HighNarrow((<#= type.wide #>)(op1 - op2), round: true); + public static <#= type.name #> SubtractRoundedHighNarrow(<#= type.wide #> op1, <#= type.wide #> op2) => HighNarrow((<#= type.wide #>)(op1 - op2), round: true); - public static <#= type.wide #> SubtractReturningRoundedHighNarrowUpper(<#= type.name #>[] op1, <#= type.wide #>[] op2, <#= type.wide #>[] op3, int i) => i < op1.Length ? op1[i] : SubtractReturningRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); + public static <#= type.wide #> SubtractRoundedHighNarrowUpper(<#= type.name #>[] op1, <#= type.wide #>[] op2, <#= type.wide #>[] op3, int i) => i < op1.Length ? op1[i] : SubtractRoundedHighNarrow(op2[i - op1.Length], op3[i - op1.Length]); public static <#= type.wide #> SubtractWidening(<#= type.name #> op1, <#= type.name #> op2) => (<#= type.wide #>)((<#= type.wide #>)op1 - (<#= type.wide #>)op2); diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Arm/AdvSimd.PlatformNotSupported.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Arm/AdvSimd.PlatformNotSupported.cs index 9bae02e39f7ee..d480608fcf2be 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Arm/AdvSimd.PlatformNotSupported.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Arm/AdvSimd.PlatformNotSupported.cs @@ -2474,6 +2474,90 @@ internal Arm64() { } /// public static Vector128 Add(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + /// + /// uint8x8_t vaddhn_u16 (uint16x8_t a, uint16x8_t b) + /// A32: VADDHN.I16 Dd, Qn, Qm + /// A64: ADDHN Vd.8B, Vn.8H, Vm.8H + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + + /// + /// int16x4_t vaddhn_s32 (int32x4_t a, int32x4_t b) + /// A32: VADDHN.I32 Dd, Qn, Qm + /// A64: ADDHN Vd.4H, Vn.4S, Vm.4S + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + + /// + /// int32x2_t vaddhn_s64 (int64x2_t a, int64x2_t b) + /// A32: VADDHN.I64 Dd, Qn, Qm + /// A64: ADDHN Vd.2S, Vn.2D, Vm.2D + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + + /// + /// int8x8_t vaddhn_s16 (int16x8_t a, int16x8_t b) + /// A32: VADDHN.I16 Dd, Qn, Qm + /// A64: ADDHN Vd.8B, Vn.8H, Vm.8H + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + + /// + /// uint16x4_t vaddhn_u32 (uint32x4_t a, uint32x4_t b) + /// A32: VADDHN.I32 Dd, Qn, Qm + /// A64: ADDHN Vd.4H, Vn.4S, Vm.4S + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + + /// + /// uint32x2_t vaddhn_u64 (uint64x2_t a, uint64x2_t b) + /// A32: VADDHN.I64 Dd, Qn, Qm + /// A64: ADDHN Vd.2S, Vn.2D, Vm.2D + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + + /// + /// uint8x16_t vaddhn_high_u16 (uint8x8_t r, uint16x8_t a, uint16x8_t b) + /// A32: VADDHN.I16 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.16B, Vn.8H, Vm.8H + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + + /// + /// int16x8_t vaddhn_high_s32 (int16x4_t r, int32x4_t a, int32x4_t b) + /// A32: VADDHN.I32 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.8H, Vn.4S, Vm.4S + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + + /// + /// int32x4_t vaddhn_high_s64 (int32x2_t r, int64x2_t a, int64x2_t b) + /// A32: VADDHN.I64 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.4S, Vn.2D, Vm.2D + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + + /// + /// int8x16_t vaddhn_high_s16 (int8x8_t r, int16x8_t a, int16x8_t b) + /// A32: VADDHN.I16 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.16B, Vn.8H, Vm.8H + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + + /// + /// uint16x8_t vaddhn_high_u32 (uint16x4_t r, uint32x4_t a, uint32x4_t b) + /// A32: VADDHN.I32 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.8H, Vn.4S, Vm.4S + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + + /// + /// uint32x4_t vaddhn_high_u64 (uint32x2_t r, uint64x2_t a, uint64x2_t b) + /// A32: VADDHN.I64 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.4S, Vn.2D, Vm.2D + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + /// /// uint8x8_t vpadd_u8 (uint8x8_t a, uint8x8_t b) /// A32: VPADD.I8 Dd, Dn, Dm @@ -2691,173 +2775,89 @@ internal Arm64() { } /// public static Vector64 AddPairwiseWideningScalar(Vector64 value) { throw new PlatformNotSupportedException(); } - /// - /// uint8x8_t vaddhn_u16 (uint16x8_t a, uint16x8_t b) - /// A32: VADDHN.I16 Dd, Qn, Qm - /// A64: ADDHN Vd.8B, Vn.8H, Vm.8H - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - - /// - /// int16x4_t vaddhn_s32 (int32x4_t a, int32x4_t b) - /// A32: VADDHN.I32 Dd, Qn, Qm - /// A64: ADDHN Vd.4H, Vn.4S, Vm.4S - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - - /// - /// int32x2_t vaddhn_s64 (int64x2_t a, int64x2_t b) - /// A32: VADDHN.I64 Dd, Qn, Qm - /// A64: ADDHN Vd.2S, Vn.2D, Vm.2D - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - - /// - /// int8x8_t vaddhn_s16 (int16x8_t a, int16x8_t b) - /// A32: VADDHN.I16 Dd, Qn, Qm - /// A64: ADDHN Vd.8B, Vn.8H, Vm.8H - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - - /// - /// uint16x4_t vaddhn_u32 (uint32x4_t a, uint32x4_t b) - /// A32: VADDHN.I32 Dd, Qn, Qm - /// A64: ADDHN Vd.4H, Vn.4S, Vm.4S - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - - /// - /// uint32x2_t vaddhn_u64 (uint64x2_t a, uint64x2_t b) - /// A32: VADDHN.I64 Dd, Qn, Qm - /// A64: ADDHN Vd.2S, Vn.2D, Vm.2D - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - - /// - /// uint8x16_t vaddhn_high_u16 (uint8x8_t r, uint16x8_t a, uint16x8_t b) - /// A32: VADDHN.I16 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.16B, Vn.8B, Vm.8H - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - - /// - /// int16x8_t vaddhn_high_s32 (int16x4_t r, int32x4_t a, int32x4_t b) - /// A32: VADDHN.I32 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.8H, Vn.4H, Vm.4S - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - - /// - /// int32x4_t vaddhn_high_s64 (int32x2_t r, int64x2_t a, int64x2_t b) - /// A32: VADDHN.I64 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.4S, Vn.2S, Vm.2D - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - - /// - /// int8x16_t vaddhn_high_s16 (int8x8_t r, int16x8_t a, int16x8_t b) - /// A32: VADDHN.I16 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.16B, Vn.8B, Vm.8H - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - - /// - /// uint16x8_t vaddhn_high_u32 (uint16x4_t r, uint32x4_t a, uint32x4_t b) - /// A32: VADDHN.I32 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.8H, Vn.4H, Vm.4S - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - - /// - /// uint32x4_t vaddhn_high_u64 (uint32x2_t r, uint64x2_t a, uint64x2_t b) - /// A32: VADDHN.I64 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.4S, Vn.2S, Vm.2D - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } - /// /// uint8x8_t vraddhn_u16 (uint16x8_t a, uint16x8_t b) /// A32: VRADDHN.I16 Dd, Qn, Qm /// A64: RADDHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int16x4_t vraddhn_s32 (int32x4_t a, int32x4_t b) /// A32: VRADDHN.I32 Dd, Qn, Qm /// A64: RADDHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int32x2_t vraddhn_s64 (int64x2_t a, int64x2_t b) /// A32: VRADDHN.I64 Dd, Qn, Qm /// A64: RADDHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int8x8_t vraddhn_s16 (int16x8_t a, int16x8_t b) /// A32: VRADDHN.I16 Dd, Qn, Qm /// A64: RADDHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint16x4_t vraddhn_u32 (uint32x4_t a, uint32x4_t b) /// A32: VRADDHN.I32 Dd, Qn, Qm /// A64: RADDHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint32x2_t vraddhn_u64 (uint64x2_t a, uint64x2_t b) /// A32: VRADDHN.I64 Dd, Qn, Qm /// A64: RADDHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint8x16_t vraddhn_high_u16 (uint8x8_t r, uint16x8_t a, uint16x8_t b) /// A32: VRADDHN.I16 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: RADDHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int16x8_t vraddhn_high_s32 (int16x4_t r, int32x4_t a, int32x4_t b) /// A32: VRADDHN.I32 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: RADDHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int32x4_t vraddhn_high_s64 (int32x2_t r, int64x2_t a, int64x2_t b) /// A32: VRADDHN.I64 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: RADDHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int8x16_t vraddhn_high_s16 (int8x8_t r, int16x8_t a, int16x8_t b) /// A32: VRADDHN.I16 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: RADDHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint16x8_t vraddhn_high_u32 (uint16x4_t r, uint32x4_t a, uint32x4_t b) /// A32: VRADDHN.I32 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: RADDHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint32x4_t vraddhn_high_u64 (uint32x2_t r, uint64x2_t a, uint64x2_t b) /// A32: VRADDHN.I64 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: RADDHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint8x8_t vqadd_u8 (uint8x8_t a, uint8x8_t b) @@ -7048,168 +7048,168 @@ internal Arm64() { } /// A32: VSUBHN.I16 Dd, Qn, Qm /// A64: SUBHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int16x4_t vsubhn_s32 (int32x4_t a, int32x4_t b) /// A32: VSUBHN.I32 Dd, Qn, Qm /// A64: SUBHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int32x2_t vsubhn_s64 (int64x2_t a, int64x2_t b) /// A32: VSUBHN.I64 Dd, Qn, Qm /// A64: SUBHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int8x8_t vsubhn_s16 (int16x8_t a, int16x8_t b) /// A32: VSUBHN.I16 Dd, Qn, Qm /// A64: SUBHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint16x4_t vsubhn_u32 (uint32x4_t a, uint32x4_t b) /// A32: VSUBHN.I32 Dd, Qn, Qm /// A64: SUBHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint32x2_t vsubhn_u64 (uint64x2_t a, uint64x2_t b) /// A32: VSUBHN.I64 Dd, Qn, Qm /// A64: SUBHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint8x16_t vsubhn_high_u16 (uint8x8_t r, uint16x8_t a, uint16x8_t b) /// A32: VSUBHN.I16 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: SUBHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int16x8_t vsubhn_high_s32 (int16x4_t r, int32x4_t a, int32x4_t b) /// A32: VSUBHN.I32 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: SUBHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int32x4_t vsubhn_high_s64 (int32x2_t r, int64x2_t a, int64x2_t b) /// A32: VSUBHN.I64 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: SUBHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int8x16_t vsubhn_high_s16 (int8x8_t r, int16x8_t a, int16x8_t b) /// A32: VSUBHN.I16 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: SUBHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint16x8_t vsubhn_high_u32 (uint16x4_t r, uint32x4_t a, uint32x4_t b) /// A32: VSUBHN.I32 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: SUBHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint32x4_t vsubhn_high_u64 (uint32x2_t r, uint64x2_t a, uint64x2_t b) /// A32: VSUBHN.I64 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: SUBHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint8x8_t vrsubhn_u16 (uint16x8_t a, uint16x8_t b) /// A32: VRSUBHN.I16 Dd, Qn, Qm /// A64: RSUBHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int16x4_t vrsubhn_s32 (int32x4_t a, int32x4_t b) /// A32: VRSUBHN.I32 Dd, Qn, Qm /// A64: RSUBHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int32x2_t vrsubhn_s64 (int64x2_t a, int64x2_t b) /// A32: VRSUBHN.I64 Dd, Qn, Qm /// A64: RSUBHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int8x8_t vrsubhn_s16 (int16x8_t a, int16x8_t b) /// A32: VRSUBHN.I16 Dd, Qn, Qm /// A64: RSUBHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint16x4_t vrsubhn_u32 (uint32x4_t a, uint32x4_t b) /// A32: VRSUBHN.I32 Dd, Qn, Qm /// A64: RSUBHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint32x2_t vrsubhn_u64 (uint64x2_t a, uint64x2_t b) /// A32: VRSUBHN.I64 Dd, Qn, Qm /// A64: RSUBHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint8x16_t vrsubhn_high_u16 (uint8x8_t r, uint16x8_t a, uint16x8_t b) /// A32: VRSUBHN.I16 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: RSUBHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int16x8_t vrsubhn_high_s32 (int16x4_t r, int32x4_t a, int32x4_t b) /// A32: VRSUBHN.I32 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: RSUBHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int32x4_t vrsubhn_high_s64 (int32x2_t r, int64x2_t a, int64x2_t b) /// A32: VRSUBHN.I64 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: RSUBHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// int8x16_t vrsubhn_high_s16 (int8x8_t r, int16x8_t a, int16x8_t b) /// A32: VRSUBHN.I16 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: RSUBHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint16x8_t vrsubhn_high_u32 (uint16x4_t r, uint32x4_t a, uint32x4_t b) /// A32: VRSUBHN.I32 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: RSUBHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint32x4_t vrsubhn_high_u64 (uint32x2_t r, uint64x2_t a, uint64x2_t b) /// A32: VRSUBHN.I64 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: RSUBHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) { throw new PlatformNotSupportedException(); } /// /// uint8x8_t vqsub_u8 (uint8x8_t a, uint8x8_t b) diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Arm/AdvSimd.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Arm/AdvSimd.cs index fa20a0a87a2f7..f5432dd94ac2b 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Arm/AdvSimd.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Arm/AdvSimd.cs @@ -2476,6 +2476,90 @@ internal Arm64() { } /// public static Vector128 Add(Vector128 left, Vector128 right) => Add(left, right); + /// + /// uint8x8_t vaddhn_u16 (uint16x8_t a, uint16x8_t b) + /// A32: VADDHN.I16 Dd, Qn, Qm + /// A64: ADDHN Vd.8B, Vn.8H, Vm.8H + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) => AddHighNarrowLower(left, right); + + /// + /// int16x4_t vaddhn_s32 (int32x4_t a, int32x4_t b) + /// A32: VADDHN.I32 Dd, Qn, Qm + /// A64: ADDHN Vd.4H, Vn.4S, Vm.4S + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) => AddHighNarrowLower(left, right); + + /// + /// int32x2_t vaddhn_s64 (int64x2_t a, int64x2_t b) + /// A32: VADDHN.I64 Dd, Qn, Qm + /// A64: ADDHN Vd.2S, Vn.2D, Vm.2D + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) => AddHighNarrowLower(left, right); + + /// + /// int8x8_t vaddhn_s16 (int16x8_t a, int16x8_t b) + /// A32: VADDHN.I16 Dd, Qn, Qm + /// A64: ADDHN Vd.8B, Vn.8H, Vm.8H + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) => AddHighNarrowLower(left, right); + + /// + /// uint16x4_t vaddhn_u32 (uint32x4_t a, uint32x4_t b) + /// A32: VADDHN.I32 Dd, Qn, Qm + /// A64: ADDHN Vd.4H, Vn.4S, Vm.4S + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) => AddHighNarrowLower(left, right); + + /// + /// uint32x2_t vaddhn_u64 (uint64x2_t a, uint64x2_t b) + /// A32: VADDHN.I64 Dd, Qn, Qm + /// A64: ADDHN Vd.2S, Vn.2D, Vm.2D + /// + public static Vector64 AddHighNarrowLower(Vector128 left, Vector128 right) => AddHighNarrowLower(left, right); + + /// + /// uint8x16_t vaddhn_high_u16 (uint8x8_t r, uint16x8_t a, uint16x8_t b) + /// A32: VADDHN.I16 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.16B, Vn.8H, Vm.8H + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddHighNarrowUpper(lower, left, right); + + /// + /// int16x8_t vaddhn_high_s32 (int16x4_t r, int32x4_t a, int32x4_t b) + /// A32: VADDHN.I32 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.8H, Vn.4S, Vm.4S + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddHighNarrowUpper(lower, left, right); + + /// + /// int32x4_t vaddhn_high_s64 (int32x2_t r, int64x2_t a, int64x2_t b) + /// A32: VADDHN.I64 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.4S, Vn.2D, Vm.2D + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddHighNarrowUpper(lower, left, right); + + /// + /// int8x16_t vaddhn_high_s16 (int8x8_t r, int16x8_t a, int16x8_t b) + /// A32: VADDHN.I16 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.16B, Vn.8H, Vm.8H + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddHighNarrowUpper(lower, left, right); + + /// + /// uint16x8_t vaddhn_high_u32 (uint16x4_t r, uint32x4_t a, uint32x4_t b) + /// A32: VADDHN.I32 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.8H, Vn.4S, Vm.4S + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddHighNarrowUpper(lower, left, right); + + /// + /// uint32x4_t vaddhn_high_u64 (uint32x2_t r, uint64x2_t a, uint64x2_t b) + /// A32: VADDHN.I64 Dd+1, Qn, Qm + /// A64: ADDHN2 Vd.4S, Vn.2D, Vm.2D + /// + public static Vector128 AddHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddHighNarrowUpper(lower, left, right); + /// /// uint8x8_t vpadd_u8 (uint8x8_t a, uint8x8_t b) /// A32: VPADD.I8 Dd, Dn, Dm @@ -2693,173 +2777,89 @@ internal Arm64() { } /// public static Vector64 AddPairwiseWideningScalar(Vector64 value) => AddPairwiseWideningScalar(value); - /// - /// uint8x8_t vaddhn_u16 (uint16x8_t a, uint16x8_t b) - /// A32: VADDHN.I16 Dd, Qn, Qm - /// A64: ADDHN Vd.8B, Vn.8H, Vm.8H - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) => AddReturningHighNarrowLower(left, right); - - /// - /// int16x4_t vaddhn_s32 (int32x4_t a, int32x4_t b) - /// A32: VADDHN.I32 Dd, Qn, Qm - /// A64: ADDHN Vd.4H, Vn.4S, Vm.4S - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) => AddReturningHighNarrowLower(left, right); - - /// - /// int32x2_t vaddhn_s64 (int64x2_t a, int64x2_t b) - /// A32: VADDHN.I64 Dd, Qn, Qm - /// A64: ADDHN Vd.2S, Vn.2D, Vm.2D - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) => AddReturningHighNarrowLower(left, right); - - /// - /// int8x8_t vaddhn_s16 (int16x8_t a, int16x8_t b) - /// A32: VADDHN.I16 Dd, Qn, Qm - /// A64: ADDHN Vd.8B, Vn.8H, Vm.8H - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) => AddReturningHighNarrowLower(left, right); - - /// - /// uint16x4_t vaddhn_u32 (uint32x4_t a, uint32x4_t b) - /// A32: VADDHN.I32 Dd, Qn, Qm - /// A64: ADDHN Vd.4H, Vn.4S, Vm.4S - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) => AddReturningHighNarrowLower(left, right); - - /// - /// uint32x2_t vaddhn_u64 (uint64x2_t a, uint64x2_t b) - /// A32: VADDHN.I64 Dd, Qn, Qm - /// A64: ADDHN Vd.2S, Vn.2D, Vm.2D - /// - public static Vector64 AddReturningHighNarrowLower(Vector128 left, Vector128 right) => AddReturningHighNarrowLower(left, right); - - /// - /// uint8x16_t vaddhn_high_u16 (uint8x8_t r, uint16x8_t a, uint16x8_t b) - /// A32: VADDHN.I16 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.16B, Vn.8B, Vm.8H - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningHighNarrowUpper(lower, left, right); - - /// - /// int16x8_t vaddhn_high_s32 (int16x4_t r, int32x4_t a, int32x4_t b) - /// A32: VADDHN.I32 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.8H, Vn.4H, Vm.4S - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningHighNarrowUpper(lower, left, right); - - /// - /// int32x4_t vaddhn_high_s64 (int32x2_t r, int64x2_t a, int64x2_t b) - /// A32: VADDHN.I64 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.4S, Vn.2S, Vm.2D - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningHighNarrowUpper(lower, left, right); - - /// - /// int8x16_t vaddhn_high_s16 (int8x8_t r, int16x8_t a, int16x8_t b) - /// A32: VADDHN.I16 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.16B, Vn.8B, Vm.8H - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningHighNarrowUpper(lower, left, right); - - /// - /// uint16x8_t vaddhn_high_u32 (uint16x4_t r, uint32x4_t a, uint32x4_t b) - /// A32: VADDHN.I32 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.8H, Vn.4H, Vm.4S - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningHighNarrowUpper(lower, left, right); - - /// - /// uint32x4_t vaddhn_high_u64 (uint32x2_t r, uint64x2_t a, uint64x2_t b) - /// A32: VADDHN.I64 Dd+1, Qn, Qm - /// A64: ADDHN2 Vd.4S, Vn.2S, Vm.2D - /// - public static Vector128 AddReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningHighNarrowUpper(lower, left, right); - /// /// uint8x8_t vraddhn_u16 (uint16x8_t a, uint16x8_t b) /// A32: VRADDHN.I16 Dd, Qn, Qm /// A64: RADDHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowLower(left, right); + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddRoundedHighNarrowLower(left, right); /// /// int16x4_t vraddhn_s32 (int32x4_t a, int32x4_t b) /// A32: VRADDHN.I32 Dd, Qn, Qm /// A64: RADDHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowLower(left, right); + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddRoundedHighNarrowLower(left, right); /// /// int32x2_t vraddhn_s64 (int64x2_t a, int64x2_t b) /// A32: VRADDHN.I64 Dd, Qn, Qm /// A64: RADDHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowLower(left, right); + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddRoundedHighNarrowLower(left, right); /// /// int8x8_t vraddhn_s16 (int16x8_t a, int16x8_t b) /// A32: VRADDHN.I16 Dd, Qn, Qm /// A64: RADDHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowLower(left, right); + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddRoundedHighNarrowLower(left, right); /// /// uint16x4_t vraddhn_u32 (uint32x4_t a, uint32x4_t b) /// A32: VRADDHN.I32 Dd, Qn, Qm /// A64: RADDHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowLower(left, right); + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddRoundedHighNarrowLower(left, right); /// /// uint32x2_t vraddhn_u64 (uint64x2_t a, uint64x2_t b) /// A32: VRADDHN.I64 Dd, Qn, Qm /// A64: RADDHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 AddReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowLower(left, right); + public static Vector64 AddRoundedHighNarrowLower(Vector128 left, Vector128 right) => AddRoundedHighNarrowLower(left, right); /// /// uint8x16_t vraddhn_high_u16 (uint8x8_t r, uint16x8_t a, uint16x8_t b) /// A32: VRADDHN.I16 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: RADDHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddRoundedHighNarrowUpper(lower, left, right); /// /// int16x8_t vraddhn_high_s32 (int16x4_t r, int32x4_t a, int32x4_t b) /// A32: VRADDHN.I32 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: RADDHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddRoundedHighNarrowUpper(lower, left, right); /// /// int32x4_t vraddhn_high_s64 (int32x2_t r, int64x2_t a, int64x2_t b) /// A32: VRADDHN.I64 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: RADDHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddRoundedHighNarrowUpper(lower, left, right); /// /// int8x16_t vraddhn_high_s16 (int8x8_t r, int16x8_t a, int16x8_t b) /// A32: VRADDHN.I16 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: RADDHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddRoundedHighNarrowUpper(lower, left, right); /// /// uint16x8_t vraddhn_high_u32 (uint16x4_t r, uint32x4_t a, uint32x4_t b) /// A32: VRADDHN.I32 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: RADDHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddRoundedHighNarrowUpper(lower, left, right); /// /// uint32x4_t vraddhn_high_u64 (uint32x2_t r, uint64x2_t a, uint64x2_t b) /// A32: VRADDHN.I64 Dd+1, Qn, Qm - /// A64: RADDHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: RADDHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 AddReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 AddRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => AddRoundedHighNarrowUpper(lower, left, right); /// /// uint8x8_t vqadd_u8 (uint8x8_t a, uint8x8_t b) @@ -7050,168 +7050,168 @@ internal Arm64() { } /// A32: VSUBHN.I16 Dd, Qn, Qm /// A64: SUBHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningHighNarrowLower(left, right); + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) => SubtractHighNarrowLower(left, right); /// /// int16x4_t vsubhn_s32 (int32x4_t a, int32x4_t b) /// A32: VSUBHN.I32 Dd, Qn, Qm /// A64: SUBHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningHighNarrowLower(left, right); + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) => SubtractHighNarrowLower(left, right); /// /// int32x2_t vsubhn_s64 (int64x2_t a, int64x2_t b) /// A32: VSUBHN.I64 Dd, Qn, Qm /// A64: SUBHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningHighNarrowLower(left, right); + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) => SubtractHighNarrowLower(left, right); /// /// int8x8_t vsubhn_s16 (int16x8_t a, int16x8_t b) /// A32: VSUBHN.I16 Dd, Qn, Qm /// A64: SUBHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningHighNarrowLower(left, right); + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) => SubtractHighNarrowLower(left, right); /// /// uint16x4_t vsubhn_u32 (uint32x4_t a, uint32x4_t b) /// A32: VSUBHN.I32 Dd, Qn, Qm /// A64: SUBHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningHighNarrowLower(left, right); + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) => SubtractHighNarrowLower(left, right); /// /// uint32x2_t vsubhn_u64 (uint64x2_t a, uint64x2_t b) /// A32: VSUBHN.I64 Dd, Qn, Qm /// A64: SUBHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 SubtractReturningHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningHighNarrowLower(left, right); + public static Vector64 SubtractHighNarrowLower(Vector128 left, Vector128 right) => SubtractHighNarrowLower(left, right); /// /// uint8x16_t vsubhn_high_u16 (uint8x8_t r, uint16x8_t a, uint16x8_t b) /// A32: VSUBHN.I16 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: SUBHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningHighNarrowUpper(lower, left, right); + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractHighNarrowUpper(lower, left, right); /// /// int16x8_t vsubhn_high_s32 (int16x4_t r, int32x4_t a, int32x4_t b) /// A32: VSUBHN.I32 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: SUBHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningHighNarrowUpper(lower, left, right); + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractHighNarrowUpper(lower, left, right); /// /// int32x4_t vsubhn_high_s64 (int32x2_t r, int64x2_t a, int64x2_t b) /// A32: VSUBHN.I64 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: SUBHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningHighNarrowUpper(lower, left, right); + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractHighNarrowUpper(lower, left, right); /// /// int8x16_t vsubhn_high_s16 (int8x8_t r, int16x8_t a, int16x8_t b) /// A32: VSUBHN.I16 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: SUBHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningHighNarrowUpper(lower, left, right); + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractHighNarrowUpper(lower, left, right); /// /// uint16x8_t vsubhn_high_u32 (uint16x4_t r, uint32x4_t a, uint32x4_t b) /// A32: VSUBHN.I32 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: SUBHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningHighNarrowUpper(lower, left, right); + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractHighNarrowUpper(lower, left, right); /// /// uint32x4_t vsubhn_high_u64 (uint32x2_t r, uint64x2_t a, uint64x2_t b) /// A32: VSUBHN.I64 Dd+1, Qn, Qm - /// A64: SUBHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: SUBHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 SubtractReturningHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningHighNarrowUpper(lower, left, right); + public static Vector128 SubtractHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractHighNarrowUpper(lower, left, right); /// /// uint8x8_t vrsubhn_u16 (uint16x8_t a, uint16x8_t b) /// A32: VRSUBHN.I16 Dd, Qn, Qm /// A64: RSUBHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowLower(left, right); + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractRoundedHighNarrowLower(left, right); /// /// int16x4_t vrsubhn_s32 (int32x4_t a, int32x4_t b) /// A32: VRSUBHN.I32 Dd, Qn, Qm /// A64: RSUBHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowLower(left, right); + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractRoundedHighNarrowLower(left, right); /// /// int32x2_t vrsubhn_s64 (int64x2_t a, int64x2_t b) /// A32: VRSUBHN.I64 Dd, Qn, Qm /// A64: RSUBHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowLower(left, right); + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractRoundedHighNarrowLower(left, right); /// /// int8x8_t vrsubhn_s16 (int16x8_t a, int16x8_t b) /// A32: VRSUBHN.I16 Dd, Qn, Qm /// A64: RSUBHN Vd.8B, Vn.8H, Vm.8H /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowLower(left, right); + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractRoundedHighNarrowLower(left, right); /// /// uint16x4_t vrsubhn_u32 (uint32x4_t a, uint32x4_t b) /// A32: VRSUBHN.I32 Dd, Qn, Qm /// A64: RSUBHN Vd.4H, Vn.4S, Vm.4S /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowLower(left, right); + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractRoundedHighNarrowLower(left, right); /// /// uint32x2_t vrsubhn_u64 (uint64x2_t a, uint64x2_t b) /// A32: VRSUBHN.I64 Dd, Qn, Qm /// A64: RSUBHN Vd.2S, Vn.2D, Vm.2D /// - public static Vector64 SubtractReturningRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowLower(left, right); + public static Vector64 SubtractRoundedHighNarrowLower(Vector128 left, Vector128 right) => SubtractRoundedHighNarrowLower(left, right); /// /// uint8x16_t vrsubhn_high_u16 (uint8x8_t r, uint16x8_t a, uint16x8_t b) /// A32: VRSUBHN.I16 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: RSUBHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractRoundedHighNarrowUpper(lower, left, right); /// /// int16x8_t vrsubhn_high_s32 (int16x4_t r, int32x4_t a, int32x4_t b) /// A32: VRSUBHN.I32 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: RSUBHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractRoundedHighNarrowUpper(lower, left, right); /// /// int32x4_t vrsubhn_high_s64 (int32x2_t r, int64x2_t a, int64x2_t b) /// A32: VRSUBHN.I64 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: RSUBHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractRoundedHighNarrowUpper(lower, left, right); /// /// int8x16_t vrsubhn_high_s16 (int8x8_t r, int16x8_t a, int16x8_t b) /// A32: VRSUBHN.I16 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.16B, Vn.8B, Vm.8H + /// A64: RSUBHN2 Vd.16B, Vn.8H, Vm.8H /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractRoundedHighNarrowUpper(lower, left, right); /// /// uint16x8_t vrsubhn_high_u32 (uint16x4_t r, uint32x4_t a, uint32x4_t b) /// A32: VRSUBHN.I32 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.8H, Vn.4H, Vm.4S + /// A64: RSUBHN2 Vd.8H, Vn.4S, Vm.4S /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractRoundedHighNarrowUpper(lower, left, right); /// /// uint32x4_t vrsubhn_high_u64 (uint32x2_t r, uint64x2_t a, uint64x2_t b) /// A32: VRSUBHN.I64 Dd+1, Qn, Qm - /// A64: RSUBHN2 Vd.4S, Vn.2S, Vm.2D + /// A64: RSUBHN2 Vd.4S, Vn.2D, Vm.2D /// - public static Vector128 SubtractReturningRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractReturningRoundedHighNarrowUpper(lower, left, right); + public static Vector128 SubtractRoundedHighNarrowUpper(Vector64 lower, Vector128 left, Vector128 right) => SubtractRoundedHighNarrowUpper(lower, left, right); /// /// uint8x8_t vqsub_u8 (uint8x8_t a, uint8x8_t b) diff --git a/src/libraries/System.Runtime.Intrinsics.Experimental/ref/System.Runtime.Intrinsics.Experimental.cs b/src/libraries/System.Runtime.Intrinsics.Experimental/ref/System.Runtime.Intrinsics.Experimental.cs index 181e20a22c3ca..dee537db82298 100644 --- a/src/libraries/System.Runtime.Intrinsics.Experimental/ref/System.Runtime.Intrinsics.Experimental.cs +++ b/src/libraries/System.Runtime.Intrinsics.Experimental/ref/System.Runtime.Intrinsics.Experimental.cs @@ -96,6 +96,18 @@ internal AdvSimd() { } public static System.Runtime.Intrinsics.Vector64 Add(System.Runtime.Intrinsics.Vector64 left, System.Runtime.Intrinsics.Vector64 right) { throw null; } public static System.Runtime.Intrinsics.Vector64 Add(System.Runtime.Intrinsics.Vector64 left, System.Runtime.Intrinsics.Vector64 right) { throw null; } public static System.Runtime.Intrinsics.Vector64 Add(System.Runtime.Intrinsics.Vector64 left, System.Runtime.Intrinsics.Vector64 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } public static System.Runtime.Intrinsics.Vector64 AddPairwise(System.Runtime.Intrinsics.Vector64 left, System.Runtime.Intrinsics.Vector64 right) { throw null; } public static System.Runtime.Intrinsics.Vector64 AddPairwise(System.Runtime.Intrinsics.Vector64 left, System.Runtime.Intrinsics.Vector64 right) { throw null; } public static System.Runtime.Intrinsics.Vector64 AddPairwise(System.Runtime.Intrinsics.Vector64 left, System.Runtime.Intrinsics.Vector64 right) { throw null; } @@ -127,30 +139,18 @@ internal AdvSimd() { } public static System.Runtime.Intrinsics.Vector64 AddPairwiseWideningAndAddScalar(System.Runtime.Intrinsics.Vector64 addend, System.Runtime.Intrinsics.Vector64 value) { throw null; } public static System.Runtime.Intrinsics.Vector64 AddPairwiseWideningScalar(System.Runtime.Intrinsics.Vector64 value) { throw null; } public static System.Runtime.Intrinsics.Vector64 AddPairwiseWideningScalar(System.Runtime.Intrinsics.Vector64 value) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 AddReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 AddReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 AddRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 AddRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } public static System.Runtime.Intrinsics.Vector128 AddSaturate(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } public static System.Runtime.Intrinsics.Vector128 AddSaturate(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } public static System.Runtime.Intrinsics.Vector128 AddSaturate(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } @@ -744,30 +744,30 @@ public unsafe static void Store(ulong* address, System.Runtime.Intrinsics.Vector public static System.Runtime.Intrinsics.Vector64 Subtract(System.Runtime.Intrinsics.Vector64 left, System.Runtime.Intrinsics.Vector64 right) { throw null; } public static System.Runtime.Intrinsics.Vector64 Subtract(System.Runtime.Intrinsics.Vector64 left, System.Runtime.Intrinsics.Vector64 right) { throw null; } public static System.Runtime.Intrinsics.Vector64 Subtract(System.Runtime.Intrinsics.Vector64 left, System.Runtime.Intrinsics.Vector64 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector64 SubtractReturningRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } - public static System.Runtime.Intrinsics.Vector128 SubtractReturningRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector64 SubtractRoundedHighNarrowLower(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } + public static System.Runtime.Intrinsics.Vector128 SubtractRoundedHighNarrowUpper(System.Runtime.Intrinsics.Vector64 lower, System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } public static System.Runtime.Intrinsics.Vector128 SubtractSaturate(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } public static System.Runtime.Intrinsics.Vector128 SubtractSaturate(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; } public static System.Runtime.Intrinsics.Vector128 SubtractSaturate(System.Runtime.Intrinsics.Vector128 left, System.Runtime.Intrinsics.Vector128 right) { throw null; }