https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102166
--- Comment #2 from Thiago Macieira <thiago at kde dot org> --- FYI: $ cat test.cpp #include <immintrin.h> __attribute__((target("avx"))) void avx() { _mm256_zeroall(); } #ifndef __INTEL_COMPILER __attribute__((target("amx-tile"))) #endif void amx() { _tile_loadd(0, 0, 0); _tile_release(); } $ icc -c test.cpp && echo success success $ icc -c -xc test.cpp && echo success success $ clang -c -xc test.cpp && echo success success $ clang -c test.cpp && echo success success $ clang --version clang version 11.1.0 Target: x86_64-generic-linux Thread model: posix InstalledDir: /usr/bin $ icc --version icc (ICC) 19.1.3.304 20200925 Copyright (C) 1985-2020 Intel Corporation. All rights reserved.