Commit 5fa22ae3 authored by Martin Storsjö's avatar Martin Storsjö

configure: Adjust the xgetbv instrinsic check

The 64 bit cl.exe version 16.00.30319.01 crashes with an internal
compiler error on the current check (and thus deduces it isn't
supported, even if the actual usage in libavuil/x86/cpu.c works
fine), but by assigning the value from the intrinsic to a variable,
or returning it, it works fine.

This error is fixed in cl.exe version 16.00.40219.01.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent afb5ed55
......@@ -3029,7 +3029,7 @@ elif enabled sparc; then
elif enabled x86; then
check_code ld immintrin.h "__xgetbv(0)" && enable xgetbv
check_code ld immintrin.h "return __xgetbv(0)" && enable xgetbv
check_code ld intrin.h "int info[4]; __cpuid(info, 0)" && enable cpuid
check_code ld intrin.h "__rdtsc()" && enable rdtsc
check_code ld intrin.h "unsigned int x = __readeflags()" && enable rweflags
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment