From 77bfb0cf1db4eade1b86ceadee9018fdfa1f0820 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 6 Feb 2018 14:40:59 +0100 Subject: accelerated: x86-common: do not use _xgetbv() with clang Resolves #372 Signed-off-by: Nikos Mavrogiannopoulos --- lib/accelerated/x86/x86-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.1