summaryrefslogtreecommitdiff
path: root/tests/src/JIT
diff options
context:
space:
mode:
authorJacek Blaszczynski <biosciencenow@outlook.com>2018-05-19 01:15:50 +0200
committerJacek Blaszczynski <biosciencenow@outlook.com>2018-05-20 22:13:57 +0200
commit54eae6ff423017b613105f1c7f1878e780100a22 (patch)
tree5a85fa7493868b9c88686b552c69ece22ec167c6 /tests/src/JIT
parentc0cddf9d826184a20506a94a9bd448fae85104b2 (diff)
downloadcoreclr-54eae6ff423017b613105f1c7f1878e780100a22.tar.gz
coreclr-54eae6ff423017b613105f1c7f1878e780100a22.tar.bz2
coreclr-54eae6ff423017b613105f1c7f1878e780100a22.zip
Fix ConvertToInt32WithTruncation tests
Diffstat (limited to 'tests/src/JIT')
-rw-r--r--tests/src/JIT/HardwareIntrinsics/X86/Sse2/ConvertToInt32WithTruncation.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/JIT/HardwareIntrinsics/X86/Sse2/ConvertToInt32WithTruncation.cs b/tests/src/JIT/HardwareIntrinsics/X86/Sse2/ConvertToInt32WithTruncation.cs
index 69e6d6f691..727867ee8a 100644
--- a/tests/src/JIT/HardwareIntrinsics/X86/Sse2/ConvertToInt32WithTruncation.cs
+++ b/tests/src/JIT/HardwareIntrinsics/X86/Sse2/ConvertToInt32WithTruncation.cs
@@ -27,13 +27,13 @@ namespace IntelHardwareIntrinsicTest
for (int i = 0; i < testsCount; i++)
{
(Vector128<double>, Vector128<double>) value = doubleTable[i];
- int result = Sse2.ConvertToInt32(value.Item1);
+ int result = Sse2.ConvertToInt32WithTruncation(value.Item1);
doubleTable.SetOutArray(result);
}
CheckMethodEightOne<double, int> checkDouble = (Span<double> x, Span<double> y, int z, ref int a) =>
{
- a = (int) Math.Round(x[0], 0);
+ a = (int) x[0];
return a == z;
};