From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E4C2D1F5AE for ; Thu, 22 Apr 2021 17:10:02 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4828C3A47434; Thu, 22 Apr 2021 17:09:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4828C3A47434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1619111378; bh=QHMbzFjA1fddUCrFaEmn7311supV1Kic662caBVYmHc=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=oDn304i4YDSkdw+lnje6kQA3oiNAAdfndGvtkjXRb6V74HcWrXhxIvbVH7liItU1H N0hGE7cHm+UFPiUbDq6Jx8xUl94KnhNuoUQ/I33Uy5x7kA+rGI+2L1xKT79FaNC9eW EP+lZip7452E0V6GOFCqorUIIxAr7U9Korcv5ej4= Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id 84AAA3A47405; Thu, 22 Apr 2021 17:09:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 84AAA3A47405 Received: by mail-oi1-x235.google.com with SMTP id k25so46505994oic.4; Thu, 22 Apr 2021 10:09:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QHMbzFjA1fddUCrFaEmn7311supV1Kic662caBVYmHc=; b=oqVy0h7/WeL1Wtx1yrqPzjMpW1La9lTswLrfXcJ7bazdL9W+RVAE/uQBhAjDQMkj0F yFVTmdsu8yZ0LzbAIdXrDSaoMvcFtiKzWFRhqnfedhATpTgCqpT+FSF91HyOmYy9PXWN PgB1otm0gZM+6fYdF8vssadukm76as9eqv9jcaTcWT998BHRUJc8raZXG3VJiNBKQ18d eZQs1o+84o++q6BbOGJhHvOWWXjEy5r7B9hrVDWGXnO9SAKMJN2C02/sQpMxzaz5/zEx UMgvzccgVYsd0qN/8kBEoE+oMTFJbdV7r/zIUXAw77Z42lH53FShJaXuPRpHHt8a5vPz mFKQ== X-Gm-Message-State: AOAM530eHwwZEUEoTvpOGaVC7j2m5bPQAxNyGt/fNdvp73yQTk09Hl66 W6nYJewqZUfGrL01l7Tav/a4HJgToFi0nglqLv3arM1CCmo= X-Google-Smtp-Source: ABdhPJz6sxwZX04VGO0JCTQjWvCj6pMeRUX8DE1NfM0a7DHC3EanPyKVp6jmqGNqy/+qqupA5XjjS54yrI8SVPlnbWc= X-Received: by 2002:aca:b208:: with SMTP id b8mr709086oif.79.1619111373963; Thu, 22 Apr 2021 10:09:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 22 Apr 2021 10:08:57 -0700 Message-ID: Subject: Re: [PATCH] x86: tst-cpu-features-supports.c: Update AMX check To: Joseph Myers , Libc-stable Mailing List Content-Type: text/plain; charset="UTF-8" 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: , From: "H.J. Lu via Libc-alpha" Reply-To: "H.J. Lu" Cc: GNU C Library Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" On Thu, Apr 22, 2021 at 10:08 AM Joseph Myers wrote: > > 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.) I will check it into master branch and backport it to 2.33 branch. Thanks. -- H.J.