Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
592e01f5
R
runtime
项目概览
dotNET Platform
/
runtime
大约 1 年 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
592e01f5
编写于
8月 30, 2023
作者:
G
github-actions[bot]
提交者:
GitHub
8月 30, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Ensure the relevant containable nodes are handled (#91334)
Co-authored-by:
N
Tanner Gooding
<
tagoo@outlook.com
>
上级
a02c6604
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
87 addition
and
0 deletion
+87
-0
src/coreclr/jit/lowerxarch.cpp
src/coreclr/jit/lowerxarch.cpp
+16
-0
src/tests/JIT/Regression/JitBlue/Runtime_91170/Runtime_91170.cs
...sts/JIT/Regression/JitBlue/Runtime_91170/Runtime_91170.cs
+63
-0
src/tests/JIT/Regression/JitBlue/Runtime_91170/Runtime_91170.csproj
...JIT/Regression/JitBlue/Runtime_91170/Runtime_91170.csproj
+8
-0
未找到文件。
src/coreclr/jit/lowerxarch.cpp
浏览文件 @
592e01f5
...
...
@@ -8135,7 +8135,16 @@ bool Lowering::IsContainableHWIntrinsicOp(GenTreeHWIntrinsic* parentNode, GenTre
case
NI_Vector128_ToScalar
:
case
NI_Vector256_ToScalar
:
case
NI_Vector512_ToScalar
:
case
NI_SSE2_ConvertToInt32
:
case
NI_SSE2_ConvertToUInt32
:
case
NI_SSE2_X64_ConvertToInt64
:
case
NI_SSE2_X64_ConvertToUInt64
:
case
NI_SSE2_Extract
:
case
NI_SSE41_Extract
:
case
NI_SSE41_X64_Extract
:
case
NI_AVX_ExtractVector128
:
case
NI_AVX2_ConvertToInt32
:
case
NI_AVX2_ConvertToUInt32
:
case
NI_AVX2_ExtractVector128
:
case
NI_AVX512F_ExtractVector128
:
case
NI_AVX512F_ExtractVector256
:
...
...
@@ -8178,6 +8187,13 @@ bool Lowering::IsContainableHWIntrinsicOp(GenTreeHWIntrinsic* parentNode, GenTre
return
false
;
}
case
NI_Vector128_get_Zero
:
case
NI_Vector256_get_Zero
:
{
// These are only containable as part of Sse41.Insert
return
false
;
}
case
NI_SSE3_MoveAndDuplicate
:
case
NI_AVX2_BroadcastScalarToVector128
:
case
NI_AVX2_BroadcastScalarToVector256
:
...
...
src/tests/JIT/Regression/JitBlue/Runtime_91170/Runtime_91170.cs
0 → 100644
浏览文件 @
592e01f5
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.aa
// Found by Antigen
using
System
;
using
System.Collections.Generic
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.Intrinsics
;
using
System.Runtime.Intrinsics.X86
;
using
System.Numerics
;
using
Xunit
;
public
class
TestClass
{
public
struct
S1
{
}
static
short
s_short_8
=
5
;
static
int
s_int_9
=
-
2
;
long
long_59
=
4
;
uint
uint_64
=
1
;
Vector256
<
int
>
v256_int_90
=
Vector256
.
Create
(
2
,
-
5
,
4
,
4
,
5
,
0
,
-
1
,
5
);
S1
s1_99
=
new
S1
();
private
uint
Method4
(
out
short
p_short_161
,
S1
p_s1_162
,
bool
p_bool_163
,
ref
int
p_int_164
)
{
unchecked
{
p_short_161
=
15
|
4
;
if
((
long_59
*=
15
>>
4
)!=
(
long_59
|=
15
^
4
))
{
}
else
{
Vector128
.
CreateScalarUnsafe
(
Vector256
.
Sum
(
v256_int_90
));
}
return
15
|
4
;
}
}
private
void
Method0
()
{
unchecked
{
uint_64
=
Method4
(
out
s_short_8
,
s1_99
,
15
<
4
,
ref
s_int_9
);
return
;
}
}
[
Fact
]
public
static
void
TestEntryPoint
()
{
new
TestClass
().
Method0
();
}
}
/*
Assert failure(PID 34336 [0x00008620], Thread: 38576 [0x96b0]): Assertion failed '!childNode->isContainableHWIntrinsic()' in 'TestClass:Method4(byref,TestClass+S1,bool,byref):uint:this' during 'Lowering nodeinfo' (IL size 63; hash 0xa4e6dede; Tier0)
File: D:\git\runtime\src\coreclr\jit\lowerxarch.cpp Line: 8201
Image: D:\git\runtime\artifacts\tests\coreclr\windows.x64.Checked\tests\Core_Root\CoreRun.exe
*/
src/tests/JIT/Regression/JitBlue/Runtime_91170/Runtime_91170.csproj
0 → 100644
浏览文件 @
592e01f5
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
</Project>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录