Skip to content

Commit 75f9de8

Browse files
committed
Prevent new codepaths for X86
1 parent e89242d commit 75f9de8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/coreclr/jit/simdashwintrinsic.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,7 @@ GenTree* Compiler::impSimdAsHWIntrinsicSpecial(NamedIntrinsic intrinsic,
11811181
{
11821182
assert(sig->numArgs == 1);
11831183
assert(simdBaseType == TYP_DOUBLE);
1184+
#if defined(TARGET_AMD64)
11841185
if (IsBaselineVector512IsaSupportedOpportunistically())
11851186
{
11861187
NamedIntrinsic intrinsic =
@@ -1190,13 +1191,15 @@ GenTree* Compiler::impSimdAsHWIntrinsicSpecial(NamedIntrinsic intrinsic,
11901191

11911192
return gtNewSimdCvtNode(retType, op1, intrinsic, CORINFO_TYPE_LONG, simdBaseJitType, simdSize);
11921193
}
1194+
#endif
11931195
return nullptr;
11941196
}
11951197

11961198
case NI_VectorT_ConvertToUInt32:
11971199
{
11981200
assert(sig->numArgs == 1);
11991201
assert(simdBaseType == TYP_FLOAT);
1202+
#if defined(TARGET_AMD64)
12001203
if (IsBaselineVector512IsaSupportedOpportunistically())
12011204
{
12021205
NamedIntrinsic intrinsic =
@@ -1206,13 +1209,15 @@ GenTree* Compiler::impSimdAsHWIntrinsicSpecial(NamedIntrinsic intrinsic,
12061209

12071210
return gtNewSimdCvtNode(retType, op1, intrinsic, CORINFO_TYPE_UINT, simdBaseJitType, simdSize);
12081211
}
1212+
#endif
12091213
return nullptr;
12101214
}
12111215

12121216
case NI_VectorT_ConvertToUInt64:
12131217
{
12141218
assert(sig->numArgs == 1);
12151219
assert(simdBaseType == TYP_DOUBLE);
1220+
#if defined(TARGET_AMD64)
12161221
if (IsBaselineVector512IsaSupportedOpportunistically())
12171222
{
12181223
NamedIntrinsic intrinsic =
@@ -1222,12 +1227,14 @@ GenTree* Compiler::impSimdAsHWIntrinsicSpecial(NamedIntrinsic intrinsic,
12221227

12231228
return gtNewSimdCvtNode(retType, op1, intrinsic, CORINFO_TYPE_ULONG, simdBaseJitType, simdSize);
12241229
}
1230+
#endif
12251231
return nullptr;
12261232
}
12271233

12281234
case NI_VectorT_ConvertToInt32:
12291235
{
12301236
assert(simdBaseType == TYP_FLOAT);
1237+
#if defined(TARGET_AMD64)
12311238
if (IsBaselineVector512IsaSupportedOpportunistically())
12321239
{
12331240
NamedIntrinsic intrinsic =
@@ -1237,6 +1244,7 @@ GenTree* Compiler::impSimdAsHWIntrinsicSpecial(NamedIntrinsic intrinsic,
12371244

12381245
return gtNewSimdCvtNode(retType, op1, intrinsic, CORINFO_TYPE_INT, simdBaseJitType, simdSize);
12391246
}
1247+
#endif
12401248
return nullptr;
12411249
}
12421250

0 commit comments

Comments
 (0)