From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 05029385AC19; Thu, 2 Sep 2021 03:55:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 05029385AC19 From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102166] [i386] AMX intrinsics and macros not defined in C++ Date: Thu, 02 Sep 2021 03:55:36 +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: crazylht at gmail dot com 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: Thu, 02 Sep 2021 03:55:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102166 --- Comment #7 from Hongtao.liu --- (In reply to Thiago Macieira from comment #5) > (In reply to Hongtao.liu from comment #4) > > Because _tile_loadd is implemented as embedded assembly plus macros, if > > __AMX_TILE__ is removed, no error will be reported if the user does not= use > > the -mamx option, So this macro is added here, but obviously this is not > > convenient for target_attribute. I think we'd better remove __AMX_TILE_= _, > > (not sure why c doesn't report the error). >=20 > I suggest doing as Clang did and make it an intrinsic. clang defines them as intrinsic because they support AMX register allocatio= n (a lot of effort), gcc does not support AMX register allocation for now, and defining them as intrinsic + builtin doesn't seem to do much good except provide some error messages.=