From 6235fe175dfd601fa3e3f86b6f2c756e81b8127c Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Mon, 15 May 2023 18:41:59 -0700 Subject: [PATCH] Add regression test --- .../JitBlue/Runtime_84619/Runtime_84619.cs | 28 +++++++++++++++++++ .../Runtime_84619/Runtime_84619.csproj | 9 ++++++ 2 files changed, 37 insertions(+) create mode 100644 src/tests/JIT/Regression/JitBlue/Runtime_84619/Runtime_84619.cs create mode 100644 src/tests/JIT/Regression/JitBlue/Runtime_84619/Runtime_84619.csproj diff --git a/src/tests/JIT/Regression/JitBlue/Runtime_84619/Runtime_84619.cs b/src/tests/JIT/Regression/JitBlue/Runtime_84619/Runtime_84619.cs new file mode 100644 index 0000000000000..2a118cdb0eb89 --- /dev/null +++ b/src/tests/JIT/Regression/JitBlue/Runtime_84619/Runtime_84619.cs @@ -0,0 +1,28 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Xunit; + +// Generated by Fuzzlyn v1.5 on 2023-04-09 16:37:03 +// Run on X64 Windows +// Seed: 6230188300048624105 +// Reduced from 155.1 KiB to 0.2 KiB in 00:01:48 +// Hits JIT assert in Release: +// Assertion failed '((tree->gtFlags & GTF_VAR_DEF) == 0) && (tree->GetLclNum() == lclNum) && tree->gtVNPair.BothDefined()' in 'Program:Main(Fuzzlyn.ExecutionServer.IRuntime)' during 'VN based copy prop' (IL size 25; hash 0xade6b36b; FullOpts) +// +// File: D:\a\_work\1\s\src\coreclr\jit\copyprop.cpp Line: 161 +// +public class Runtime_84619 +{ + public static sbyte s_27; + [Fact] + public static int TestEntryPoint() + { + long vr1 = 0; + for (int vr3 = 0; vr3 < -1; vr3++) + { + s_27 = (sbyte)(vr1 | vr1); + } + return 100; + } +} diff --git a/src/tests/JIT/Regression/JitBlue/Runtime_84619/Runtime_84619.csproj b/src/tests/JIT/Regression/JitBlue/Runtime_84619/Runtime_84619.csproj new file mode 100644 index 0000000000000..1bb887ea34b0f --- /dev/null +++ b/src/tests/JIT/Regression/JitBlue/Runtime_84619/Runtime_84619.csproj @@ -0,0 +1,9 @@ + + + True + None + + + + + \ No newline at end of file