1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

fix of AX_GCC_X86_AVX_XGETBV macro

This commit is contained in:
Antonin Portelli 2015-07-17 11:15:57 +09:00
parent 6b8190a032
commit b0eedfd7ba

View File

@ -65,7 +65,7 @@ AC_CACHE_CHECK(for x86-AVX xgetbv $1 output, ax_cv_gcc_x86_avx_xgetbv_$1,
FILE *f; FILE *f;
/* Opcodes for xgetbv */ /* Opcodes for xgetbv */
__asm__(".byte 0x0f, 0x01, 0xd0" __asm__(".byte 0x0f, 0x01, 0xd0"
: "=a" (eax), "=d" (edx), : "=a" (eax), "=d" (edx)
: "c" (op)); : "c" (op));
f = fopen("conftest_xgetbv", "w"); if (!f) return 1; f = fopen("conftest_xgetbv", "w"); if (!f) return 1;
fprintf(f, "%x:%x\n", eax, edx); fprintf(f, "%x:%x\n", eax, edx);