Skip to content

Commit f85e513

Browse files
committed
Ensure that getting the index for floating-point shuffle is possible
1 parent 71708fe commit f85e513

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/mono/mono/mini/simd-intrinsics.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,15 +702,17 @@ get_xconst_int_elem (MonoCompile *cfg, MonoInst *ins, MonoTypeEnum etype, int in
702702
g_assert (index < 8);
703703
return ((guint16*)cns_vec) [index];
704704
}
705-
case MONO_TYPE_I4: {
705+
case MONO_TYPE_I4:
706+
case MONO_TYPE_R4: {
706707
g_assert (index < 4);
707708
return ((gint32*)cns_vec) [index];
708709
}
709710
case MONO_TYPE_U4: {
710711
g_assert (index < 4);
711712
return ((guint32*)cns_vec) [index];
712713
}
713-
case MONO_TYPE_I8: {
714+
case MONO_TYPE_I8:
715+
case MONO_TYPE_R8: {
714716
g_assert (index < 2);
715717
return ((gint64*)cns_vec) [index];
716718
}

0 commit comments

Comments
 (0)