Message ID | 20221014075445.7938-1-haochen.jiang@intel.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp53823wrs; Fri, 14 Oct 2022 00:56:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Qdt2V61N1YzPmicvhWoW6Xsehi9ws3o2meYQNa32FudhwRfQ1fDRSIAlNQSo0ymVAYUPL X-Received: by 2002:a17:906:c08c:b0:78d:b8ce:c28f with SMTP id f12-20020a170906c08c00b0078db8cec28fmr2583447ejz.437.1665734178168; Fri, 14 Oct 2022 00:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665734178; cv=none; d=google.com; s=arc-20160816; b=kkjbb7cKg5bPuYzFhcnc692qWWa1phRzGUWfK85PJElnPcQud41Kl9VAhADznz5Tyb 4JaoWfKHQ3EBPU3qXynMzTt48RxrdNHxecb3+Yay05qOfiBRBq+Ln9K8b54NucMOsTQn wtGfupdnz5+H1AZN1Lbx2y6k0pagb7aEnjcKYX9xwsc9t/hcb31uv50XJ2Js9V0IUeN5 kKKEQGd9ie8WhZw48TbL8IBIZi16GtIkOHL8sPPde0aPKoZFWwbdzPSmvFi+WFflcMWM aJzFuw+EUWhrc/lzAGm0VQCQS8AL+LBCORXxjhGDiP63ApQARSM3mku838Eq22985uTd HSeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=HZZKlY4cTqVTCEZWxDDk2KUo53oVwAQt5J2luaheITM=; b=kx5/fHfAH7FOa3QgejC8QRfM9sr+4fOypTz4iARBicR3ctJhYuQyRk53BVY8Z0alhK HJGi/CjPRf+nvB2/PgyLKKNPGtmmCsotVJf9cWwi12VErAFk7NNppJOpdRNxciZbtaWJ BeR3/b05seg3CLIXeArD1NC5HlgRbLPbeAPjggW4720Bdr/fqWm+6oCJCTZd0dTJPgtx BiAmj9p/K6ovCKd15BCAoyKTrNaXQP5Fb0Bg9lytfbLZqUEJJPAE8FGkbDduWMM9oVL+ k0cSwaumoeFYtQjiv6YmJv5c74nrUf89ivsOPSUe37kD+xcGyuzUk885a2/BT3TEi/ZD N6Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=L0TgjNnn; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id y102-20020a50bb6f000000b00459aa5aafaesi1731423ede.429.2022.10.14.00.56.16 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 00:56:18 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=L0TgjNnn; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1E88B385B839 for <ouuuleilei@gmail.com>; Fri, 14 Oct 2022 07:55:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E88B385B839 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665734135; bh=HZZKlY4cTqVTCEZWxDDk2KUo53oVwAQt5J2luaheITM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=L0TgjNnncm++fUIwQBGZAnDA8EJktjUNKWp+QMmm9KzM+WJcvIJZxLKiU73T39x4/ 7vswdLvoxM/Dp19ynBk2h9cazUvUsESXXsYNsDJcxWw98b3khgaV6MBDBjy0fiJ6P9 GxllYQHSeFMQTY74yG6e8Vs82u+sXkwYa2Pg9vqg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by sourceware.org (Postfix) with ESMTPS id 35FF63858C56 for <gcc-patches@gcc.gnu.org>; Fri, 14 Oct 2022 07:54:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 35FF63858C56 X-IronPort-AV: E=McAfee;i="6500,9779,10499"; a="288597845" X-IronPort-AV: E=Sophos;i="5.95,182,1661842800"; d="scan'208";a="288597845" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 00:54:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10499"; a="627488336" X-IronPort-AV: E=Sophos;i="5.95,182,1661842800"; d="scan'208";a="627488336" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by orsmga002.jf.intel.com with ESMTP; 14 Oct 2022 00:54:48 -0700 Received: from shliclel320.sh.intel.com (shliclel320.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 9966A100D1AD; Fri, 14 Oct 2022 15:54:47 +0800 (CST) To: gcc-patches@gcc.gnu.org Subject: [PATCH 0/6] Add Intel Sierra Forest Instructions Date: Fri, 14 Oct 2022 15:54:39 +0800 Message-Id: <20221014075445.7938-1-haochen.jiang@intel.com> X-Mailer: git-send-email 2.18.1 X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Haochen Jiang via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Haochen Jiang <haochen.jiang@intel.com> Cc: hongtao.liu@intel.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746648881730932909?= X-GMAIL-MSGID: =?utf-8?q?1746648881730932909?= |
Series | Add Intel Sierra Forest Instructions | |
Message
Jiang, Haochen
Oct. 14, 2022, 7:54 a.m. UTC
Hi all, These six patches aimed to add Intel Sierra Forest instructions, including AVX-IFMA, AVX-VNNI0INT8, AVX-NE-CONVERT, CMPccXADD. We also added intrinsic for vector __bf16 in this series of patch and Sierra Forest Support. The information is based on newly released Intel Architecture Instruction Set Extensions and Future Features. The document comes following: https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html Regtested on x86_64-pc-linux-gnu. Ok for trunk? BRs, Haochen
Comments
Hi Haochen > On 14 Oct 2022, at 08:54, Haochen Jiang via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > These six patches aimed to add Intel Sierra Forest instructions, including > AVX-IFMA, AVX-VNNI0INT8, AVX-NE-CONVERT, CMPccXADD. We also added intrinsic > for vector __bf16 in this series of patch and Sierra Forest Support. > > The information is based on newly released > Intel Architecture Instruction Set Extensions and Future Features. > > The document comes following: > https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html > > Regtested on x86_64-pc-linux-gnu. Ok for trunk? Have you tested that the testcases work on older platforms that do not have support for the new instructions in their assemblers? I could not see any target-requires changes in the testcases .. hence my question. (otherwise we end up with a lot of spurious test fails on these older platforms). thanks Iain
On Fri, Oct 14, 2022 at 4:14 PM Iain Sandoe via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > Hi Haochen > > > On 14 Oct 2022, at 08:54, Haochen Jiang via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > > > > These six patches aimed to add Intel Sierra Forest instructions, including > > AVX-IFMA, AVX-VNNI0INT8, AVX-NE-CONVERT, CMPccXADD. We also added intrinsic > > for vector __bf16 in this series of patch and Sierra Forest Support. > > > > The information is based on newly released > > Intel Architecture Instruction Set Extensions and Future Features. > > > > The document comes following: > > https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html > > > > Regtested on x86_64-pc-linux-gnu. Ok for trunk? > > Have you tested that the testcases work on older platforms that do not have support > for the new instructions in their assemblers? > > I could not see any target-requires changes in the testcases .. hence my question. > Guess you are looking at compile tests? For runtime test, we have add assembler check(target-requires changed) plus runtime check(builtin_cpu_supports) .i.e. +++ b/gcc/testsuite/gcc.target/i386/avx-ifma-vpmaddhuq-2.c @@ -0,0 +1,72 @@ +/* { dg-do run } */ +/* { dg-options "-O2 -mavxifma" } */ +/* { dg-require-effective-target avxifma } */ Do I miss some? > (otherwise we end up with a lot of spurious test fails on these older platforms). > > thanks > Iain
> On 14 Oct 2022, at 09:20, Hongtao Liu <crazylht@gmail.com> wrote: > > On Fri, Oct 14, 2022 at 4:14 PM Iain Sandoe via Gcc-patches > <gcc-patches@gcc.gnu.org> wrote: >> >> Hi Haochen >> >>> On 14 Oct 2022, at 08:54, Haochen Jiang via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: >>> >> >>> These six patches aimed to add Intel Sierra Forest instructions, including >>> AVX-IFMA, AVX-VNNI0INT8, AVX-NE-CONVERT, CMPccXADD. We also added intrinsic >>> for vector __bf16 in this series of patch and Sierra Forest Support. >>> >>> The information is based on newly released >>> Intel Architecture Instruction Set Extensions and Future Features. >>> >>> The document comes following: >>> https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html >>> >>> Regtested on x86_64-pc-linux-gnu. Ok for trunk? >> >> Have you tested that the testcases work on older platforms that do not have support >> for the new instructions in their assemblers? >> >> I could not see any target-requires changes in the testcases .. hence my question. >> > Guess you are looking at compile tests? yes, compile tests would need support from the assembler. > > For runtime test, we have add assembler check(target-requires changed) > plus runtime check(builtin_cpu_supports) > .i.e. > > +++ b/gcc/testsuite/gcc.target/i386/avx-ifma-vpmaddhuq-2.c > @@ -0,0 +1,72 @@ > +/* { dg-do run } */ > +/* { dg-options "-O2 -mavxifma" } */ > +/* { dg-require-effective-target avxifma } */ > > Do I miss some? I would need to look at the sources after patching (perhaps they already have suitable target-requires that did not show up in the patch). Do you have this series as a branch somewhere that I can try on one of the like affected platforms? Iain
On Fri, Oct 14, 2022 at 4:24 PM Iain Sandoe <idsandoe@googlemail.com> wrote: > > > > > On 14 Oct 2022, at 09:20, Hongtao Liu <crazylht@gmail.com> wrote: > > > > On Fri, Oct 14, 2022 at 4:14 PM Iain Sandoe via Gcc-patches > > <gcc-patches@gcc.gnu.org> wrote: > >> > >> Hi Haochen > >> > >>> On 14 Oct 2022, at 08:54, Haochen Jiang via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > >>> > >> > >>> These six patches aimed to add Intel Sierra Forest instructions, including > >>> AVX-IFMA, AVX-VNNI0INT8, AVX-NE-CONVERT, CMPccXADD. We also added intrinsic > >>> for vector __bf16 in this series of patch and Sierra Forest Support. > >>> > >>> The information is based on newly released > >>> Intel Architecture Instruction Set Extensions and Future Features. > >>> > >>> The document comes following: > >>> https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html > >>> > >>> Regtested on x86_64-pc-linux-gnu. Ok for trunk? > >> > >> Have you tested that the testcases work on older platforms that do not have support > >> for the new instructions in their assemblers? > >> > >> I could not see any target-requires changes in the testcases .. hence my question. > >> > > Guess you are looking at compile tests? > > yes, compile tests would need support from the assembler. > > > > For runtime test, we have add assembler check(target-requires changed) > > plus runtime check(builtin_cpu_supports) > > .i.e. > > > > +++ b/gcc/testsuite/gcc.target/i386/avx-ifma-vpmaddhuq-2.c > > @@ -0,0 +1,72 @@ > > +/* { dg-do run } */ > > +/* { dg-options "-O2 -mavxifma" } */ > > +/* { dg-require-effective-target avxifma } */ > > > > Do I miss some? > > I would need to look at the sources after patching (perhaps they already have > suitable target-requires that did not show up in the patch). > > Do you have this series as a branch somewhere that I can try on one of the > like affected platforms? Not yet. Do we have any external place to put those patches so folks from the community can validate before it's committed, HJ? > > Iain >
> >> I could not see any target-requires changes in the testcases .. hence my question. > >> > > Guess you are looking at compile tests? > > yes, compile tests would need support from the assembler. > > In my understanding, dg-do compile tests don't need assembler support, it just scan dump or assembler, but won't generate *.o files dg-do run/assemble need. >
> On 14 Oct 2022, at 09:30, Hongtao Liu <crazylht@gmail.com> wrote: > > On Fri, Oct 14, 2022 at 4:24 PM Iain Sandoe <idsandoe@googlemail.com> wrote: >> >> >> >>> On 14 Oct 2022, at 09:20, Hongtao Liu <crazylht@gmail.com> wrote: >>> >>> On Fri, Oct 14, 2022 at 4:14 PM Iain Sandoe via Gcc-patches >>> <gcc-patches@gcc.gnu.org> wrote: >>>> >>>> Hi Haochen >>>> >>>>> On 14 Oct 2022, at 08:54, Haochen Jiang via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: >>>>> >>>> >>>>> These six patches aimed to add Intel Sierra Forest instructions, including >>>>> AVX-IFMA, AVX-VNNI0INT8, AVX-NE-CONVERT, CMPccXADD. We also added intrinsic >>>>> for vector __bf16 in this series of patch and Sierra Forest Support. >>>>> >>>>> The information is based on newly released >>>>> Intel Architecture Instruction Set Extensions and Future Features. >>>>> >>>>> The document comes following: >>>>> https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html >>>>> >>>>> Regtested on x86_64-pc-linux-gnu. Ok for trunk? >>>> >>>> Have you tested that the testcases work on older platforms that do not have support >>>> for the new instructions in their assemblers? >>>> >>>> I could not see any target-requires changes in the testcases .. hence my question. >>>> >>> Guess you are looking at compile tests? >> >> yes, compile tests would need support from the assembler. oops, not enough coffee - I’m talking rubbish here - assembler output should be fine, >>> For runtime test, we have add assembler check(target-requires changed) >>> plus runtime check(builtin_cpu_supports) >>> .i.e. >>> >>> +++ b/gcc/testsuite/gcc.target/i386/avx-ifma-vpmaddhuq-2.c >>> @@ -0,0 +1,72 @@ >>> +/* { dg-do run } */ >>> +/* { dg-options "-O2 -mavxifma" } */ >>> +/* { dg-require-effective-target avxifma } */ >>> >>> Do I miss some? >> >> I would need to look at the sources after patching (perhaps they already have >> suitable target-requires that did not show up in the patch). >> >> Do you have this series as a branch somewhere that I can try on one of the >> like affected platforms? > > Not yet. > Do we have any external place to put those patches so folks from the > community can validate before it's committed, HJ? I’d still like to be able to test if that can be done - I’ve already got a large number of fails from new testcases in earlier additions. Iain
On Fri, Oct 14, 2022 at 4:36 PM Iain Sandoe <idsandoe@googlemail.com> wrote: > > > > > On 14 Oct 2022, at 09:30, Hongtao Liu <crazylht@gmail.com> wrote: > > > > On Fri, Oct 14, 2022 at 4:24 PM Iain Sandoe <idsandoe@googlemail.com> wrote: > >> > >> > >> > >>> On 14 Oct 2022, at 09:20, Hongtao Liu <crazylht@gmail.com> wrote: > >>> > >>> On Fri, Oct 14, 2022 at 4:14 PM Iain Sandoe via Gcc-patches > >>> <gcc-patches@gcc.gnu.org> wrote: > >>>> > >>>> Hi Haochen > >>>> > >>>>> On 14 Oct 2022, at 08:54, Haochen Jiang via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > >>>>> > >>>> > >>>>> These six patches aimed to add Intel Sierra Forest instructions, including > >>>>> AVX-IFMA, AVX-VNNI0INT8, AVX-NE-CONVERT, CMPccXADD. We also added intrinsic > >>>>> for vector __bf16 in this series of patch and Sierra Forest Support. > >>>>> > >>>>> The information is based on newly released > >>>>> Intel Architecture Instruction Set Extensions and Future Features. > >>>>> > >>>>> The document comes following: > >>>>> https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html > >>>>> > >>>>> Regtested on x86_64-pc-linux-gnu. Ok for trunk? > >>>> > >>>> Have you tested that the testcases work on older platforms that do not have support > >>>> for the new instructions in their assemblers? > >>>> > >>>> I could not see any target-requires changes in the testcases .. hence my question. > >>>> > >>> Guess you are looking at compile tests? > >> > >> yes, compile tests would need support from the assembler. > > oops, not enough coffee - I’m talking rubbish here - assembler output should be fine, > > >>> For runtime test, we have add assembler check(target-requires changed) > >>> plus runtime check(builtin_cpu_supports) > >>> .i.e. > >>> > >>> +++ b/gcc/testsuite/gcc.target/i386/avx-ifma-vpmaddhuq-2.c > >>> @@ -0,0 +1,72 @@ > >>> +/* { dg-do run } */ > >>> +/* { dg-options "-O2 -mavxifma" } */ > >>> +/* { dg-require-effective-target avxifma } */ > >>> > >>> Do I miss some? > >> > >> I would need to look at the sources after patching (perhaps they already have > >> suitable target-requires that did not show up in the patch). > >> > >> Do you have this series as a branch somewhere that I can try on one of the > >> like affected platforms? > > > > Not yet. > > Do we have any external place to put those patches so folks from the > > community can validate before it's committed, HJ? > > I’d still like to be able to test if that can be done - I’ve already got a large number of > fails from new testcases in earlier additions. I've upstream those patches to public https://gitlab.com/x86-gcc/gcc/-/tree/users/intel/liuhongt/upstream Also if you're intereted in Binutils patches, it's in https://gitlab.com/x86-binutils/binutils-gdb/-/tree/users/intel/liuhongt/upstream > > Iain
On 17 October 2022 03:02:22 CEST, Hongtao Liu via Gcc-patches >> >> Do you have this series as a branch somewhere that I can try on one of the >> >> like affected platforms? >> > >> > Not yet. >> > Do we have any external place to put those patches so folks from the >> > community can validate before it's committed, HJ? https://gcc.gnu.org/gitwrite.html#vendor Not sure where in cgit the user branches are visible, though? But they can certainly be cloned and worked with. HTH,
On Mon, Oct 17, 2022 at 9:30 AM Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> wrote: > > On 17 October 2022 03:02:22 CEST, Hongtao Liu via Gcc-patches > > >> >> Do you have this series as a branch somewhere that I can try on one of the > >> >> like affected platforms? > >> > > >> > Not yet. > >> > Do we have any external place to put those patches so folks from the > >> > community can validate before it's committed, HJ? > > > https://gcc.gnu.org/gitwrite.html#vendor > > Not sure where in cgit the user branches are visible, though? But they can certainly be cloned and worked with. Thanks for the reminder, I've pushed to remotes/vendors/ix86/ise046. * [new ref] refs/vendors/ix86/heads/ise046 -> vendors/ix86/ise046 > > HTH, -- BR, Hongtao
Hi Hongtao > On 17 Oct 2022, at 02:56, Hongtao Liu <crazylht@gmail.com> wrote: > > On Mon, Oct 17, 2022 at 9:30 AM Bernhard Reutner-Fischer > <rep.dot.nop@gmail.com> wrote: >> >> On 17 October 2022 03:02:22 CEST, Hongtao Liu via Gcc-patches >> >>>>>> Do you have this series as a branch somewhere that I can try on one of the >>>>>> like affected platforms? >>>>> >>>>> Not yet. >>>>> Do we have any external place to put those patches so folks from the >>>>> community can validate before it's committed, HJ? >> >> >> https://gcc.gnu.org/gitwrite.html#vendor >> >> Not sure where in cgit the user branches are visible, though? But they can certainly be cloned and worked with. > Thanks for the reminder, I've pushed to remotes/vendors/ix86/ise046. > * [new ref] refs/vendors/ix86/heads/ise046 -> > vendors/ix86/ise046 thanks for pushing this branch, much better to test these things before committing rather than a panic to fix after… with f90df941532 (HEAD -> ise046, vendors/ix86/ise046) Add m_CORE_ATOM for atom cores - on x86_64 Darwin19 I get the following bootstrap fail: In file included from /src-local/gcc-master/gcc/config/i386/driver-i386.cc:31: /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h: In function ‘const char* get_intel_cpu(__processor_model*, __processor_model2*, unsigned int*)’: /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:532:32: error: this statement may fall through [-Werror=implicit-fallthrough=] 532 | cpu_model->__cpu_subtype = INTEL_COREI7_GRANITERAPIDS; | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:533:5: note: here 533 | case 0xb6: | ^~~~ cc1plus: all warnings being treated as errors ==== Will try to look later, if that does not immediately ring some bell. thanks Iain
On Wed, Oct 19, 2022 at 7:09 PM Iain Sandoe <idsandoe@googlemail.com> wrote: > > Hi Hongtao > > > On 17 Oct 2022, at 02:56, Hongtao Liu <crazylht@gmail.com> wrote: > > > > On Mon, Oct 17, 2022 at 9:30 AM Bernhard Reutner-Fischer > > <rep.dot.nop@gmail.com> wrote: > >> > >> On 17 October 2022 03:02:22 CEST, Hongtao Liu via Gcc-patches > >> > >>>>>> Do you have this series as a branch somewhere that I can try on one of the > >>>>>> like affected platforms? > >>>>> > >>>>> Not yet. > >>>>> Do we have any external place to put those patches so folks from the > >>>>> community can validate before it's committed, HJ? > >> > >> > >> https://gcc.gnu.org/gitwrite.html#vendor > >> > >> Not sure where in cgit the user branches are visible, though? But they can certainly be cloned and worked with. > > Thanks for the reminder, I've pushed to remotes/vendors/ix86/ise046. > > * [new ref] refs/vendors/ix86/heads/ise046 -> > > vendors/ix86/ise046 > > thanks for pushing this branch, much better to test these things before committing rather than a panic > to fix after… > > > with > f90df941532 (HEAD -> ise046, vendors/ix86/ise046) Add m_CORE_ATOM for atom cores > > - on x86_64 Darwin19 I get the following bootstrap fail: > > In file included from /src-local/gcc-master/gcc/config/i386/driver-i386.cc:31: > /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h: In function ‘const char* get_intel_cpu(__processor_model*, __processor_model2*, unsigned int*)’: > /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:532:32: error: this statement may fall through [-Werror=implicit-fallthrough=] > 532 | cpu_model->__cpu_subtype = INTEL_COREI7_GRANITERAPIDS; > | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:533:5: note: here > 533 | case 0xb6: > | ^~~~ > cc1plus: all warnings being treated as errors > > ==== > Will try to look later, if that does not immediately ring some bell. This should a bug, thanks! > thanks > Iain >
On Thu, Oct 20, 2022 at 9:11 AM Hongtao Liu <crazylht@gmail.com> wrote: > > On Wed, Oct 19, 2022 at 7:09 PM Iain Sandoe <idsandoe@googlemail.com> wrote: > > > > Hi Hongtao > > > > > On 17 Oct 2022, at 02:56, Hongtao Liu <crazylht@gmail.com> wrote: > > > > > > On Mon, Oct 17, 2022 at 9:30 AM Bernhard Reutner-Fischer > > > <rep.dot.nop@gmail.com> wrote: > > >> > > >> On 17 October 2022 03:02:22 CEST, Hongtao Liu via Gcc-patches > > >> > > >>>>>> Do you have this series as a branch somewhere that I can try on one of the > > >>>>>> like affected platforms? > > >>>>> > > >>>>> Not yet. > > >>>>> Do we have any external place to put those patches so folks from the > > >>>>> community can validate before it's committed, HJ? > > >> > > >> > > >> https://gcc.gnu.org/gitwrite.html#vendor > > >> > > >> Not sure where in cgit the user branches are visible, though? But they can certainly be cloned and worked with. > > > Thanks for the reminder, I've pushed to remotes/vendors/ix86/ise046. > > > * [new ref] refs/vendors/ix86/heads/ise046 -> > > > vendors/ix86/ise046 > > > > thanks for pushing this branch, much better to test these things before committing rather than a panic > > to fix after… > > > > > > with > > f90df941532 (HEAD -> ise046, vendors/ix86/ise046) Add m_CORE_ATOM for atom cores > > > > - on x86_64 Darwin19 I get the following bootstrap fail: > > > > In file included from /src-local/gcc-master/gcc/config/i386/driver-i386.cc:31: > > /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h: In function ‘const char* get_intel_cpu(__processor_model*, __processor_model2*, unsigned int*)’: > > /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:532:32: error: this statement may fall through [-Werror=implicit-fallthrough=] > > 532 | cpu_model->__cpu_subtype = INTEL_COREI7_GRANITERAPIDS; > > | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:533:5: note: here > > 533 | case 0xb6: > > | ^~~~ > > cc1plus: all warnings being treated as errors > > > > ==== > > Will try to look later, if that does not immediately ring some bell. > This should a bug, thanks! I've updated the branch, please try that. > > thanks > > Iain > > > > > -- > BR, > Hongtao
> On 20 Oct 2022, at 10:09, Hongtao Liu via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > On Thu, Oct 20, 2022 at 9:11 AM Hongtao Liu <crazylht@gmail.com> wrote: >> >> On Wed, Oct 19, 2022 at 7:09 PM Iain Sandoe <idsandoe@googlemail.com> wrote: >>> >>> Hi Hongtao >>> >>>> On 17 Oct 2022, at 02:56, Hongtao Liu <crazylht@gmail.com> wrote: >>>> >>>> On Mon, Oct 17, 2022 at 9:30 AM Bernhard Reutner-Fischer >>>> <rep.dot.nop@gmail.com> wrote: >>>>> >>>>> On 17 October 2022 03:02:22 CEST, Hongtao Liu via Gcc-patches >>>>> >>>>>>>>> Do you have this series as a branch somewhere that I can try on one of the >>>>>>>>> like affected platforms? >>>>>>>> >>>>>>>> Not yet. >>>>>>>> Do we have any external place to put those patches so folks from the >>>>>>>> community can validate before it's committed, HJ? >>>>> >>>>> >>>>> https://gcc.gnu.org/gitwrite.html#vendor >>>>> >>>>> Not sure where in cgit the user branches are visible, though? But they can certainly be cloned and worked with. >>>> Thanks for the reminder, I've pushed to remotes/vendors/ix86/ise046. >>>> * [new ref] refs/vendors/ix86/heads/ise046 -> >>>> vendors/ix86/ise046 >>> >>> thanks for pushing this branch, much better to test these things before committing rather than a panic >>> to fix after… >>> >>> >>> with >>> f90df941532 (HEAD -> ise046, vendors/ix86/ise046) Add m_CORE_ATOM for atom cores >>> >>> - on x86_64 Darwin19 I get the following bootstrap fail: >>> >>> In file included from /src-local/gcc-master/gcc/config/i386/driver-i386.cc:31: >>> /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h: In function ‘const char* get_intel_cpu(__processor_model*, __processor_model2*, unsigned int*)’: >>> /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:532:32: error: this statement may fall through [-Werror=implicit-fallthrough=] >>> 532 | cpu_model->__cpu_subtype = INTEL_COREI7_GRANITERAPIDS; >>> | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:533:5: note: here >>> 533 | case 0xb6: >>> | ^~~~ >>> cc1plus: all warnings being treated as errors >>> >>> ==== >>> Will try to look later, if that does not immediately ring some bell. >> This should a bug, thanks! > I've updated the branch, please try that. I had made the same fix locally (adding the “break”, right?) and testing is ongoing it would not be surprising if some tests failed (asm matches for different ABIs are rarely identical) - a few tests to be fixed in stage 3 is fine ... ... but what I wanted to avoid was the case like the bf16 changes where every single new test fails (I have a draft patch to fix the bf16 stuff to be posted soon). thanks Iain
On Thu, Oct 20, 2022 at 5:17 PM Iain Sandoe <idsandoe@googlemail.com> wrote: > > > > > On 20 Oct 2022, at 10:09, Hongtao Liu via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > > > On Thu, Oct 20, 2022 at 9:11 AM Hongtao Liu <crazylht@gmail.com> wrote: > >> > >> On Wed, Oct 19, 2022 at 7:09 PM Iain Sandoe <idsandoe@googlemail.com> wrote: > >>> > >>> Hi Hongtao > >>> > >>>> On 17 Oct 2022, at 02:56, Hongtao Liu <crazylht@gmail.com> wrote: > >>>> > >>>> On Mon, Oct 17, 2022 at 9:30 AM Bernhard Reutner-Fischer > >>>> <rep.dot.nop@gmail.com> wrote: > >>>>> > >>>>> On 17 October 2022 03:02:22 CEST, Hongtao Liu via Gcc-patches > >>>>> > >>>>>>>>> Do you have this series as a branch somewhere that I can try on one of the > >>>>>>>>> like affected platforms? > >>>>>>>> > >>>>>>>> Not yet. > >>>>>>>> Do we have any external place to put those patches so folks from the > >>>>>>>> community can validate before it's committed, HJ? > >>>>> > >>>>> > >>>>> https://gcc.gnu.org/gitwrite.html#vendor > >>>>> > >>>>> Not sure where in cgit the user branches are visible, though? But they can certainly be cloned and worked with. > >>>> Thanks for the reminder, I've pushed to remotes/vendors/ix86/ise046. > >>>> * [new ref] refs/vendors/ix86/heads/ise046 -> > >>>> vendors/ix86/ise046 > >>> > >>> thanks for pushing this branch, much better to test these things before committing rather than a panic > >>> to fix after… > >>> > >>> > >>> with > >>> f90df941532 (HEAD -> ise046, vendors/ix86/ise046) Add m_CORE_ATOM for atom cores > >>> > >>> - on x86_64 Darwin19 I get the following bootstrap fail: > >>> > >>> In file included from /src-local/gcc-master/gcc/config/i386/driver-i386.cc:31: > >>> /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h: In function ‘const char* get_intel_cpu(__processor_model*, __processor_model2*, unsigned int*)’: > >>> /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:532:32: error: this statement may fall through [-Werror=implicit-fallthrough=] > >>> 532 | cpu_model->__cpu_subtype = INTEL_COREI7_GRANITERAPIDS; > >>> | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >>> /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:533:5: note: here > >>> 533 | case 0xb6: > >>> | ^~~~ > >>> cc1plus: all warnings being treated as errors > >>> > >>> ==== > >>> Will try to look later, if that does not immediately ring some bell. > >> This should a bug, thanks! > > I've updated the branch, please try that. > > I had made the same fix locally (adding the “break”, right?) and testing is ongoing Yes, please go ahead. > > it would not be surprising if some tests failed (asm matches for different ABIs are rarely > identical) - a few tests to be fixed in stage 3 is fine ... > > ... but what I wanted to avoid was the case like the bf16 changes where every > single new test fails (I have a draft patch to fix the bf16 stuff to be posted soon). Understand. > > thanks > Iain > >
Hi Hongtao, > On 20 Oct 2022, at 10:20, Hongtao Liu <crazylht@gmail.com> wrote: > > On Thu, Oct 20, 2022 at 5:17 PM Iain Sandoe <idsandoe@googlemail.com> wrote: >> >> >> >>> On 20 Oct 2022, at 10:09, Hongtao Liu via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: >>> >>> On Thu, Oct 20, 2022 at 9:11 AM Hongtao Liu <crazylht@gmail.com> wrote: >>>> >>>> On Wed, Oct 19, 2022 at 7:09 PM Iain Sandoe <idsandoe@googlemail.com> wrote: >>>>>> On 17 Oct 2022, at 02:56, Hongtao Liu <crazylht@gmail.com> wrote: >>>>>> >>>>>> On Mon, Oct 17, 2022 at 9:30 AM Bernhard Reutner-Fischer >>>>>> <rep.dot.nop@gmail.com> wrote: >>>>>>> >>>>>>> On 17 October 2022 03:02:22 CEST, Hongtao Liu via Gcc-patches >>>>>>> >>>>>>>>>>> Do you have this series as a branch somewhere that I can try on one of the >>>>>>>>>>> like affected platforms? >>>>>>>>>> >>>>>>>>>> Not yet. >>>>>>>>>> Do we have any external place to put those patches so folks from the >>>>>>>>>> community can validate before it's committed, HJ? >>>>>>> >>>>>>> >>>>>>> https://gcc.gnu.org/gitwrite.html#vendor >>>>>>> >>>>>>> Not sure where in cgit the user branches are visible, though? But they can certainly be cloned and worked with. >>>>>> Thanks for the reminder, I've pushed to remotes/vendors/ix86/ise046. >>>>>> * [new ref] refs/vendors/ix86/heads/ise046 -> >>>>>> vendors/ix86/ise046 >>>>> >>>>> thanks for pushing this branch, much better to test these things before committing rather than a panic >>>>> to fix after… >>>>> >>>>> >>>>> with >>>>> f90df941532 (HEAD -> ise046, vendors/ix86/ise046) Add m_CORE_ATOM for atom cores >>>>> >>>>> - on x86_64 Darwin19 I get the following bootstrap fail: >>>>> >>>>> In file included from /src-local/gcc-master/gcc/config/i386/driver-i386.cc:31: >>>>> /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h: In function ‘const char* get_intel_cpu(__processor_model*, __processor_model2*, unsigned int*)’: >>>>> /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:532:32: error: this statement may fall through [-Werror=implicit-fallthrough=] >>>>> 532 | cpu_model->__cpu_subtype = INTEL_COREI7_GRANITERAPIDS; >>>>> | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>> /src-local/gcc-master/gcc/common/config/i386/cpuinfo.h:533:5: note: here >>>>> 533 | case 0xb6: >>>>> | ^~~~ >>>>> cc1plus: all warnings being treated as errors >>>>> >>>>> ==== >>>>> Will try to look later, if that does not immediately ring some bell. >>>> This should a bug, thanks! >>> I've updated the branch, please try that. >> >> I had made the same fix locally (adding the “break”, right?) and testing is ongoing > Yes, please go ahead. Thanks for giving me a chance to test, this seems OK on Darwin (no large-scale fallout, anyway) .. I tested the ise046 branch which looks like it collects several of the posted patch series, so I’ve covered those too. (not had a chance to test on AVX512 yet, but if the series is basically OK on skylake, then should be not too much issue). Iain P.S. I am usually able to test patches / series like this on Darwin if you point me at a branch.
> Thanks for giving me a chance to test, this seems OK on Darwin (no large-scale > fallout, anyway) .. > Good to hear that. > I tested the ise046 branch which looks like it collects several of the posted patch > series, so I’ve covered those too. (not had a chance to test on AVX512 yet, but if > the series is basically OK on skylake, then should be not too much issue). > > Iain > > P.S. I am usually able to test patches / series like this on Darwin if you point me at > a branch. I will. >