Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ static void TestConvertFromFloatToI2()
GenerateTest<float, short>(-1F, sourceOp, convNoOvf, DontExpectException, -1);
GenerateTest<float, short>(short.MaxValue, sourceOp, convNoOvf, DontExpectException, short.MaxValue);
GenerateTest<float, short>(short.MinValue, sourceOp, convNoOvf, DontExpectException, short.MinValue);
GenerateTest<float, short>(ushort.MaxValue, sourceOp, convNoOvf, DontExpectException, -1);
GenerateTest<float, short>(ushort.MaxValue, sourceOp, convNoOvf, DontExpectException, 0, UnspecifiedBehaviour); // Saturates to short.MaxValue on CoreCLR, truncates on Mono (https://github.com/dotnet/runtime/issues/100368)
GenerateTest<float, short>(ushort.MinValue, sourceOp, convNoOvf, DontExpectException, byte.MinValue);
GenerateTest<float, short>(long.MaxValue, sourceOp, convNoOvf, DontExpectException, 0, UnspecifiedBehaviour);
GenerateTest<float, short>(long.MinValue, sourceOp, convNoOvf, DontExpectException, 0, UnspecifiedBehaviour);
Expand Down Expand Up @@ -977,7 +977,7 @@ static void TestConvertFromDoubleToI2()
GenerateTest<double, short>(-1, sourceOp, convNoOvf, DontExpectException, -1);
GenerateTest<double, short>(short.MaxValue, sourceOp, convNoOvf, DontExpectException, short.MaxValue);
GenerateTest<double, short>(short.MinValue, sourceOp, convNoOvf, DontExpectException, short.MinValue);
GenerateTest<double, short>(ushort.MaxValue, sourceOp, convNoOvf, DontExpectException, -1);
GenerateTest<double, short>(ushort.MaxValue, sourceOp, convNoOvf, DontExpectException, 0, UnspecifiedBehaviour); // Saturates to short.MaxValue on CoreCLR, truncates on Mono (https://github.com/dotnet/runtime/issues/100368)
GenerateTest<double, short>(ushort.MinValue, sourceOp, convNoOvf, DontExpectException, byte.MinValue);
GenerateTest<double, short>(long.MaxValue, sourceOp, convNoOvf, DontExpectException, 0, UnspecifiedBehaviour);
GenerateTest<double, short>(long.MinValue, sourceOp, convNoOvf, DontExpectException, 0, UnspecifiedBehaviour);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ stloc.0
sub
sub
or
ldc.i8 4294967086
ldc.i8 4294967043
conv.u4
sub

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
<!-- Saturating float->small casts on CoreCLR; Mono still truncates (https://github.com/dotnet/runtime/issues/100368) -->
<CLRTestTargetUnsupported Condition="'$(RuntimeFlavor)' == 'mono'">true</CLRTestTargetUnsupported>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
Expand Down
Loading