Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Ensure that the existing Vector2/Vector3/Vector4 intrinsic methods are marked as such. #34167

Merged
merged 1 commit into from
Dec 21, 2018
Merged

Conversation

tannergooding
Copy link
Member

This is the CoreFX side to: dotnet/coreclr#21601

@tannergooding
Copy link
Member Author

CC. @CarolEidt, @fiigii

@@ -209,7 +211,6 @@ public static Vector2 SquareRoot(Vector2 value)
/// <param name="left">The scalar value.</param>
/// <param name="right">The source vector.</param>
/// <returns>The scaled vector.</returns>
[Intrinsic]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Vector2 operator *(float left, Vector2 right)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The runtime only matches against TYP_STRUCT, TYP_STRUCT: https://github.com/dotnet/coreclr/blob/master/src/jit/simdintrinsiclist.h#L91

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will revert the removal of this one, it might be handled by .NET Native as per dotnet/coreclr#21601 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might be handled by .NET Native

ARM seems to have instructions can directly support this form, so you may need to care about that.

Copy link
Contributor

@fiigii fiigii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@karelz karelz added this to the 3.0 milestone Dec 21, 2018
@tannergooding tannergooding merged commit ecb9b49 into dotnet:master Dec 21, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants