Skip to content

Commit 64a3c31

Browse files
authored
[mono] Avoid an assert when calling X86Base.Pause in non-llvm mode. (#91828)
Fixes #91819.
1 parent 2087007 commit 64a3c31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4600,7 +4600,7 @@ static SimdIntrinsic x86base_methods [] = {
46004600
{SN_BitScanForward},
46014601
{SN_BitScanReverse},
46024602
{SN_DivRem},
4603-
{SN_Pause, OP_XOP, INTRINS_SSE_PAUSE},
4603+
{SN_Pause},
46044604
{SN_get_IsSupported}
46054605
};
46064606

@@ -5290,6 +5290,10 @@ emit_x86_intrinsics (
52905290
EMIT_NEW_TEMPLOAD (cfg, ins, tuple->inst_c0);
52915291
return ins;
52925292
}
5293+
case SN_Pause:
5294+
if (!COMPILE_LLVM (cfg))
5295+
return NULL;
5296+
return emit_simd_ins_for_sig (cfg, klass, OP_XOP, INTRINS_SSE_PAUSE, arg0_type, fsig, args);
52935297
default:
52945298
g_assert_not_reached ();
52955299
}

0 commit comments

Comments
 (0)