-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mono] Add intrinsics for several operators #66317
[Mono] Add intrinsics for several operators #66317
Conversation
@vargaz Could you please review again? |
case SN_op_ExclusiveOr: | ||
case SN_op_Multiply: | ||
case SN_op_Subtraction: { | ||
if (fsig->param_count != 2 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will have a follow-up PR to fix the extra space.
g_assert (fsig->param_count == 2 && fsig->ret->type == MONO_TYPE_BOOLEAN && | ||
mono_metadata_type_equal (fsig->params [0], type) && | ||
mono_metadata_type_equal (fsig->params [1], type)); | ||
if (fsig->param_count != 2 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
switch (id) { | ||
case SN_op_Equality: return emit_xequal (cfg, klass, args [0], args [1]); | ||
case SN_op_Inequality: return emit_not_xequal (cfg, klass, args [0], args [1]); | ||
default: g_assert_not_reached (); | ||
} | ||
case SN_op_OnesComplement: | ||
case SN_op_UnaryNegation: | ||
if (fsig->param_count != 1 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
The failures on CI are irrelevant to this PR. |
This PR contributes to #64072
Added intrinsics for following operators