2 | | |
3 | | One option might be to use a newer assembler (you recall that if a clang version >= 5.0 is installed, macports' cctools will use that clang version as the assembler). |
4 | | |
5 | | Another option is to replace the xgetbv instruction if needed. There is a handy syntax to use to put in new assembler instruction in the code itself. |
6 | | |
7 | | Here's a stackoverflow about this instruction: |
8 | | |
9 | | https://stackoverflow.com/questions/72522885/are-the-xgetbv-and-cpuid-checks-sufficient-to-guarantee-avx2-support |
10 | | |
11 | | and here's some intel docs about it: |
12 | | |
13 | | https://stackoverflow.com/questions/72522885/are-the-xgetbv-and-cpuid-checks-sufficient-to-guarantee-avx2-support |
14 | | |
15 | | here's a gcc bug saying gcc perhaps should have worked around this, but this was not properly fixed in gcc until gcc 9: |
16 | | |
17 | | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71659 |
18 | | |