From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 33AFD39D5C03 for ; Thu, 22 Apr 2021 17:08:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 33AFD39D5C03 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joseph_myers@mentor.com IronPort-SDR: pq7iVk62L2htMofgubi+F2MDpLR4vv99Os2WUqiMTV1RBkNP8aul4a0bd9mliA8O1ap88FQczR WWy0CnZAC+Pwc6OyymL43VHEjYh3wB8JES9wGdkABWTieOkviZOitm3jjR+B0zcMB2uLbA8Gk0 XYCg5uJyHh83n5s4BKHNwsLHi6jjFZ3SW6enw451txtfLtF+NYljASuTEVtiv8PBpWDFMpp6cq bWou5f0Gys2D7HueOeFdd0qsLtLMPr4uyXj23wpBGKTD+jOQXpZYAkCswpWtVNSBiZtka8x3ui lfk= X-IronPort-AV: E=Sophos;i="5.82,243,1613462400"; d="scan'208";a="60573067" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 22 Apr 2021 09:08:01 -0800 IronPort-SDR: heCqlZkSYw+xPGI5YDEozzGC8YWE6WDgM+Z/KA94rZuYIiZfOL6FqRF5YcDdQAX6zS7T0ypYxE SRseevaoO4VknnFgM7R2180XOssXLhIaaIQwM8qnYql28U4oVlEyJN4xXcT9o5MQEpPcmC5Crs JhBIbIgH6YNzUwdw5WE2iObrlrGRjLOFYBGU4pyhr1DBG5Jzg0utFplpltdnXY0RgOeXVTSEHJ DGaOJdN0TLrLQvRXuPBZfRiO7/v0ad8acasr0zrl88cSe85P2W6jRCq6PpaTqwjYfDH7azimu0 pXI= Date: Thu, 22 Apr 2021 17:07:56 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: "H.J. Lu" CC: Subject: Re: [PATCH] x86: tst-cpu-features-supports.c: Update AMX check In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3121.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2021 17:08:03 -0000 On Wed, 21 Apr 2021, H.J. Lu via Libc-alpha wrote: > On Wed, Apr 21, 2021 at 3:45 PM Joseph Myers wrote: > > > > With GCC mainline, I'm seeing glibc testsuite build failures for x86_64 > > and x86: > > > > ../sysdeps/x86/tst-cpu-features-supports.c: In function 'do_test': > > ../sysdeps/x86/tst-cpu-features-supports.c:62:3: error: parameter to builtin not valid: amx_bf16 > > 62 | fails += CHECK_SUPPORTS (amx_bf16, AMX_BF16); > > | ^~~~~ > > ../sysdeps/x86/tst-cpu-features-supports.c:63:3: error: parameter to builtin not valid: amx_int8 > > 63 | fails += CHECK_SUPPORTS (amx_int8, AMX_INT8); > > | ^~~~~ > > ../sysdeps/x86/tst-cpu-features-supports.c:64:3: error: parameter to builtin not valid: amx_tile > > 64 | fails += CHECK_SUPPORTS (amx_tile, AMX_TILE); > > | ^~~~~ > > > > https://sourceware.org/pipermail/libc-testresults/2021q2/007827.html > > > > The code in question is inside a conditional > > > > #if __GNUC_PREREQ (11, 1) > > > > so wasn't compiled until the GCC version number was increased to 12 (and > > would probably start failing with GCC 11 branch as soon as 11.1 is > > released). > > > > Try this. That patch fixes the build failures for me. (Note: the fix ought to go on 2.33 branch as well, otherwise that branch will fail to build the testsuite with GCC 11.1 release.) -- Joseph S. Myers joseph@codesourcery.com