We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2995754 commit b35b1e3Copy full SHA for b35b1e3
src/mono/mono/mini/simd-intrinsics.c
@@ -1154,7 +1154,7 @@ emit_vector_insert_element (
1154
{
1155
int op = type_to_insert_op (type);
1156
1157
- if (is_zero_inited && is_zero_const (element)) {
+ if (((is_zero_inited) || (ins->opcode == OP_XZERO)) && is_zero_const (element)) {
1158
// element already set to zero
1159
return ins;
1160
}
@@ -1228,6 +1228,7 @@ emit_vector_insert_element (
1228
1229
1230
if (ins->opcode == OP_XCONST) {
1231
+ memcpy (ins->inst_p0, cns_vec, 16);
1232
1233
1234
return emit_xconst_v128 (cfg, vklass, cns_vec);
0 commit comments