We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b5e52b commit 76d6a88Copy full SHA for 76d6a88
1 file changed
cmake/CMakeLists.txt
@@ -37,7 +37,17 @@ int main()
37
int edx = 0;
38
__asm__(
39
\"xgetbv ;\"
40
- \"vzeroupper \"
+ //
41
+ // This feature probe is specifically used to decide whether we can
42
+ // compile the DWA fast path that contains GCC-style inline asm using
43
+ // AVX/YMM instructions. Some toolchains (notably older Apple 'as'
44
+ // invoked by GCC on legacy macOS) can assemble xgetbv/vzeroupper but
45
+ // still reject YMM/VEX instructions with errors like:
46
+ // no such instruction: `vmovaps (%rsi), %ymm0'
47
+ // So include a representative YMM instruction in the try-compile.
48
49
+ \"vmovaps %%ymm0, %%ymm0 ;\"
50
+ \"vzeroupper \"
51
: \"=a\"(eax), \"=d\"(edx) : \"c\"(n) : );
52
#else
53
# error No SSE support enabled to query AVX support
0 commit comments