Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/coreclr/jit/hwintrinsic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2928,10 +2928,18 @@ GenTree* Compiler::impXplatIntrinsic(NamedIntrinsic intrinsic,
switch (intrinsic)
{
case NI_Vector_Abs:
{
potentiallyNotSupported = varTypeIsSigned(simdBaseType);
break;
}

case NI_Vector_IsNegative:
case NI_Vector_IsPositive:
{
potentiallyNotSupported = varTypeIsSigned(simdBaseType);
// The 256-bit signed integer comparisons used for sign checks require AVX2.
// Floating-point sign checks reinterpret the lanes as signed integers and use
// the same comparison path.
potentiallyNotSupported = !varTypeIsUnsigned(simdBaseType);
Comment thread
dhartglassMSFT marked this conversation as resolved.
break;
}

Expand Down
Loading