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 19ec4b6 commit ed7c781Copy full SHA for ed7c781
src/native/minipal/cpufeatures.c
@@ -65,6 +65,10 @@ static uint32_t xmmYmmStateSupport()
65
#define XSTATE_MASK_AVX512 (0xE0) /* 0b1110_0000 */
66
#endif // XSTATE_MASK_AVX512
67
68
+#ifndef PF_ARM_SVE_INSTRUCTIONS_AVAILABLE
69
+#define PF_ARM_SVE_INSTRUCTIONS_AVAILABLE (46)
70
+#endif
71
+
72
static uint32_t avx512StateSupport()
73
{
74
#if defined(HOST_APPLE)
@@ -458,6 +462,11 @@ int minipal_getcpufeatures(void)
458
462
459
463
// TODO: IsProcessorFeaturePresent doesn't support LRCPC2 yet.
460
464
465
+ if (IsProcessorFeaturePresent(PF_ARM_SVE_INSTRUCTIONS_AVAILABLE))
466
+ {
467
+ result |= ARM64IntrinsicConstants_Sve;
468
+ }
469
461
470
#endif // HOST_WINDOWS
471
472
#endif // HOST_ARM64
0 commit comments