-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release/9.0] JIT: Avoid removing CSE candidates in fgMorphExpandCast (…
…#106746) * JIT: Avoid removing CSE candidates in fgMorphExpandCast Fix #106609 * Fix test --------- Co-authored-by: Jakob Botsch Nielsen <[email protected]> Co-authored-by: Jeff Schwartz <[email protected]>
- Loading branch information
1 parent
02bb8c3
commit 84e8aa4
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/tests/JIT/Regression/JitBlue/Runtime_106609/Runtime_106609.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
// Generated by Fuzzlyn v2.2 on 2024-08-17 17:16:59 | ||
// Run on Arm64 Windows | ||
// Seed: 18124298882625099135-vectort,vector64,vector128,armadvsimd,armadvsimdarm64,armaes,armarmbase,armarmbasearm64,armcrc32,armcrc32arm64,armdp,armsha1,armsha256 | ||
// Reduced from 129.5 KiB to 0.4 KiB in 00:04:55 | ||
// Hits JIT assert in Release: | ||
// Assertion failed 'link' in 'Program:Main(Fuzzlyn.ExecutionServer.IRuntime)' during 'Optimize Valnum CSEs' (IL size 39; hash 0xade6b36b; FullOpts) | ||
// | ||
// File: D:\a\_work\1\s\src\coreclr\jit\optcse.cpp Line: 5295 | ||
// | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.Intrinsics; | ||
using System.Runtime.Intrinsics.Arm; | ||
using Xunit; | ||
|
||
public class Runtime_106609 | ||
{ | ||
[Fact] | ||
public static void TestEntrypoint() | ||
{ | ||
if (AdvSimd.IsSupported) | ||
{ | ||
try | ||
{ | ||
Test(); | ||
} | ||
catch | ||
{ | ||
} | ||
} | ||
} | ||
|
||
public static float[] s_2; | ||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
private static void Test() | ||
{ | ||
for (int vr8 = 0; vr8 < 2; vr8++) | ||
{ | ||
var vr9 = Vector64.Create<uint>(0); | ||
s_2[0] = (float)(-(-(double)AdvSimd.Extract(vr9, 0))); | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/tests/JIT/Regression/JitBlue/Runtime_106609/Runtime_106609.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<Optimize>True</Optimize> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="$(MSBuildProjectName).cs" /> | ||
</ItemGroup> | ||
</Project> |