summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/accelerated/x86/x86-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/accelerated/x86/x86-common.c b/lib/accelerated/x86/x86-common.c
index 353a252909..152b0355c3 100644
--- a/lib/accelerated/x86/x86-common.c
+++ b/lib/accelerated/x86/x86-common.c
@@ -99,7 +99,7 @@ static unsigned check_4th_gen_intel_features(unsigned ecx)
if ((ecx & OSXSAVE_MASK) != OSXSAVE_MASK)
return 0;
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && !defined(__clang__)
xcr0 = _xgetbv(0);
#else
__asm__ ("xgetbv" : "=a" (xcr0) : "c" (0) : "%edx");