diff --git a/src/tests/JIT/Regression/JitBlue/Runtime_105721/Runtime_105721.cs b/src/tests/JIT/Regression/JitBlue/Runtime_105721/Runtime_105721.cs new file mode 100644 index 0000000000000..fb07b010252a5 --- /dev/null +++ b/src/tests/JIT/Regression/JitBlue/Runtime_105721/Runtime_105721.cs @@ -0,0 +1,32 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.Intrinsics; +using Xunit; + +public class Runtime_105721 +{ + [Fact] + public static void TestEntryPoint() + { + new Runtime_105721().Foo(); + } + + private short s_21 = -1; + [MethodImpl(MethodImplOptions.NoInlining)] + private void Foo() + { + Vector128 v1 = Vector128.CreateScalar(s_21); + Vector128 v2 = Vector128.CreateScalar(s_21); + Check(v1, v2); + } + + [MethodImpl(MethodImplOptions.NoInlining)] + private void Check(Vector128 v1, Vector128 v2) + { + Assert.Equal(-1, v1[0]); + Assert.Equal(-1, v2[0]); + } +} diff --git a/src/tests/JIT/Regression/JitBlue/Runtime_105721/Runtime_105721.csproj b/src/tests/JIT/Regression/JitBlue/Runtime_105721/Runtime_105721.csproj new file mode 100644 index 0000000000000..de6d5e08882e8 --- /dev/null +++ b/src/tests/JIT/Regression/JitBlue/Runtime_105721/Runtime_105721.csproj @@ -0,0 +1,8 @@ + + + True + + + + +