You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bad lowering of CreateScalar when EnableHWIntrinsic=0 #133746
With DOTNET_EnableHWIntrinsic=0, this prints <-1, 0, 0, ...> with tieredcompilation=1 but prints <-1, -1, ...> with tieredcompilation=0.
using System;
using System.Runtime.Intrinsics;
public class Mini
{
public static int Main()
{
Vector64<sbyte> value = Vector64.CreateScalar((sbyte)-1);
Console.WriteLine(value);
return 100;
}
}
Problem is lowering/store coalescing making this transform, byte->long:
lowering store lcl var/field (before):
N001 ( 1, 2) [000055] -----+----- t55 = CNS_INT int -1 $40
/--* t55 int
N002 ( 6, 8) [000056] UA---+----- * STORE_LCL_FLD byte V02 tmp2 ud:1->2[+0] $VN.Void
lowering store lcl var/field (after):
N001 ( 1, 2) [000055] -----+----- t55 = CNS_INT long -1 $40
/--* t55 long
N002 ( 6, 8) [000056] UA---+----- * STORE_LCL_FLD long V02 tmp2 ud:1->2[+0] $VN.Void
Activity
dotnet-policy-service commentedon Sep 11, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
tannergooding commentedon Sep 11, 2026
ah, @dhartglassMSFT I missed that you had self-assigned already. I have a fix if you've not actually started work
otherwise, feel free to continue
dhartglassMSFT commentedon Sep 13, 2026
sure grab it I unassigned myself
Validate store-coalescing constants before modifying IR (dotnet#133976)
[release/11.0] Validate store-coalescing constants before modifying IR (