Skip to content

Commit 1997bee

Browse files
Adding support for the X86Base.Pause intrinsic on Mono (dotnet#61707)
* Adding support for the X86Base.Pause intrinsic on Mono * Re-enable the pause hwintrinsic test on Mono
1 parent 7a2fac8 commit 1997bee

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -2310,6 +2310,7 @@ static SimdIntrinsic bmi2_methods [] = {
23102310
static SimdIntrinsic x86base_methods [] = {
23112311
{SN_BitScanForward},
23122312
{SN_BitScanReverse},
2313+
{SN_Pause, OP_XOP, INTRINS_SSE_PAUSE},
23132314
{SN_get_IsSupported}
23142315
};
23152316

src/mono/mono/mini/simd-methods.h

+1
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ METHOD(ComputeCrc32C)
256256
// X86Base
257257
METHOD(BitScanForward)
258258
METHOD(BitScanReverse)
259+
METHOD(Pause)
259260
// Crypto
260261
METHOD(FixedRotate)
261262
METHOD(HashUpdateChoose)

src/tests/issues.targets

-3
Original file line numberDiff line numberDiff line change
@@ -846,9 +846,6 @@
846846

847847
<!-- Known failures for mono runtime on *all* architectures/operating systems in *all* runtime modes -->
848848
<ItemGroup Condition="'$(RuntimeFlavor)' == 'mono'" >
849-
<ExcludeList Include = "$(XUnitTestBinBase)/JIT/HardwareIntrinsics/X86/X86Base/Pause*/**">
850-
<Issue>https://github.com/dotnet/runtime/issues/61693</Issue>
851-
</ExcludeList>
852849
<ExcludeList Include = "$(XunitTestBinBase)/reflection/GenericAttribute/**">
853850
<Issue>https://github.com/dotnet/runtime/issues/56887</Issue>
854851
</ExcludeList>

0 commit comments

Comments
 (0)