-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix genPutArgStkFieldList for SIMD12 (#88920)
- Loading branch information
Showing
11 changed files
with
169 additions
and
52 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
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
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
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
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
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
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
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
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
67 changes: 67 additions & 0 deletions
67
src/tests/JIT/Regression/JitBlue/Runtime_79118/Runtime_79118.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,67 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Collections.Generic; | ||
using System.Numerics; | ||
using System.Runtime.CompilerServices; | ||
using Xunit; | ||
|
||
public readonly struct Ray | ||
{ | ||
public readonly Vector3 Origin; | ||
public readonly Vector3 Direction; | ||
|
||
public Ray(Vector3 origin, Vector3 direction) | ||
{ | ||
Origin = origin; | ||
Direction = direction; | ||
} | ||
} | ||
|
||
public class RayTracer | ||
{ | ||
private static IEnumerable<object> hittables; | ||
|
||
static RayTracer() | ||
{ | ||
var list = new List<object>(); | ||
list.Add(new object()); | ||
hittables = list; | ||
} | ||
|
||
[Fact] | ||
public static int TestEntryPoint() | ||
{ | ||
Ray r = GetRay(); | ||
Consume(r.Direction); | ||
traceRay(r); | ||
return 100; | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
private static void Consume(object o) | ||
{ | ||
var _ = o.ToString(); | ||
} | ||
|
||
private static Ray GetRay() | ||
{ | ||
return new Ray(Vector3.Zero, -Vector3.UnitY); | ||
} | ||
|
||
private static Vector3 traceRay(Ray r) | ||
{ | ||
foreach (object h in hittables) | ||
{ | ||
TestHit(r); | ||
return Vector3.One; | ||
} | ||
return Vector3.Zero; | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
private static void TestHit(Ray ray) | ||
{ | ||
return; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/tests/JIT/Regression/JitBlue/Runtime_79118/Runtime_79118.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> |