-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone
Description
Consider the following program:
using System;
using System.Runtime.CompilerServices;
long l = 0x4000_0040_0000_0001L;
Console.WriteLine((float)l);
Test1(l);
Test2(l);
[MethodImpl(MethodImplOptions.NoInlining)]
static void Test1(long l) => Console.WriteLine((float)l);
[MethodImpl(MethodImplOptions.NoInlining)]
static void Test2(long l) => Console.WriteLine((float)(double)l);The expected result is:
4.6116866E+18
4.6116866E+18
4.611686E+18
The actual result is:
4.611686E+18
4.6116866E+18
4.611686E+18
Metadata
Metadata
Assignees
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI