From 55b6671d9acb63748f3ee01f6e90204bdacbaf7d Mon Sep 17 00:00:00 2001 From: SingleAccretion Date: Sun, 5 Jun 2022 21:24:26 +0300 Subject: [PATCH] Add a test --- .../JitBlue/Runtime_70124/Runtime_70124.cs | 24 +++++++++++++++++++ .../Runtime_70124/Runtime_70124.csproj | 9 +++++++ 2 files changed, 33 insertions(+) create mode 100644 src/tests/JIT/Regression/JitBlue/Runtime_70124/Runtime_70124.cs create mode 100644 src/tests/JIT/Regression/JitBlue/Runtime_70124/Runtime_70124.csproj diff --git a/src/tests/JIT/Regression/JitBlue/Runtime_70124/Runtime_70124.cs b/src/tests/JIT/Regression/JitBlue/Runtime_70124/Runtime_70124.cs new file mode 100644 index 00000000000000..aae6c864afda5f --- /dev/null +++ b/src/tests/JIT/Regression/JitBlue/Runtime_70124/Runtime_70124.cs @@ -0,0 +1,24 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Numerics; +using System.Runtime.CompilerServices; + +public class Runtime_70124 +{ + public static int Main() + { + return Problem(Vector2.One, Vector2.One) != new Vector2(3, 3) ? 101 : 100; + } + + [MethodImpl(MethodImplOptions.NoInlining)] + private static Vector2 Problem(Vector2 a, Vector2 b) + { + CallForVtor2(a + b); + + return (a + b) + a; + } + + [MethodImpl(MethodImplOptions.NoInlining)] + private static void CallForVtor2(Vector2 vtor) { } +} diff --git a/src/tests/JIT/Regression/JitBlue/Runtime_70124/Runtime_70124.csproj b/src/tests/JIT/Regression/JitBlue/Runtime_70124/Runtime_70124.csproj new file mode 100644 index 00000000000000..f492aeac9d056b --- /dev/null +++ b/src/tests/JIT/Regression/JitBlue/Runtime_70124/Runtime_70124.csproj @@ -0,0 +1,9 @@ + + + Exe + True + + + + + \ No newline at end of file