ARM64-SVE: Saturating*ByActiveElementCount#102994
Conversation
|
Note regarding the |
|
Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics |
|
Stress: Need to check if these are known issues. |
|
@dotnet/arm64-contrib @kunalspathak |
kunalspathak
left a comment
There was a problem hiding this comment.
Looks good, except a question.
| } | ||
|
|
||
| // Switch instruction if arg1 is unsigned. | ||
| if (varTypeIsUnsigned(node->GetAuxiliaryType())) |
There was a problem hiding this comment.
shouldn't this also use the unsigned variant of the instruction i.e. the first arg is Vector<ulong> and hence, the base type is ulong.
public static System.Numerics.Vector<ulong> SaturatingDecrementByActiveElementCount(System.Numerics.Vector<ulong> value, System.Numerics.Vector<ulong> from) { throw null; }There was a problem hiding this comment.
Aux type is set as:
retNode->AsHWIntrinsic()->SetAuxiliaryJitType(op1BaseJitType);
So, for the example, GetAuxiliaryType() should be returning ulong
kunalspathak
left a comment
There was a problem hiding this comment.
LGTM. Can you fix the formatting errors too?
Done. |
|
@a74nh - there is a merge conflict. |
| acc += (mask[i] == 1) ? 1 : 0; | ||
| } | ||
| return acc; | ||
|
|
There was a problem hiding this comment.
Missing } is causing build failure.
|
/ba-g superpmi-replay failures are #102773 and machine agent issue |
No description provided.