From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 97A513858415; Wed, 1 Sep 2021 22:45:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97A513858415 From: "thiago at kde dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102166] [i386] AMX intrinsics and macros not defined in C++ Date: Wed, 01 Sep 2021 22:45:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: thiago at kde dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2021 22:45:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102166 --- Comment #2 from Thiago Macieira --- FYI: $ cat test.cpp #include __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=20=20=20=20 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.=