-
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] Fix hwintrinsicChild->isContained() assert (#96388
) * Fix containment * Fix naming * Update src/tests/JIT/Regression/JitBlue/Runtime_90508/Runtime_90508.cs Co-authored-by: Bruce Forstall <brucefo@microsoft.com> * better fix * oops, typo * clean up * Update lowerxarch.cpp * Update Runtime_90508.cs * Update Runtime_90508.cs --------- Co-authored-by: EgorBo <egorbo@gmail.com> Co-authored-by: Bruce Forstall <brucefo@microsoft.com>
- Loading branch information
1 parent
46adbbb
commit 9d77190
Showing
3 changed files
with
51 additions
and
1 deletion.
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
39 changes: 39 additions & 0 deletions
39
src/tests/JIT/Regression/JitBlue/Runtime_90508/Runtime_90508.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,39 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Runtime.CompilerServices; | ||
using System.Runtime.Intrinsics; | ||
using System.Runtime.Intrinsics.X86; | ||
using Xunit; | ||
|
||
public class Runtime_90508 | ||
{ | ||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
private static Vector128<double> Test1(Vector128<double> v, double b) => | ||
v + Sse3.MoveAndDuplicate(Vector128.CreateScalarUnsafe(b)); | ||
|
||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
private static Vector128<double> Test2(Vector128<double> v) => | ||
v + Sse3.MoveAndDuplicate(Vector128.CreateScalarUnsafe(1.0)); | ||
|
||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
private static Vector128<double> Test3(Vector128<double> v) => | ||
v + Sse3.MoveAndDuplicate(Vector128.Create(1.0)); | ||
|
||
[Fact] | ||
public static int TestEntryPoint() | ||
{ | ||
if (!Sse3.IsSupported) | ||
{ | ||
return 100; | ||
} | ||
|
||
if (Test1(Vector128.Create(42.0), 1).ToString().Equals("<43, 43>") && | ||
Test2(Vector128.Create(42.0)).ToString().Equals("<43, 43>") && | ||
Test3(Vector128.Create(42.0)).ToString().Equals("<43, 43>")) | ||
{ | ||
return 100; | ||
} | ||
return 101; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/tests/JIT/Regression/JitBlue/Runtime_90508/Runtime_90508.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> |