-
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/8.0-staging] Ensure that Sse3.MoveAndDuplicate correctly tra…
…cks supporting SIMD scalar loads (#100417) * Ensure that Sse3.MoveAndDuplicate correctly tracks supporting SIMD scalar loads (#97783) * Add a regression test for #100404 * Fix the regression test to not be called Main
- Loading branch information
1 parent
9de64a2
commit 7d45915
Showing
3 changed files
with
67 additions
and
9 deletions.
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
31 changes: 31 additions & 0 deletions
31
src/tests/JIT/Regression/JitBlue/Runtime_100404/Runtime_100404.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,31 @@ | ||
// 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 static class Runtime_100404 | ||
{ | ||
[Fact] | ||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
public static void TestMultiplyVector128DoubleByConstant() | ||
{ | ||
Vector128<double> result = Map(Vector128<double>.One, new FloatPoint(2.0, 3.0)); | ||
Assert.Equal(2.0, result[0]); | ||
Assert.Equal(2.0, result[1]); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
private static Vector128<double> Map(Vector128<double> m0, FloatPoint point) | ||
{ | ||
return m0 * Vector128.Create(point.X); | ||
} | ||
|
||
private struct FloatPoint(double x, double y) | ||
{ | ||
public double X = x; | ||
public double Y = y; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/tests/JIT/Regression/JitBlue/Runtime_100404/Runtime_100404.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> |