Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
Copy link
Copy Markdown
Contributor

@drieseng drieseng Jul 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sandreenko Sorry if I totally miss the ball here, but wasn't Runtime_35724 supposed to be marked as prio 1 ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it was fixed in #39062

</PropertyGroup>
<PropertyGroup>
<DebugType />
Expand Down
29 changes: 29 additions & 0 deletions src/tests/JIT/Regression/JitBlue/Runtime_35724/Runtime_35724.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// 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.Numerics;
using System.Runtime.CompilerServices;

// SIMD8 could be retyped as a long in the past and if that long value was CSE-ed together with original SIMD8
// values we could hit an assert `IsCompatibleType(cseLclVarTyp, expTyp)`.

class Runtime_35724
{
[MethodImpl(MethodImplOptions.NoInlining)]
static Vector2 Test()
{
Vector2 a = new Vector2(1);
Vector2 b = new Vector2(2);
Vector2 c = a / b;
Vector2 d = a / b;
Console.WriteLine(c.X + d.Y);
return a / b;
}

public static int Main()
{
Test();
return 100;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
</Project>